Show / Hide Table of Contents

    Class DataWatcher

    A Watcher implementation, that can monitor and signal changes of one or more data locations by raising the Changed event.

    Inheritance
    System.Object
    Watcher
    DataWatcher
    Implements
    System.IDisposable
    Inherited Members
    Watcher.Changed
    Watcher.UtcLastModified
    Watcher.UtcLastSignaled
    Watcher.DueTime
    Watcher.Period
    Watcher.DueTimeOnChanged
    Watcher.ChangeSignaling(TimeSpan)
    Watcher.ChangeSignaling(TimeSpan, TimeSpan)
    Watcher.SetUtcLastModified(DateTime)
    Watcher.OnChangedRaised()
    Watcher.OnChangedRaised(WatcherEventArgs)
    Watcher.Dispose(Boolean)
    Watcher.Dispose()
    Namespace: Cuemon.Data
    Assembly: Cuemon.Data.dll
    Syntax
    public sealed class DataWatcher : Watcher, IDisposable

    Constructors

    | Improve this Doc

    DataWatcher(DataManager, IDataCommand, DbParameter[])

    Initializes a new instance of the DataWatcher class.

    Declaration
    public DataWatcher(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 command.

    Remarks

    Monitors the provided command for changes in an interval of two minutes using a MD5 hash check on the query result. The signaling is default delayed 15 seconds before first invoke.

    | Improve this Doc

    DataWatcher(DataManager, IDataCommand, TimeSpan, DbParameter[])

    Initializes a new instance of the DataWatcher class.

    Declaration
    public DataWatcher(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 of the provided command.

    System.Data.Common.DbParameter[] parameters

    An optional array of System.Data.Common.DbParameter to use with the associated command.

    Remarks

    Monitors the provided command for changes in an interval specified by period using a MD5 hash check on the query result. The signaling is default delayed 15 seconds before first invoke.

    | Improve this Doc

    DataWatcher(DataManager, IDataCommand, TimeSpan, TimeSpan, TimeSpan, DbParameter[])

    Initializes a new instance of the DataWatcher class.

    Declaration
    public DataWatcher(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 Watcher 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 of the provided command.

    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 array of System.Data.Common.DbParameter to use with the associated command.

    Remarks

    Monitors the provided command for changes in an interval specified by period using a MD5 hash check on the query result.

    Properties

    | Improve this Doc

    Command

    Gets the associated IDataCommand of this DataWatcher.

    Declaration
    public IDataCommand Command { get; }
    Property Value
    Type Description
    IDataCommand

    The associated IDataCommand of this DataWatcher.

    | Improve this Doc

    Manager

    Gets the associated DataManager of this DataWatcher.

    Declaration
    public DataManager Manager { get; }
    Property Value
    Type Description
    DataManager

    The associated DataManager of this DataWatcher.

    | Improve this Doc

    Parameters

    Gets the associated array of System.Data.Common.DbParameter of this DataWatcher.

    Declaration
    public DbParameter[] Parameters { get; }
    Property Value
    Type Description
    System.Data.Common.DbParameter[]

    The associated array of System.Data.Common.DbParameter of this DataWatcher.

    Methods

    | Improve this Doc

    HandleSignaling()

    Handles the signaling of this DataWatcher.

    Declaration
    protected override void HandleSignaling()
    Overrides
    Watcher.HandleSignaling()

    Implements

    System.IDisposable

    Extension Methods

    ConverterExtensions.ParseWith<TSource, TResult>(TSource, Func<TSource, TResult>)
    ConverterExtensions.ParseWith<TSource, T, TResult>(TSource, Func<TSource, T, TResult>, T)
    ConverterExtensions.ParseWith<TSource, T1, T2, TResult>(TSource, Func<TSource, T1, T2, TResult>, T1, T2)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, TResult>(TSource, Func<TSource, T1, T2, T3, TResult>, T1, T2, T3)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, TResult>(TSource, Func<TSource, T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
    ConverterExtensions.As<TResult>(Object)
    ConverterExtensions.As<TResult>(Object, TResult)
    ConverterExtensions.As<TResult>(Object, TResult, IFormatProvider)
    DelegateUtilityExtensions.Wrap<TResult>(TResult)
    DelegateUtilityExtensions.DynamicWrap<TResult>(TResult)
    TweakerExtensions.Adjust<T>(T, Func<T, T>)
    TypeUtilityExtensions.Is<T>(Object)
    TypeUtilityExtensions.IsNot<T>(Object)
    TypeUtilityExtensions.IsNullable<T>(T)
    WrapperExtensions.UseWrapper<T>(T, Action<IDictionary<String, Object>>)
    WrapperExtensions.UseWrapper<T>(T, MemberInfo, Action<IDictionary<String, Object>>)
    EnumerableUtilityExtensions.Yield<TSource>(TSource)
    HashUtilityExtensions.ComputeHash(Object, Action<HashOptions>)
    HmacUtilityExtensions.ComputeKeyedHash(Object, Byte[], Action<KeyedHashOptions>)
    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX