ServiceHost Members

The following tables list the members exposed by the ServiceHost type.

(see also Protected Constructors )
  Name Description
Public method ServiceHost Overloaded. Initializes a new instance of the ServiceHost class.
Top

  Name Description
Protected method ServiceHost Overloaded. Initializes a new instance of the ServiceHost class.
Top

(see also Protected Properties )
  Name Description
Public property Authorization  Gets the authorization behavior for the service hosted.(inherited from ServiceHostBase)
Public property BaseAddresses  Gets the base addresses used by the hosted service.(inherited from ServiceHostBase)
Public property ChannelDispatchers  Gets the collection of channel dispatchers used by the service host.(inherited from ServiceHostBase)
Public property CloseTimeout  Gets or sets the interval of time allowed for the service host to close.(inherited from ServiceHostBase)
Public property Credentials  Gets the credential for the service hosted.(inherited from ServiceHostBase)
Public property Description  Gets the description of the service hosted.(inherited from ServiceHostBase)
Public property Extensions  Gets the extensions for the current specified service host.(inherited from ServiceHostBase)
Public property ManualFlowControlLimit  Gets or sets the flow control limit for messages received by the service hosted.(inherited from ServiceHostBase)
Public property OpenTimeout  Gets or sets the interval of time allowed for the service host to open.(inherited from ServiceHostBase)
Public property SingletonInstance Gets the singleton instance of the hosted service.
Public property State  Gets a value that indicates the current state of the communication object.(inherited from CommunicationObject)
Top

  Name Description
Protected property DefaultCloseTimeout  Gets the default interval of time allowed for the service host to close.(inherited from ServiceHostBase)
Protected property DefaultOpenTimeout  Gets the default interval of time allowed for the service host to open.(inherited from ServiceHostBase)
Protected property ImplementedContracts  Retrieves the contracts implemented by the service hosted.(inherited from ServiceHostBase)
Protected property IsDisposed  Gets a value that indicates whether the communication object has been disposed.(inherited from CommunicationObject)
Protected property ThisLock  Gets the mutually exclusive lock that protects the class instance during a state transition.(inherited from CommunicationObject)
Top

(see also Protected Methods )
  Name Description
Public method Abort  Causes a communication object to transition immediately from its current state into the closing state. (inherited from CommunicationObject)
Public method AddServiceEndpoint Overloaded. Adds a service endpoint to the hosted service.
Public method BeginClose  Overloaded. Begins an asynchronous operation to close a communication object. (inherited from CommunicationObject)
Public method BeginOpen  Overloaded. Begins an asynchronous operation to close a communication object. (inherited from CommunicationObject)
Public method Close  Overloaded. Causes a communication object to transition from its current state into the closed state. (inherited from CommunicationObject)
Public method EndClose  Completes an asynchronous operation to close a communication object. (inherited from CommunicationObject)
Public method EndOpen  Completes an asynchronous operation to open a communication object. (inherited from CommunicationObject)
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method IncrementManualFlowControlLimit  Increased the limit on the flow rate of messages to the hosted service by a specified increment. (inherited from ServiceHostBase)
Public method Open  Overloaded. Causes a communication object to transition from the created state into the opened state. (inherited from CommunicationObject)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Top

  Name Description
Protected method AddBaseAddress  Adds a base address to the service host. (inherited from ServiceHostBase)
Protected method ApplyConfiguration  Loads the service description information from the configuration file and applies it to the runtime being constructed. (inherited from ServiceHostBase)
Protected method CreateDescription Overridden.  
Protected method Fault  Causes a communication object to transition from its current state into the faulted state. (inherited from CommunicationObject)
Protected method 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)
Protected method GetCommunicationObjectType  Gets the type of communication object. (inherited from CommunicationObject)
Protected method InitializeDescription Overloaded. Initializes a description of the service hosted based on its type or instance.
Protected method InitializeRuntime  Initializes the runtime for the service host. (inherited from ServiceHostBase)
Protected method LoadConfigurationSection  Loads the service element from the configuration file of the hosted service. (inherited from ServiceHostBase)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Protected method OnAbort  Aborts the service. (inherited from ServiceHostBase)
Protected method OnBeginClose  Begins an asynchronous operation invoked on the close of the service host. (inherited from ServiceHostBase)
Protected method OnBeginOpen  Begins an asynchronous operation invoked on the opening of the service host. (inherited from ServiceHostBase)
Protected method OnClose  Closes down the hosted service, including their channel dispatchers and associated instance contexts and listeners. (inherited from ServiceHostBase)
Protected method OnClosed Overridden. Disposes of disposable services that are being hosted when the service host is closed.
Protected method OnClosing  Invoked during the transition of a communication object into the closing state. (inherited from CommunicationObject)
Protected method OnEndClose  Completes an asynchronous operation invoked on the closing of the service host. (inherited from ServiceHostBase)
Protected method OnEndOpen  Completes an asynchronous operation invoked on the opening of the service host. (inherited from ServiceHostBase)
Protected method OnFaulted  Inserts processing on a communication object after it transitions to the faulted state due to the invocation of a synchronous fault operation. (inherited from CommunicationObject)
Protected method OnOpen  Opens the channel dispatchers. (inherited from ServiceHostBase)
Protected method OnOpened  Gets the service credentials and service authorization behavior for the hosted service. (inherited from ServiceHostBase)
Protected method OnOpening  Invoked during the transition of a communication object into the opening state. (inherited from CommunicationObject)
Protected method ReleasePerformanceCounters  Releases the service and channel dispatcher performance counters for the hosted service. (inherited from ServiceHostBase)
Protected method ThrowIfDisposed  Throws an exception if the communication object is disposed. (inherited from CommunicationObject)
Protected method ThrowIfDisposedOrImmutable  Throws an exception if the communication object the State property is not set to the Created state. (inherited from CommunicationObject)
Protected method ThrowIfDisposedOrNotOpen  Throws an exception if the communication object is not in the Opened state. (inherited from CommunicationObject)
Top

  Name Description
Public event Closed  Occurs when a communication object transitions into the closed state.(inherited from CommunicationObject)
Public event Closing  Occurs when a communication object transitions into the closing state.(inherited from CommunicationObject)
Public event Faulted  Occurs when a communication object transitions into the faulted state.(inherited from CommunicationObject)
Public event Opened  Occurs when a communication object transitions into the opened state.(inherited from CommunicationObject)
Public event Opening  Occurs when a communication object transitions into the opening state.(inherited from CommunicationObject)
Public event UnknownMessageReceived  Occurs when an unknown message is received.(inherited from ServiceHostBase)
Top

Community Additions

ADD
Show: