C# Класс Thinktecture.ServiceModel.Extensions.Metadata.StaticMetadataBehavior

Contains the IServiceBehavior implementation that is used to hookup MetadataService extension to the runtime.
Наследование: IServiceBehavior
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

ApplyDispatchBehavior() публичный Метод

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.
Результат void

StaticMetadataBehavior() публичный Метод

Creates a new instance of StaticMetadataBehavior class.
public StaticMetadataBehavior ( ) : System
Результат System

StaticMetadataBehavior() публичный Метод

Creates a new instance of StaticMetadtaBehavior class.
public StaticMetadataBehavior ( string metadataUrl, string rootMetadataFileLocation ) : System
metadataUrl string
rootMetadataFileLocation string
Результат System

Validate() публичный Метод

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.
Результат void