Inheritance: System.Attribute, IDispatchMessageInspector, IClientMessageInspector, IEndpointBehavior, IServiceBehavior
 public void ApplyDispatchBehavior(ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher)
 {
     var channelDispatcher = endpointDispatcher.ChannelDispatcher;
     if (channelDispatcher == null) return;
     foreach (var ed in channelDispatcher.Endpoints)
     {
         var inspector = new CustomInspectorBehavior();
         ed.DispatchRuntime.MessageInspectors.Add(inspector);
     }
 }
Exemplo n.º 2
0
        public void ApplyDispatchBehavior(ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher)
        {
            var channelDispatcher = endpointDispatcher.ChannelDispatcher;

            if (channelDispatcher == null)
            {
                return;
            }
            foreach (var ed in channelDispatcher.Endpoints)
            {
                var inspector = new CustomInspectorBehavior();
                ed.DispatchRuntime.MessageInspectors.Add(inspector);
            }
        }
 public void ApplyClientBehavior(ServiceEndpoint endpoint, ClientRuntime clientRuntime)
 {
     var inspector = new CustomInspectorBehavior();
     clientRuntime.MessageInspectors.Add(inspector);
 }
Exemplo n.º 4
0
        public void ApplyClientBehavior(ServiceEndpoint endpoint, ClientRuntime clientRuntime)
        {
            var inspector = new CustomInspectorBehavior();

            clientRuntime.MessageInspectors.Add(inspector);
        }