C# 클래스 Thinktecture.ServiceModel.Extensions.Metadata.StaticMetadataBehavior

Contains the IServiceBehavior implementation that is used to hookup MetadataService extension to the runtime.
상속: IServiceBehavior
파일 보기 프로젝트 열기: WSCF/WSCF

공개 메소드들

메소드 설명
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