Interface IJobControlCfgPersister
Interface of a JobControl's configuration persister.
public interface IJobControlCfgPersister
- Extension Methods
Methods
OpenConfigStream(JobControlCfgType, string)
Opens a stream of configuration data from the internal persistence store.
Stream OpenConfigStream(JobControlCfgType type, string moduleID)
Parameters
typeJobControlCfgTypeConfiguration type
moduleIDstringoptional module ID of the config stream
Returns
- Stream
An open stream that must be closed/disposed by the caller.
StoreConfigStream(Stream, JobControlCfgType, string, Action)
Stores a stream of configuration data in an internal persistence store.
void StoreConfigStream(Stream configStream, JobControlCfgType type, string moduleID, Action valdidateConfig)
Parameters
configStreamStreamStream of config. data
typeJobControlCfgTypeConfiguration type
moduleIDstringoptional module ID of the config stream
valdidateConfigActionOptional callback delegate that gets invoked after the
configStreamhas been stored.Specify, a non null delegate that could validate the new configuration (using OpenConfigStream(). Any exception thrown from this callback will cause the stored configuration to be replaced with its previous version.