ServiceHost::InitializeDescription Method
.NET Framework (current version)
Initializes a description of the service hosted based on its type or instance.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
| Name | Description | |
|---|---|---|
![]() | InitializeDescription(Object^, UriSchemeKeyedCollection^) | Initializes a description of the service hosted based on its instance and specified base addresses. |
![]() | InitializeDescription(Type^, UriSchemeKeyedCollection^) | Initializes a description of the service hosted based on its type and specified base addresses. |
![]() | InitializeDescription(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.
Show:
