/// <summary> /// Stops the provider. /// </summary> internal void StopProvider() { if (this.httpHost != null) { this.httpHost.Dispose(); this.httpHost = null; } }
/// <summary> /// Stops the provider. /// </summary> internal void StopProvider() { Contract.Ensures(!this.IsRunning); if (this.httpHost != null) { this.httpHost.Dispose(); this.httpHost = null; } }
/// <summary> /// Releases unmanaged and - optionally - managed resources /// </summary> /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param> protected virtual void Dispose(bool disposing) { if (disposing) { var host = this.httpHost as IDisposable; if (host != null) { host.Dispose(); } this.httpHost = null; } }
/// <summary> /// Releases unmanaged and - optionally - managed resources /// </summary> /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param> protected virtual void Dispose(bool disposing) { if (disposing) { var host = this.httpHost as IDisposable; if (host != null) { host.Dispose(); } this.httpHost = null; } }
/// <summary> /// Stops the provider. /// </summary> internal void StopProvider() { Contract.Ensures(!this.IsRunning); if (this.httpHost != null) { this.httpHost.Dispose(); this.httpHost = null; } }
/// <summary> /// Starts the provider. /// </summary> internal void StartProvider() { Contract.Ensures(this.IsRunning); this.httpHost = HttpHost.CreateHost(this.RequestHandler); this.AffirmativeIdentities.Add(new Uri(this.httpHost.BaseUri, YesIdentity)); this.NegativeIdentitities.Add(new Uri(this.httpHost.BaseUri, NoIdentity)); }
/// <summary> /// Starts the provider. /// </summary> internal void StartProvider() { Contract.Ensures(this.IsRunning); this.httpHost = HttpHost.CreateHost(this.RequestHandler); }
/// <summary> /// Starts the provider. /// </summary> internal void StartProvider() { Contract.Ensures(this.IsRunning); this.httpHost = HttpHost.CreateHost(this.RequestHandler); }
/// <summary> /// Stops the provider. /// </summary> internal void StopProvider() { if (this.httpHost != null) { this.httpHost.Dispose(); this.httpHost = null; } }
/// <summary> /// Starts the provider. /// </summary> internal void StartProvider() { this.httpHost = HttpHost.CreateHost(this.RequestHandler); }
/// <summary> /// Starts the provider. /// </summary> internal void StartProvider() { this.httpHost = HttpHost.CreateHost(this.RequestHandler); }