本文整理汇总了C#中System.ServiceModel.Description.IEndpointBehavior.ApplyDispatchBehavior方法的典型用法代码示例。如果您正苦于以下问题:C# IEndpointBehavior.ApplyDispatchBehavior方法的具体用法?C# IEndpointBehavior.ApplyDispatchBehavior怎么用?C# IEndpointBehavior.ApplyDispatchBehavior使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.ServiceModel.Description.IEndpointBehavior
的用法示例。
在下文中一共展示了IEndpointBehavior.ApplyDispatchBehavior方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AfterReceiveRequest
// IDispatchMessageInspector Members
public object AfterReceiveRequest(ref System.ServiceModel.Channels.Message request, IClientChannel channel, InstanceContext instanceContext)
{
Console.WriteLine("AfterReceiveRequest called.");
return null;
}
public void BeforeSendReply(ref System.ServiceModel.Channels.Message reply, object correlationState)
{
Console.WriteLine("BeforeSendReply called.");
}
开发者ID:.NET开发者,项目名称:System.ServiceModel.Description,代码行数:12,代码来源:IEndpointBehavior.ApplyDispatchBehavior
示例2: AddBindingParameters
// IEndpointBehavior Members
public void AddBindingParameters(ServiceEndpoint serviceEndpoint, System.ServiceModel.Channels.BindingParameterCollection bindingParameters)
{
return;
}
public void ApplyClientBehavior(ServiceEndpoint serviceEndpoint, ClientRuntime behavior)
{
behavior.MessageInspectors.Add(new EndpointBehaviorMessageInspector());
}
public void ApplyDispatchBehavior(ServiceEndpoint serviceEndpoint, EndpointDispatcher endpointDispatcher)
{
endpointDispatcher.DispatchRuntime.MessageInspectors.Add(new EndpointBehaviorMessageInspector());
}
public void Validate(ServiceEndpoint serviceEndpoint)
{
return;
}
开发者ID:.NET开发者,项目名称:System.ServiceModel.Description,代码行数:20,代码来源:IEndpointBehavior.ApplyDispatchBehavior
示例3: CreateBehavior
// BehaviorExtensionElement members
public override Type BehaviorType
{
get { return typeof(EndpointBehaviorMessageInspector); }
}
protected override object CreateBehavior()
{
return new EndpointBehaviorMessageInspector();
}
开发者ID:.NET开发者,项目名称:System.ServiceModel.Description,代码行数:10,代码来源:IEndpointBehavior.ApplyDispatchBehavior