ServiceHost.InitializeDescription ServiceHost.InitializeDescription ServiceHost.InitializeDescription ServiceHost.InitializeDescription Method

Definition

Initializes a description of the service hosted based on its type or instance.

Overloads

InitializeDescription(Object, UriSchemeKeyedCollection) InitializeDescription(Object, UriSchemeKeyedCollection) InitializeDescription(Object, UriSchemeKeyedCollection) InitializeDescription(Object, UriSchemeKeyedCollection)

Initializes a description of the service hosted based on its instance and specified base addresses.

InitializeDescription(Type, UriSchemeKeyedCollection) InitializeDescription(Type, UriSchemeKeyedCollection) InitializeDescription(Type, UriSchemeKeyedCollection) InitializeDescription(Type, UriSchemeKeyedCollection)

Initializes a description of the service hosted based on its type and specified base addresses.

Remarks

This method removes the requirement for passing base addresses as part of ServiceHost. Classes that inherit from ServiceHost can call ServiceHost and then can call one of the InitializeDescription when a base address is available. This is how the Service Model Metadata Utility Tool (Svcutil.exe) is implemented.

InitializeDescription(Object, UriSchemeKeyedCollection) InitializeDescription(Object, UriSchemeKeyedCollection) InitializeDescription(Object, UriSchemeKeyedCollection) InitializeDescription(Object, UriSchemeKeyedCollection)

Initializes a description of the service hosted based on its instance and specified base addresses.

protected:
 void InitializeDescription(System::Object ^ singletonInstance, System::ServiceModel::UriSchemeKeyedCollection ^ baseAddresses);
protected void InitializeDescription (object singletonInstance, System.ServiceModel.UriSchemeKeyedCollection baseAddresses);
override this.InitializeDescription : obj * System.ServiceModel.UriSchemeKeyedCollection -> unit
Protected Sub InitializeDescription (singletonInstance As Object, baseAddresses As UriSchemeKeyedCollection)

Parameters

singletonInstance
Object Object Object Object

The instance of the hosted service.

baseAddresses
UriSchemeKeyedCollection UriSchemeKeyedCollection UriSchemeKeyedCollection UriSchemeKeyedCollection

The UriSchemeKeyedCollection that contains the base addresses for the hosted service.

Exceptions

InitializeDescription(Type, UriSchemeKeyedCollection) InitializeDescription(Type, UriSchemeKeyedCollection) InitializeDescription(Type, UriSchemeKeyedCollection) InitializeDescription(Type, UriSchemeKeyedCollection)

Initializes a description of the service hosted based on its type and specified base addresses.

protected:
 void InitializeDescription(Type ^ serviceType, System::ServiceModel::UriSchemeKeyedCollection ^ baseAddresses);
protected void InitializeDescription (Type serviceType, System.ServiceModel.UriSchemeKeyedCollection baseAddresses);
override this.InitializeDescription : Type * System.ServiceModel.UriSchemeKeyedCollection -> unit
Protected Sub InitializeDescription (serviceType As Type, baseAddresses As UriSchemeKeyedCollection)

Parameters

serviceType
Type Type Type Type

The Type of service hosted.

baseAddresses
UriSchemeKeyedCollection UriSchemeKeyedCollection UriSchemeKeyedCollection UriSchemeKeyedCollection

The UriSchemeKeyedCollection that contains the base addresses for the hosted service.

Exceptions

Applies to