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
type
JobControlCfgTypeConfiguration type
moduleID
stringoptional 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
configStream
StreamStream of config. data
type
JobControlCfgTypeConfiguration type
moduleID
stringoptional module ID of the config stream
valdidateConfig
ActionOptional callback delegate that gets invoked after the
configStream
has 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.