Show / Hide Table of Contents

    Class NetWatcher

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

    Inheritance
    System.Object
    Watcher
    NetWatcher
    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.Net
    Assembly: Cuemon.Net.dll
    Syntax
    public sealed class NetWatcher : Watcher, IDisposable

    Constructors

    | Improve this Doc

    NetWatcher(Uri)

    Initializes a new instance of the NetWatcher class.

    Declaration
    public NetWatcher(Uri requestUri)
    Parameters
    Type Name Description
    System.Uri requestUri

    The request URI to monitor for changes.

    Remarks

    Monitors the provided requestUri for changes in an interval of two minutes, using the last modified timestamp of the ressource.

    | Improve this Doc

    NetWatcher(Uri, Boolean)

    Initializes a new instance of the NetWatcher class.

    Declaration
    public NetWatcher(Uri requestUri, bool checkResponseData)
    Parameters
    Type Name Description
    System.Uri requestUri

    The request URI to monitor for changes.

    System.Boolean checkResponseData

    if set to true, a MD5 hash check of the response data is used to determine a change state of the resource; false to check only for the last modification of the resource.

    Remarks

    Monitors the provided requestUri for changes in an interval of two minutes, determined by checkResponseData.

    | Improve this Doc

    NetWatcher(Uri, TimeSpan)

    Initializes a new instance of the NetWatcher class.

    Declaration
    public NetWatcher(Uri requestUri, TimeSpan period)
    Parameters
    Type Name Description
    System.Uri requestUri

    The request URI to monitor for changes.

    System.TimeSpan period

    The time interval between periodic signaling for changes of provided requestUri.

    Remarks

    Monitors the provided requestUri for changes in an interval specified by period, using the last modified time stamp of the resource.

    | Improve this Doc

    NetWatcher(Uri, TimeSpan, Boolean)

    Initializes a new instance of the NetWatcher class.

    Declaration
    public NetWatcher(Uri requestUri, TimeSpan period, bool checkResponseData)
    Parameters
    Type Name Description
    System.Uri requestUri

    The request URI to monitor for changes.

    System.TimeSpan period

    The time interval between periodic signaling for changes of provided requestUri.

    System.Boolean checkResponseData

    if set to true, a MD5 hash check of the response data is used to determine a change state of the resource; false to check only for the last modification of the resource.

    Remarks

    Monitors the provided requestUri for changes in an interval specified by period, determined by checkResponseData. The signaling is default delayed 15 seconds before first invoke.

    | Improve this Doc

    NetWatcher(Uri, TimeSpan, TimeSpan, Boolean)

    Initializes a new instance of the NetWatcher class.

    Declaration
    public NetWatcher(Uri requestUri, TimeSpan dueTime, TimeSpan period, bool checkResponseData)
    Parameters
    Type Name Description
    System.Uri requestUri

    The request URI to 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 provided requestUri.

    System.Boolean checkResponseData

    if set to true, a MD5 hash check of the response data is used to determine a change state of the resource; false to check only for the last modification of the resource.

    Remarks

    Monitors the provided requestUri for changes in an interval specified by period, determined by checkResponseData.

    Properties

    | Improve this Doc

    CheckResponseData

    Gets a value indicating whether to perform a MD5 hash-check of the response data from the RequestUri.

    Declaration
    public bool CheckResponseData { get; }
    Property Value
    Type Description
    System.Boolean

    true to perform a MD5 hash-check of the response data from the RequestUri; otherwise, false.

    | Improve this Doc

    RequestUri

    Gets the associated request URI of this NetWatcher.

    Declaration
    public Uri RequestUri { get; }
    Property Value
    Type Description
    System.Uri

    The associated request URI of this NetWatcher.

    | Improve this Doc

    Scheme

    Gets the UriScheme of this NetWatcher.

    Declaration
    public UriScheme Scheme { get; }
    Property Value
    Type Description
    UriScheme

    An UriScheme of this NetWatcher.

    Methods

    | Improve this Doc

    HandleSignaling()

    Handles the signaling of this NetWatcher.

    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