Export (0) Print
Expand All

ServiceHost.InitializeDescription Method

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

Name Description
ServiceHost.InitializeDescription (UriSchemeKeyedCollection) Creates and initializes the service host with the contract and service descriptions.
ServiceHost.InitializeDescription (Object, UriSchemeKeyedCollection) Initializes a description of the service hosted based on its instance and specified base addresses.
ServiceHost.InitializeDescription (Type, UriSchemeKeyedCollection) Initializes a description of the service hosted based on its type and specified base addresses.

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.

Community Additions

ADD
Show:
© 2014 Microsoft