Noemax.WCFX.Behaviors Namespace : CustomOperationSelectorAttribute Class |
'Declaration Public Class CustomOperationSelectorAttribute Inherits System.Attribute
'Usage Dim instance As CustomOperationSelectorAttribute
public class CustomOperationSelectorAttribute : System.Attribute
public class CustomOperationSelectorAttribute = class(System.Attribute)
public class CustomOperationSelectorAttribute extends System.Attribute
public __gc class CustomOperationSelectorAttribute : public System.Attribute
public ref class CustomOperationSelectorAttribute : public System.Attribute
By applying this attribute either to the service implementation or to the contract definition you can make WCF dispatch messages based on the custom criteria specified by IOperationMessageFilter descendant attributes.
This functionality is useful with POX messaging since it doesn't use a SOAP envelope, as well as when the service needs to dispatch SOAP messages that don't include a WS-Addressing header or don't specify a SOAPAction.
The CustomOperationSelectorAttribute can be used in combination with custom attributes that implement IOperationMessageFilter. By implementing this interface you can define your own criteria for message dispatching. These custom attributes can be applied to methods that represent Web Services operations. The CustomOperationSelectorAttribute tries to match the message to any of the criteria specified in the or IOperationMessageFilter attributes, otherwise it tries to use the default dispatching mechanism.
QualifiedNameMessageFilterAttribute also implements IOperationMessageFilter and can be used with in combination with CustomOperationSelectorAttribute just like with QualifiedNameOperationSelectorAttribute.
This class is not available in Silverlight 4, Silverlight 3, .NET Compact Framework 3.5.
System.Object
System.Attribute
Noemax.WCFX.Behaviors.CustomOperationSelectorAttribute
Noemax.WCFX.Behaviors.QualifiedNameOperationSelectorAttribute
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2