Class GetOperationContextServiceBehavior
Provides the capability to get the Copper message headers from the WCF message headers and make them available to the contract implementation.
Inheritance
Namespace: Copper.Wcf
Assembly: Copper.Wcf.dll
Syntax
public class GetOperationContextServiceBehavior : IServiceBehavior
Methods
View SourceAddBindingParameters(ServiceDescription, ServiceHostBase, Collection<ServiceEndpoint>, BindingParameterCollection)
Provides the ability to pass custom data to binding elements to support the contract implementation.
Declaration
public void AddBindingParameters(ServiceDescription serviceDescription, ServiceHostBase serviceHostBase, Collection<ServiceEndpoint> endpoints, BindingParameterCollection bindingParameters)
Parameters
Type | Name | Description |
---|---|---|
Service |
serviceDescription | The service description of the service. |
Service |
serviceHostBase | The host of the service. |
System. |
endpoints | The service endpoints. |
Binding |
bindingParameters | Custom objects to which binding elements have access. |
ApplyDispatchBehavior(ServiceDescription, ServiceHostBase)
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.
Declaration
public void ApplyDispatchBehavior(ServiceDescription serviceDescription, ServiceHostBase serviceHostBase)
Parameters
Type | Name | Description |
---|---|---|
Service |
serviceDescription | The service description. |
Service |
serviceHostBase | The host that is currently being built. |
Validate(ServiceDescription, ServiceHostBase)
Provides the ability to inspect the service host and the service description to confirm that the service can run successfully.
Declaration
public void Validate(ServiceDescription serviceDescription, ServiceHostBase serviceHostBase)
Parameters
Type | Name | Description |
---|---|---|
Service |
serviceDescription | The service description. |
Service |
serviceHostBase | The service host that is currently being constructed. |