Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
ServiceHost Class
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
ServiceHost Methods

Updated: November 2007

The ServiceHost type exposes the following members.

  NameDescription
AbortCauses a communication object to transition immediately from its current state into the closing state. (Inherited from CommunicationObject.)
AddBaseAddressAdds a base address to the service host. (Inherited from ServiceHostBase.)
AddServiceEndpointOverloaded. Adds a service endpoint to the hosted service.
ApplyConfigurationLoads the service description information from the configuration file and applies it to the runtime being constructed. (Inherited from ServiceHostBase.)
BeginCloseOverloaded.
BeginOpenOverloaded.
CloseOverloaded.
CreateDescriptionCreates a description of the service hosted. (Overrides ServiceHostBase..::.CreateDescription(IDictionary<(Of <(String, ContractDescription>)>)%).)
EndCloseCompletes an asynchronous operation to close a communication object. (Inherited from CommunicationObject.)
EndOpenCompletes an asynchronous operation to open a communication object. (Inherited from CommunicationObject.)
Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
FaultCauses a communication object to transition from its current state into the faulted state. (Inherited from CommunicationObject.)
Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
GetCommunicationObjectTypeGets the type of communication object. (Inherited from CommunicationObject.)
GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
GetType Gets the Type of the current instance. (Inherited from Object.)
IncrementManualFlowControlLimitIncreases the limit on the flow rate of messages to the hosted service by a specified increment. (Inherited from ServiceHostBase.)
InitializeDescriptionOverloaded. Initializes a description of the service hosted based on its type or instance.
InitializeRuntimeInitializes the runtime for the service host. (Inherited from ServiceHostBase.)
LoadConfigurationSectionLoads the service element from the configuration file of the hosted service. (Inherited from ServiceHostBase.)
MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
OnAbortAborts the service. (Inherited from ServiceHostBase.)
OnBeginCloseBegins an asynchronous operation invoked on the close of the service host. (Inherited from ServiceHostBase.)
OnBeginOpenBegins an asynchronous operation invoked on the opening of the service host. (Inherited from ServiceHostBase.)
OnCloseCloses down the hosted service, including their channel dispatchers and associated instance contexts and listeners. (Inherited from ServiceHostBase.)
OnClosedDisposes of disposable services that are being hosted when the service host is closed. (Overrides CommunicationObject..::.OnClosed()()().)
OnClosingInvoked during the transition of a communication object into the closing state. (Inherited from CommunicationObject.)
OnEndCloseCompletes an asynchronous operation invoked on the closing of the service host. (Inherited from ServiceHostBase.)
OnEndOpenCompletes an asynchronous operation invoked on the opening of the service host. (Inherited from ServiceHostBase.)
OnFaultedInserts processing on a communication object after it transitions to the faulted state due to the invocation of a synchronous fault operation. (Inherited from CommunicationObject.)
OnOpenOpens the channel dispatchers. (Inherited from ServiceHostBase.)
OnOpenedGets the service credentials and service authorization behavior for the hosted service. (Inherited from ServiceHostBase.)
OnOpeningInvoked during the transition of a communication object into the opening state. (Inherited from CommunicationObject.)
OpenOverloaded.
ReleasePerformanceCountersReleases the service and channel dispatcher performance counters for the hosted service. (Inherited from ServiceHostBase.)
ThrowIfDisposedThrows an exception if the communication object is disposed. (Inherited from CommunicationObject.)
ThrowIfDisposedOrImmutableThrows an exception if the communication object the State property is not set to the Created state. (Inherited from CommunicationObject.)
ThrowIfDisposedOrNotOpenThrows an exception if the communication object is not in the Opened state. (Inherited from CommunicationObject.)
ToString Returns a String that represents the current Object. (Inherited from Object.)
Top
  NameDescription
IDisposable..::.DisposeCloses the service host. (Inherited from ServiceHostBase.)
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker