Table of Contents

Class HttpDependency

Namespace
Cuemon.Net.Http
Assembly
Cuemon.Net.dll

Provides a way to monitor any changes occurred to one or more URI resources while notifying subscribing objects.

public class HttpDependency : Dependency, IDependency
Inheritance
HttpDependency
Implements
Inherited Members

Constructors

HttpDependency(IEnumerable<Lazy<HttpWatcher>>, Boolean)

Initializes a new instance of the HttpDependency class.

public HttpDependency(IEnumerable<Lazy<HttpWatcher>> lazyFileWatchers, bool breakTieOnChanged = false)

Parameters

lazyFileWatchers IEnumerable<Lazy<HttpWatcher>>

The HttpWatcher sequence to associate with this dependency.

breakTieOnChanged Boolean

if set to true all HttpWatcher instances is disassociated with this dependency after first notification of changed.

Remarks

The sequence of HttpWatcher initializations is deferred until StartAsync() is invoked.

HttpDependency(Lazy<HttpWatcher>, Boolean)

Initializes a new instance of the HttpDependency class.

public HttpDependency(Lazy<HttpWatcher> lazyFileWatcher, bool breakTieOnChanged = false)

Parameters

lazyFileWatcher Lazy<HttpWatcher>

The HttpWatcher to associate with this dependency.

breakTieOnChanged Boolean

if set to true all HttpWatcher instances is disassociated with this dependency after first notification of changed.

Remarks

The HttpWatcher initialization is deferred until StartAsync() is invoked.

Exceptions

ArgumentNullException

lazyFileWatcher cannot be null.

See Also