Class NetDependency
This NetDependency class will monitor any changes occurred to a Uniform Resource Identifier while notifying subscribing objects.
Implements
Inherited Members
Namespace: Cuemon.Net
Assembly: Cuemon.Net.dll
Syntax
public sealed class NetDependency : Dependency, IDependency
Constructors
| Improve this DocNetDependency(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 |
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.
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 |
System.TimeSpan | period | The time interval between periodic signaling to the specified |
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.
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 |
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 |
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.
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 |
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 |
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.
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 |
System.TimeSpan | period | The time interval between periodic signaling to the specified |
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.
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 |
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.
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.
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 |
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.
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 |
System.TimeSpan | period | The time interval between periodic signaling to the specified |
Remarks
The checkResponseData
is useful when the web server you are probing does not contain the Last-Modified header.
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 |
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 |
Remarks
The checkResponseData
is useful when the web server you are probing does not contain the Last-Modified header.
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 |
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 |
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.
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 |
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.
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 |
System.TimeSpan | period | The time interval between periodic signaling to the specified |
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.
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 |
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 |
Remarks
The checkResponseData
is useful when the web server you are probing does not contain the Last-Modified header.
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 |
Remarks
The signaling is default delayed 15 seconds before first invoke.
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 |
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.
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.
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 |
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. |
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 |
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. |
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 |
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. |
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 |
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. |
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.
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 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()
Overrides
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 |