C# Class 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.
Inheritance: IContractBehavior
Afficher le fichier Open project: jgauffin/Griffin.Container Class Usage Examples

Méthodes publiques

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

Method Details

AddBindingParameters() public méthode

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

ApplyClientBehavior() public méthode

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

ApplyDispatchBehavior() public méthode

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

ServiceLocationContractBehavior() public méthode

Initializes a new instance of the ServiceLocationContractBehavior class.
public ServiceLocationContractBehavior ( IInstanceProvider instanceProvider ) : System
instanceProvider IInstanceProvider The instance provider.
Résultat System

Validate() public méthode

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