C# Class Microsoft.ApplicationServer.Http.SafeHostDisposer

Ensures a host is opened on construction, and disposes it if the host is not faulted on dispose.
Inheritance: IDisposable
Exibir arquivo Open project: netfx/extensions

Public Methods

Method Description
Dispose ( ) : void

Closes the host if it's still in the CommunicationState.Opened state.

SafeHostDisposer ( System.ServiceModel.ServiceHost host ) : System

Opens the host if it's not in the CommunicationState.Opened state already.

Method Details

Dispose() public method

Closes the host if it's still in the CommunicationState.Opened state.
public Dispose ( ) : void
return void

SafeHostDisposer() public method

Opens the host if it's not in the CommunicationState.Opened state already.
public SafeHostDisposer ( System.ServiceModel.ServiceHost host ) : System
host System.ServiceModel.ServiceHost
return System