Esempio n. 1
0
 /// <summary>
 /// Stops the provider.
 /// </summary>
 internal void StopProvider()
 {
     if (this.httpHost != null)
     {
         this.httpHost.Dispose();
         this.httpHost = null;
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Stops the provider.
 /// </summary>
 internal void StopProvider()
 {
     Contract.Ensures(!this.IsRunning);
     if (this.httpHost != null)
     {
         this.httpHost.Dispose();
         this.httpHost = null;
     }
 }
Esempio n. 3
0
        /// <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;
            }
        }
Esempio n. 4
0
        /// <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;
            }
        }
Esempio n. 5
0
 /// <summary>
 /// Stops the provider.
 /// </summary>
 internal void StopProvider()
 {
     Contract.Ensures(!this.IsRunning);
     if (this.httpHost != null) {
         this.httpHost.Dispose();
         this.httpHost = null;
     }
 }
Esempio n. 6
0
 /// <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);
		}
Esempio n. 8
0
 /// <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);
		}
Esempio n. 11
0
 /// <summary>
 /// Starts the provider.
 /// </summary>
 internal void StartProvider()
 {
     this.httpHost = HttpHost.CreateHost(this.RequestHandler);
 }