HttpDependency Constructor
Definition
HttpDependency(Lazy<HttpWatcher>, bool)
Initializes a new instance of the HttpDependency class.
public HttpDependency(Lazy<HttpWatcher> lazyFileWatcher, bool breakTieOnChanged = false)
Parameters
lazyFileWatcherLazy<HttpWatcher>The HttpWatcher to associate with this dependency.
breakTieOnChangedboolif set to
trueall HttpWatcher instances is disassociated with this dependency after first notification of changed.
Remarks
The HttpWatcher initialization is deferred until StartAsync() is invoked.
Exceptions
- ArgumentNullException
lazyFileWatchercannot 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
lazyFileWatchersIEnumerable<Lazy<HttpWatcher>>The HttpWatcher sequence to associate with this dependency.
breakTieOnChangedboolif set to
trueall HttpWatcher instances is disassociated with this dependency after first notification of changed.
Remarks
The sequence of HttpWatcher initializations is deferred until StartAsync() is invoked.