Show / Hide Table of Contents

    Class NetDependency

    This NetDependency class will monitor any changes occurred to a Uniform Resource Identifier while notifying subscribing objects.

    Inheritance
    System.Object
    Dependency
    NetDependency
    Implements
    IDependency
    Inherited Members
    Dependency.DependencyChanged
    Dependency.UtcLastModified
    Dependency.Create<TResult>()
    Dependency.Create<T, TResult>(T)
    Dependency.Create<T1, T2, TResult>(T1, T2)
    Dependency.Create<T1, T2, T3, TResult>(T1, T2, T3)
    Dependency.Create<T1, T2, T3, T4, TResult>(T1, T2, T3, T4)
    Dependency.Create<T1, T2, T3, T4, T5, TResult>(T1, T2, T3, T4, T5)
    Dependency.SetUtcLastModified(DateTime)
    Dependency.OnDependencyChangedRaised(DependencyEventArgs)
    Namespace: Cuemon.Net
    Assembly: Cuemon.Net.dll
    Syntax
    public sealed class NetDependency : Dependency, IDependency

    Constructors

    | Improve this Doc

    NetDependency(Boolean, String[])

    Initializes a new instance of the NetDependency class.

    Declaration
    public NetDependency(bool checkResponseData, params string[] values)
    Parameters
    Type Name Description
    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.

    System.String[] values

    An array of URI locations that this NetDependency will monitor. When any of these resources changes, this NetDependency will notify any subscribing objects of the change.

    Remarks

    The signaling is default delayed 15 seconds before first invoke. Signaling occurs every 2 minutes. The checkResponseData is useful, when the web server you are probing does not contain the Last-Modified header.

    | Improve this Doc

    NetDependency(Boolean, TimeSpan, String[])

    Initializes a new instance of the NetDependency class.

    Declaration
    public NetDependency(bool checkResponseData, TimeSpan period, params string[] values)
    Parameters
    Type Name Description
    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.

    System.TimeSpan period

    The time interval between periodic signaling to the specified values by the associated NetWatcher. Specify negative one (-1) milliseconds to disable periodic signaling.

    System.String[] values

    An array of URI string locations that this NetDependency will monitor. When any of these resources changes, this NetDependency will notify any subscribing objects of the change.

    Remarks

    The checkResponseData is useful when the web server you are probing does not contain the Last-Modified header.

    | Improve this Doc

    NetDependency(Boolean, TimeSpan, TimeSpan, String[])

    Initializes a new instance of the NetDependency class.

    Declaration
    public NetDependency(bool checkResponseData, TimeSpan dueTime, TimeSpan period, params string[] values)
    Parameters
    Type Name Description
    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.

    System.TimeSpan dueTime

    The amount of time to delay before the associated NetWatcher 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 to the specified values by the associated NetWatcher. Specify negative one (-1) milliseconds to disable periodic signaling.

    System.String[] values

    An array of URI string locations that this NetDependency will monitor. When any of these resources changes, this NetDependency will notify any subscribing objects of the change.

    Remarks

    The checkResponseData is useful when the web server you are probing does not contain the Last-Modified header.

    | Improve this Doc

    NetDependency(Boolean, TimeSpan, TimeSpan, Uri[])

    Initializes a new instance of the NetDependency class.

    Declaration
    public NetDependency(bool checkResponseData, TimeSpan dueTime, TimeSpan period, params Uri[] values)
    Parameters
    Type Name Description
    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.

    System.TimeSpan dueTime

    The amount of time to delay before the associated NetWatcher 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 to the specified values by the associated NetWatcher. Specify negative one (-1) milliseconds to disable periodic signaling.

    System.Uri[] values

    An array of URI locations that this NetDependency will monitor. When any of these resources changes, this NetDependency will notify any subscribing objects of the change.

    Remarks

    The checkResponseData is useful when the web server you are probing does not contain the Last-Modified header.

    | Improve this Doc

    NetDependency(Boolean, TimeSpan, Uri[])

    Initializes a new instance of the NetDependency class.

    Declaration
    public NetDependency(bool checkResponseData, TimeSpan period, params Uri[] values)
    Parameters
    Type Name Description
    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.

    System.TimeSpan period

    The time interval between periodic signaling to the specified values by the associated NetWatcher. Specify negative one (-1) milliseconds to disable periodic signaling.

    System.Uri[] values

    An array of URI locations that this NetDependency will monitor. When any of these resources changes, this NetDependency will notify any subscribing objects of the change.

    Remarks

    The checkResponseData is useful when the web server you are probing does not contain the Last-Modified header.

    | Improve this Doc

    NetDependency(Boolean, Uri[])

    Initializes a new instance of the NetDependency class.

    Declaration
    public NetDependency(bool checkResponseData, params Uri[] values)
    Parameters
    Type Name Description
    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.

    System.Uri[] values

    An array of URI locations that this NetDependency will monitor. When any of these resources changes, this NetDependency will notify any subscribing objects of the change.

    Remarks

    The signaling is default delayed 15 seconds before first invoke. Signaling occurs every 2 minutes. The checkResponseData is useful, when the web server you are probing does not contain the Last-Modified header.

    | Improve this Doc

    NetDependency(IEnumerable<String>)

    Initializes a new instance of the NetDependency class.

    Declaration
    public NetDependency(IEnumerable<string> values)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.String> values

    An System.Collections.Generic.IEnumerable<T> of URI string locations that this NetDependency will monitor. When any of these resources changes, this NetDependency will notify any subscribing objects of the change.

    Remarks

    The signaling is default delayed 15 seconds before first invoke. Signaling occurs every 2 minutes.

    | Improve this Doc

    NetDependency(IEnumerable<String>, Boolean)

    Initializes a new instance of the NetDependency class.

    Declaration
    public NetDependency(IEnumerable<string> values, bool checkResponseData)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.String> values

    An System.Collections.Generic.IEnumerable<T> of URI string locations that this NetDependency will monitor. When any of these resources changes, this NetDependency will notify any subscribing objects of the change.

    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

    The signaling is default delayed 15 seconds before first invoke. Signaling occurs every 2 minutes. The checkResponseData is useful, when the web server you are probing does not contain the Last-Modified header.

    | Improve this Doc

    NetDependency(IEnumerable<String>, Boolean, TimeSpan)

    Initializes a new instance of the NetDependency class.

    Declaration
    public NetDependency(IEnumerable<string> values, bool checkResponseData, TimeSpan period)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.String> values

    An System.Collections.Generic.IEnumerable<T> of URI locations that this NetDependency will monitor. When any of these resources changes, this NetDependency will notify any subscribing objects of the change.

    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.

    System.TimeSpan period

    The time interval between periodic signaling to the specified values by the associated NetWatcher. Specify negative one (-1) milliseconds to disable periodic signaling.

    Remarks

    The checkResponseData is useful when the web server you are probing does not contain the Last-Modified header.

    | Improve this Doc

    NetDependency(IEnumerable<String>, Boolean, TimeSpan, TimeSpan)

    Initializes a new instance of the NetDependency class.

    Declaration
    public NetDependency(IEnumerable<string> values, bool checkResponseData, TimeSpan dueTime, TimeSpan period)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.String> values

    An System.Collections.Generic.IEnumerable<T> of URI locations that this NetDependency will monitor. When any of these resources changes, this NetDependency will notify any subscribing objects of the change.

    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.

    System.TimeSpan dueTime

    The amount of time to delay before the associated NetWatcher 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 to the specified values by the associated NetWatcher. Specify negative one (-1) milliseconds to disable periodic signaling.

    Remarks

    The checkResponseData is useful when the web server you are probing does not contain the Last-Modified header.

    | Improve this Doc

    NetDependency(IEnumerable<String>, TimeSpan)

    Initializes a new instance of the NetDependency class.

    Declaration
    public NetDependency(IEnumerable<string> values, TimeSpan period)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.String> values

    An System.Collections.Generic.IEnumerable<T> of URI locations that this NetDependency will monitor. When any of these resources changes, this NetDependency will notify any subscribing objects of the change.

    System.TimeSpan period

    The time interval between periodic signaling to the specified values by the associated NetWatcher. Specify negative one (-1) milliseconds to disable periodic signaling.

    | Improve this Doc

    NetDependency(IEnumerable<String>, TimeSpan, TimeSpan)

    Initializes a new instance of the NetDependency class.

    Declaration
    public NetDependency(IEnumerable<string> values, TimeSpan dueTime, TimeSpan period)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.String> values

    An System.Collections.Generic.IEnumerable<T> of URI locations that this NetDependency will monitor. When any of these resources changes, this NetDependency will notify any subscribing objects of the change.

    System.TimeSpan dueTime

    The amount of time to delay before the associated NetWatcher 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 to the specified values by the associated NetWatcher. Specify negative one (-1) milliseconds to disable periodic signaling.

    | Improve this Doc

    NetDependency(IEnumerable<Uri>)

    Initializes a new instance of the NetDependency class.

    Declaration
    public NetDependency(IEnumerable<Uri> values)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.Uri> values

    An System.Collections.Generic.IEnumerable<T> of URI locations that this NetDependency will monitor. When any of these resources changes, this NetDependency will notify any subscribing objects of the change.

    Remarks

    The signaling is default delayed 15 seconds before first invoke. Signaling occurs every 2 minutes.

    | Improve this Doc

    NetDependency(IEnumerable<Uri>, Boolean)

    Initializes a new instance of the NetDependency class.

    Declaration
    public NetDependency(IEnumerable<Uri> values, bool checkResponseData)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.Uri> values

    An System.Collections.Generic.IEnumerable<T> of URI locations that this NetDependency will monitor. When any of these resources changes, this NetDependency will notify any subscribing objects of the change.

    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

    The signaling is default delayed 15 seconds before first invoke. Signaling occurs every 2 minutes. The checkResponseData is useful, when the web server you are probing does not contain the Last-Modified header.

    | Improve this Doc

    NetDependency(IEnumerable<Uri>, Boolean, TimeSpan)

    Initializes a new instance of the NetDependency class.

    Declaration
    public NetDependency(IEnumerable<Uri> values, bool checkResponseData, TimeSpan period)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.Uri> values

    An System.Collections.Generic.IEnumerable<T> of URI locations that this NetDependency will monitor. When any of these resources changes, this NetDependency will notify any subscribing objects of the change.

    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.

    System.TimeSpan period

    The time interval between periodic signaling to the specified values by the associated NetWatcher. Specify negative one (-1) milliseconds to disable periodic signaling.

    Remarks

    The signaling is default delayed 15 seconds before first invoke. The checkResponseData is useful when the web server you are probing does not contain the Last-Modified header.

    | Improve this Doc

    NetDependency(IEnumerable<Uri>, Boolean, TimeSpan, TimeSpan)

    Initializes a new instance of the NetDependency class.

    Declaration
    public NetDependency(IEnumerable<Uri> values, bool checkResponseData, TimeSpan dueTime, TimeSpan period)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.Uri> values

    An System.Collections.Generic.IEnumerable<T> of URI locations that this NetDependency will monitor. When any of these resources changes, this NetDependency will notify any subscribing objects of the change.

    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.

    System.TimeSpan dueTime

    The amount of time to delay before the associated NetWatcher 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 to the specified values by the associated NetWatcher. Specify negative one (-1) milliseconds to disable periodic signaling.

    Remarks

    The checkResponseData is useful when the web server you are probing does not contain the Last-Modified header.

    | Improve this Doc

    NetDependency(IEnumerable<Uri>, TimeSpan)

    Initializes a new instance of the NetDependency class.

    Declaration
    public NetDependency(IEnumerable<Uri> values, TimeSpan period)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.Uri> values

    An System.Collections.Generic.IEnumerable<T> of URI locations that this NetDependency will monitor. When any of these resources changes, this NetDependency will notify any subscribing objects of the change.

    System.TimeSpan period

    The time interval between periodic signaling to the specified values by the associated NetWatcher. Specify negative one (-1) milliseconds to disable periodic signaling.

    Remarks

    The signaling is default delayed 15 seconds before first invoke.

    | Improve this Doc

    NetDependency(IEnumerable<Uri>, TimeSpan, TimeSpan)

    Initializes a new instance of the NetDependency class.

    Declaration
    public NetDependency(IEnumerable<Uri> values, TimeSpan dueTime, TimeSpan period)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.Uri> values

    An System.Collections.Generic.IEnumerable<T> of URI locations that this NetDependency will monitor. When any of these resources changes, this NetDependency will notify any subscribing objects of the change.

    System.TimeSpan dueTime

    The amount of time to delay before the associated NetWatcher 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 to the specified values by the associated NetWatcher. Specify negative one (-1) milliseconds to disable periodic signaling.

    | Improve this Doc

    NetDependency(String)

    Initializes a new instance of the NetDependency class.

    Declaration
    public NetDependency(string value)
    Parameters
    Type Name Description
    System.String value

    The URI string to monitor for changes.

    Remarks

    The signaling is default delayed 15 seconds before first invoke. Signaling occurs every 2 minutes.

    | Improve this Doc

    NetDependency(String[])

    Initializes a new instance of the NetDependency class.

    Declaration
    public NetDependency(params string[] values)
    Parameters
    Type Name Description
    System.String[] values

    An array of URI locations that this NetDependency will monitor. When any of these resources changes, this NetDependency will notify any subscribing objects of the change.

    Remarks

    The signaling is default delayed 15 seconds before first invoke. Signaling occurs every 2 minutes.

    | Improve this Doc

    NetDependency(TimeSpan, String[])

    Initializes a new instance of the NetDependency class.

    Declaration
    public NetDependency(TimeSpan period, params string[] values)
    Parameters
    Type Name Description
    System.TimeSpan period

    The time interval between periodic signaling to the specified values by the associated NetWatcher. Specify negative one (-1) milliseconds to disable periodic signaling.

    System.String[] values

    An array of URI string locations that this NetDependency will monitor. When any of these resources changes, this NetDependency will notify any subscribing objects of the change.

    | Improve this Doc

    NetDependency(TimeSpan, TimeSpan, String[])

    Initializes a new instance of the NetDependency class.

    Declaration
    public NetDependency(TimeSpan dueTime, TimeSpan period, params string[] values)
    Parameters
    Type Name Description
    System.TimeSpan dueTime

    The amount of time to delay before the associated NetWatcher 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 to the specified values by the associated NetWatcher. Specify negative one (-1) milliseconds to disable periodic signaling.

    System.String[] values

    An array of URI string locations that this NetDependency will monitor. When any of these resources changes, this NetDependency will notify any subscribing objects of the change.

    | Improve this Doc

    NetDependency(TimeSpan, TimeSpan, Uri[])

    Initializes a new instance of the NetDependency class.

    Declaration
    public NetDependency(TimeSpan dueTime, TimeSpan period, params Uri[] values)
    Parameters
    Type Name Description
    System.TimeSpan dueTime

    The amount of time to delay before the associated NetWatcher 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 to the specified values by the associated NetWatcher. Specify negative one (-1) milliseconds to disable periodic signaling.

    System.Uri[] values

    An array of URI locations that this NetDependency will monitor. When any of these resources changes, this NetDependency will notify any subscribing objects of the change.

    | Improve this Doc

    NetDependency(TimeSpan, Uri[])

    Initializes a new instance of the NetDependency class.

    Declaration
    public NetDependency(TimeSpan period, params Uri[] values)
    Parameters
    Type Name Description
    System.TimeSpan period

    The time interval between periodic signaling to the specified values by the associated NetWatcher. Specify negative one (-1) milliseconds to disable periodic signaling.

    System.Uri[] values

    An array of URI locations that this NetDependency will monitor. When any of these resources changes, this NetDependency will notify any subscribing objects of the change.

    | Improve this Doc

    NetDependency(Uri)

    Initializes a new instance of the NetDependency class.

    Declaration
    public NetDependency(Uri value)
    Parameters
    Type Name Description
    System.Uri value

    The URI to monitor for changes.

    Remarks

    The signaling is default delayed 15 seconds before first invoke.

    | Improve this Doc

    NetDependency(Uri[])

    Initializes a new instance of the NetDependency class.

    Declaration
    public NetDependency(params Uri[] values)
    Parameters
    Type Name Description
    System.Uri[] values

    An array of URI locations that this NetDependency will monitor. When any of these resources changes, this NetDependency will notify any subscribing objects of the change.

    Remarks

    The signaling is default delayed 15 seconds before first invoke. Signaling occurs every 2 minutes.

    Properties

    | Improve this Doc

    HasChanged

    Gets a value indicating whether the Dependency object has changed.

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

    true if the Dependency object has changed; otherwise, false.

    Overrides
    Dependency.HasChanged

    Methods

    | Improve this Doc

    Start()

    Starts and performs the necessary dependency tasks of this instance.

    Declaration
    public override void Start()
    Overrides
    Dependency.Start()
    Exceptions
    Type Condition
    System.ArgumentException

    The provided Uri does not have a valid scheme attached. Allowed schemes for now is File, FTP or HTTP.;uris

    Implements

    IDependency

    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