سؤال

What's the best practise for store/edit setting for custom time job?

Well, we have OOTB _admin/Timer.aspx and /_admin/JobEdit.aspx pages, but if we have custom timer job with some setting (by the way, SPJobDefinition impl SPPersistedObject and we can store some setting in jon instance) we need to provide some UI for user/administrator to change timer job setting. It isn't hard - to develop custom aspx page for this task, but, for example, we have 10-20 different job and we don't like "custon page-per-job development".

What is the best way for this task?

هل كانت مفيدة؟

المحلول

MSDN recommends using the guidance library configuration manager, property bag, which can be scoped to the farm.

http://msdn.microsoft.com/en-us/library/ee413917.aspx

نصائح أخرى

You could implement the "Config Store", which is a codeplex project. It is basically a SharePoint list that allows you to add your key/values in and then programatically read them at run time. Like 'appsettings' without the web.config modifications. Very useful.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى sharepoint.stackexchange
scroll top