Export (0) Print
Expand All

ServiceHost.InitializeDescription Method

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Protected method InitializeDescription(UriSchemeKeyedCollection) Creates and initializes the service host with the contract and service descriptions. (Inherited from ServiceHostBase.)
Protected method InitializeDescription(Object, UriSchemeKeyedCollection) Initializes a description of the service hosted based on its instance and specified base addresses.
Protected method InitializeDescription(Type, UriSchemeKeyedCollection) Initializes a description of the service hosted based on its type and specified base addresses.
Top

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