Ejemplo n.º 1
0
 public void ApplyDispatchBehavior(ServiceDescription serviceDescription, ServiceHostBase serviceHostBase)
 {
     MessageInspector instance = new MessageInspector();
     foreach (ChannelDispatcher channelDispatcher in serviceHostBase.ChannelDispatchers)
     {
         foreach (EndpointDispatcher endpointDispatcher in channelDispatcher.Endpoints)
         {
             endpointDispatcher.DispatchRuntime.MessageInspectors.Add(instance);
         }
     }
 }
Ejemplo n.º 2
0
        public void ApplyDispatchBehavior(ServiceDescription serviceDescription, ServiceHostBase serviceHostBase)
        {
            MessageInspector instance = new MessageInspector();

            foreach (ChannelDispatcher channelDispatcher in serviceHostBase.ChannelDispatchers)
            {
                foreach (EndpointDispatcher endpointDispatcher in channelDispatcher.Endpoints)
                {
                    endpointDispatcher.DispatchRuntime.MessageInspectors.Add(instance);
                }
            }
        }