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

Contains the IServiceBehavior implementation that is used to hookup MetadataService extension to the runtime.
Inheritance: IServiceBehavior
Afficher le fichier Open project: WSCF/WSCF

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat void

StaticMetadataBehavior() public méthode

Creates a new instance of StaticMetadataBehavior class.
public StaticMetadataBehavior ( ) : System
Résultat System

StaticMetadataBehavior() public méthode

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

Validate() public méthode

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.
Résultat void