C# Класс Griffin.Container.Wcf.ServiceLocationContractBehavior

Add the service location behaviour to a contract (service)
Adds the context initializer as dispatch behaviour to be able to create/dispose child containers.
Наследование: IContractBehavior
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddBindingParameters ( ContractDescription contractDescription, ServiceEndpoint endpoint, System.ServiceModel.Channels.BindingParameterCollection bindingParameters ) : void

Configures any binding elements to support the contract behavior.

ApplyClientBehavior ( ContractDescription contractDescription, ServiceEndpoint endpoint, ClientRuntime clientRuntime ) : void

Implements a modification or extension of the client across a contract.

ApplyDispatchBehavior ( ContractDescription contractDescription, ServiceEndpoint endpoint, DispatchRuntime dispatchRuntime ) : void

Implements a modification or extension of the client across a contract.

ServiceLocationContractBehavior ( IInstanceProvider instanceProvider ) : System

Initializes a new instance of the ServiceLocationContractBehavior class.

Validate ( ContractDescription contractDescription, ServiceEndpoint endpoint ) : void

Implement to confirm that the contract and endpoint can support the contract behavior.

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

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

Configures any binding elements to support the contract behavior.
public AddBindingParameters ( ContractDescription contractDescription, ServiceEndpoint endpoint, System.ServiceModel.Channels.BindingParameterCollection bindingParameters ) : void
contractDescription System.ServiceModel.Description.ContractDescription The contract description to modify.
endpoint System.ServiceModel.Description.ServiceEndpoint The endpoint to modify.
bindingParameters System.ServiceModel.Channels.BindingParameterCollection The objects that binding elements require to support the behavior.
Результат void

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

Implements a modification or extension of the client across a contract.
public ApplyClientBehavior ( ContractDescription contractDescription, ServiceEndpoint endpoint, ClientRuntime clientRuntime ) : void
contractDescription System.ServiceModel.Description.ContractDescription The contract description for which the extension is intended.
endpoint System.ServiceModel.Description.ServiceEndpoint The endpoint.
clientRuntime System.ServiceModel.Dispatcher.ClientRuntime The client runtime.
Результат void

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

Implements a modification or extension of the client across a contract.
public ApplyDispatchBehavior ( ContractDescription contractDescription, ServiceEndpoint endpoint, DispatchRuntime dispatchRuntime ) : void
contractDescription System.ServiceModel.Description.ContractDescription The contract description to be modified.
endpoint System.ServiceModel.Description.ServiceEndpoint The endpoint that exposes the contract.
dispatchRuntime System.ServiceModel.Dispatcher.DispatchRuntime The dispatch runtime that controls service execution.
Результат void

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

Initializes a new instance of the ServiceLocationContractBehavior class.
public ServiceLocationContractBehavior ( IInstanceProvider instanceProvider ) : System
instanceProvider IInstanceProvider The instance provider.
Результат System

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

Implement to confirm that the contract and endpoint can support the contract behavior.
public Validate ( ContractDescription contractDescription, ServiceEndpoint endpoint ) : void
contractDescription System.ServiceModel.Description.ContractDescription The contract to validate.
endpoint System.ServiceModel.Description.ServiceEndpoint The endpoint to validate.
Результат void