Пример #1
0
 /// <summary>
 /// Stops the provider.
 /// </summary>
 internal void StopProvider()
 {
     if (this.httpHost != null)
     {
         this.httpHost.Dispose();
         this.httpHost = null;
     }
 }
Пример #2
0
 /// <summary>
 /// Stops the provider.
 /// </summary>
 internal void StopProvider()
 {
     Contract.Ensures(!this.IsRunning);
     if (this.httpHost != null)
     {
         this.httpHost.Dispose();
         this.httpHost = null;
     }
 }
Пример #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;
            }
        }
Пример #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;
            }
        }
Пример #5
0
 /// <summary>
 /// Stops the provider.
 /// </summary>
 internal void StopProvider()
 {
     Contract.Ensures(!this.IsRunning);
     if (this.httpHost != null) {
         this.httpHost.Dispose();
         this.httpHost = null;
     }
 }
Пример #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);
		}
Пример #8
0
 /// <summary>
 /// Starts the provider.
 /// </summary>
 internal void StartProvider()
 {
     Contract.Ensures(this.IsRunning);
     this.httpHost = HttpHost.CreateHost(this.RequestHandler);
 }
Пример #9
0
		/// <summary>
		/// Stops the provider.
		/// </summary>
		internal void StopProvider() {
			if (this.httpHost != null) {
				this.httpHost.Dispose();
				this.httpHost = null;
			}
		}
Пример #10
0
		/// <summary>
		/// Starts the provider.
		/// </summary>
		internal void StartProvider() {
			this.httpHost = HttpHost.CreateHost(this.RequestHandler);
		}
Пример #11
0
 /// <summary>
 /// Starts the provider.
 /// </summary>
 internal void StartProvider()
 {
     this.httpHost = HttpHost.CreateHost(this.RequestHandler);
 }