Class DataDependency
This DataDependency class will monitor any changes occurred to an underlying data source while notifying subscribing objects.
Implements
Inherited Members
Namespace: Cuemon.Data
Assembly: Cuemon.Data.dll
Syntax
public sealed class DataDependency : Dependency, IDependency
Constructors
| Improve this DocDataDependency(DataManager, IDataCommand, DbParameter[])
Initializes a new instance of the DataDependency class.
Declaration
public DataDependency(DataManager manager, IDataCommand command, params DbParameter[] parameters)
Parameters
Type | Name | Description |
---|---|---|
DataManager | manager | The DataManager to be used for the underlying data operations. |
IDataCommand | command | The IDataCommand to execute and monitor for changes. |
System.Data.Common.DbParameter[] | parameters | An optional sequence of System.Data.Common.DbParameter to use with the associated |
Remarks
The signaling is default delayed 15 seconds before first invoke. Signaling occurs every 2 minutes.
DataDependency(DataManager, IDataCommand, TimeSpan, DbParameter[])
Initializes a new instance of the DataDependency class.
Declaration
public DataDependency(DataManager manager, IDataCommand command, TimeSpan period, params DbParameter[] parameters)
Parameters
Type | Name | Description |
---|---|---|
DataManager | manager | The DataManager to be used for the underlying data operations. |
IDataCommand | command | The IDataCommand to execute and monitor for changes. |
System.TimeSpan | period | The time interval between periodic signaling for changes to the specified |
System.Data.Common.DbParameter[] | parameters | An optional sequence of System.Data.Common.DbParameter to use with the associated |
Remarks
The signaling is default delayed 15 seconds before first invoke.
DataDependency(DataManager, IDataCommand, TimeSpan, TimeSpan, DbParameter[])
Initializes a new instance of the DataDependency class.
Declaration
public DataDependency(DataManager manager, IDataCommand command, TimeSpan dueTime, TimeSpan period, params DbParameter[] parameters)
Parameters
Type | Name | Description |
---|---|---|
DataManager | manager | The DataManager to be used for the underlying data operations. |
IDataCommand | command | The IDataCommand to execute and monitor for changes. |
System.TimeSpan | dueTime | The amount of time to delay before the associated DataWatcher starts signaling. Specify negative one (-1) milliseconds to prevent the signaling from starting. Specify zero (0) to start the signaling immediately. |
System.TimeSpan | period | The time interval between periodic signaling for changes to the specified |
System.Data.Common.DbParameter[] | parameters | An optional sequence of System.Data.Common.DbParameter to use with the associated |
DataDependency(DataManager, IDataCommand, TimeSpan, TimeSpan, TimeSpan, DbParameter[])
Initializes a new instance of the DataDependency class.
Declaration
public DataDependency(DataManager manager, IDataCommand command, TimeSpan dueTime, TimeSpan period, TimeSpan dueTimeOnChanged, params DbParameter[] parameters)
Parameters
Type | Name | Description |
---|---|---|
DataManager | manager | The DataManager to be used for the underlying data operations. |
IDataCommand | command | The IDataCommand to execute and monitor for changes. |
System.TimeSpan | dueTime | The amount of time to delay before the associated DataWatcher starts signaling. Specify negative one (-1) milliseconds to prevent the signaling from starting. Specify zero (0) to start the signaling immediately. |
System.TimeSpan | period | The time interval between periodic signaling for changes to the specified |
System.TimeSpan | dueTimeOnChanged | The amount of time to postpone a Changed event. Specify zero (0) to disable postponing. |
System.Data.Common.DbParameter[] | parameters | An optional sequence of System.Data.Common.DbParameter to use with the associated |
Properties
| Improve this DocHasChanged
Gets a value indicating whether the Dependency object has changed.
Declaration
public override bool HasChanged { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Overrides
Methods
| Improve this DocStart()
Starts and performs the necessary dependency tasks of this instance.
Declaration
public override void Start()