ServiceHost.InitializeDescription Method

 

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

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

NameDescription
System_CAPS_protmethodInitializeDescription(Object, UriSchemeKeyedCollection)

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

System_CAPS_protmethodInitializeDescription(Type, UriSchemeKeyedCollection)

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

System_CAPS_protmethodInitializeDescription(UriSchemeKeyedCollection)

Creates and initializes the service host with the contract and service descriptions.(Inherited from ServiceHostBase.)

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.

Return to top
Show: