Table of Contents

Interface IJobControlCfgPersister

Namespace
Tlabs.JobCntrl
Assembly
Tlabs.JobCntrl.dll

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 JobControlCfgType

Configuration type

moduleID string

optional 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 Stream

Stream of config. data

type JobControlCfgType

Configuration type

moduleID string

optional module ID of the config stream

valdidateConfig Action

Optional 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.