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
Show file Open project: jgauffin/Griffin.Container Class Usage Examples

Public Methods

Method 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 method

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.
return void

ApplyClientBehavior() public method

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.
return void

ApplyDispatchBehavior() public method

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.
return void

ServiceLocationContractBehavior() public method

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

Validate() public method

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.
return void