Table of Contents

HttpDependency Constructor

Definition

Namespace
Cuemon.Net.Http
Assemblies
Cuemon.Net.dll
Source
src/Cuemon.Net/Http/HttpDependency.cs

HttpDependency(Lazy<HttpWatcher>, bool)

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 bool

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.

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

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 bool

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.