C# Class Thinktecture.ServiceModel.Extensions.Metadata.StaticMetadataBehavior

Contains the IServiceBehavior implementation that is used to hookup MetadataService extension to the runtime.
Inheritance: IServiceBehavior
Datei anzeigen Open project: WSCF/WSCF

Public Methods

Method Description
ApplyDispatchBehavior ( System.ServiceModel.Description.ServiceDescription serviceDescription, ServiceHostBase serviceHostBase ) : void

Provides the ability to change run-time property values or insert custom extension objects such as error handlers, message or parameter interceptors, security extensions, and other custom extension objects. Here we use it to hook up our ServiceHostBase extension that is responsible for setting up the metadata service to the runtime.

StaticMetadataBehavior ( ) : System

Creates a new instance of StaticMetadataBehavior class.

StaticMetadataBehavior ( string metadataUrl, string rootMetadataFileLocation ) : System

Creates a new instance of StaticMetadtaBehavior class.

Validate ( ServiceDescription serviceDescription, ServiceHostBase serviceHostBase ) : void

Provides the ability to inspect the service host and the service description to confirm that the service can run successfully.

Private Methods

Method Description
AddBindingParameters ( System.ServiceModel.Description.ServiceDescription serviceDescription, ServiceHostBase serviceHostBase, Collection endpoints, System.ServiceModel.Channels.BindingParameterCollection bindingParameters ) : void
CanTranslateGetFullPathExceptionToInvalidOperation ( Exception exception ) : bool

EnsureRootMetadataLocationsIsAnAbsolutePath ( ) : void

GetAbsoluteMetadataServiceUri ( ) : Uri

Constructs the absolute metadata service Uri from the configured endpoint address.

GetMetadataServiceUri ( Uri hostBaseAddress ) : Uri

Creates the endpoint address Uri for metadata service based on host's http base address and what's configured as metadata service endpoint address.

Method Details

ApplyDispatchBehavior() public method

Provides the ability to change run-time property values or insert custom extension objects such as error handlers, message or parameter interceptors, security extensions, and other custom extension objects. Here we use it to hook up our ServiceHostBase extension that is responsible for setting up the metadata service to the runtime.
public ApplyDispatchBehavior ( System.ServiceModel.Description.ServiceDescription serviceDescription, ServiceHostBase serviceHostBase ) : void
serviceDescription System.ServiceModel.Description.ServiceDescription The service description.
serviceHostBase ServiceHostBase The host that is currently being built.
return void

StaticMetadataBehavior() public method

Creates a new instance of StaticMetadataBehavior class.
public StaticMetadataBehavior ( ) : System
return System

StaticMetadataBehavior() public method

Creates a new instance of StaticMetadtaBehavior class.
public StaticMetadataBehavior ( string metadataUrl, string rootMetadataFileLocation ) : System
metadataUrl string
rootMetadataFileLocation string
return System

Validate() public method

Provides the ability to inspect the service host and the service description to confirm that the service can run successfully.
public Validate ( ServiceDescription serviceDescription, ServiceHostBase serviceHostBase ) : void
serviceDescription ServiceDescription The service description.
serviceHostBase ServiceHostBase The service host that is currently being constructed.
return void