コード例 #1
0
 /// <summary>
 /// Stops the provider.
 /// </summary>
 internal void StopProvider()
 {
     if (this.httpHost != null)
     {
         this.httpHost.Dispose();
         this.httpHost = null;
     }
 }
コード例 #2
0
ファイル: HostedProvider.cs プロジェクト: terry2012/DSV
 /// <summary>
 /// Stops the provider.
 /// </summary>
 internal void StopProvider()
 {
     Contract.Ensures(!this.IsRunning);
     if (this.httpHost != null)
     {
         this.httpHost.Dispose();
         this.httpHost = null;
     }
 }
コード例 #3
0
ファイル: HostedProvider.cs プロジェクト: terry2012/DSV
        /// <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));
 }
コード例 #7
0
		/// <summary>
		/// Starts the provider.
		/// </summary>
		internal void StartProvider() {
			Contract.Ensures(this.IsRunning);
			this.httpHost = HttpHost.CreateHost(this.RequestHandler);
		}
コード例 #8
0
ファイル: HostedProvider.cs プロジェクト: terry2012/DSV
 /// <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);
 }