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
Afficher le fichier Open project: netfx/extensions

Méthodes publiques

Méthode 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 méthode

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

SafeHostDisposer() public méthode

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