コード例 #1
0
ファイル: OutputBehavior.cs プロジェクト: Murat7Ay/wcflog
 public void ApplyDispatchBehavior(ServiceDescription serviceDescription, System.ServiceModel.ServiceHostBase serviceHostBase)
 {
     foreach (var t in serviceHostBase.ChannelDispatchers)
     {
         ChannelDispatcher channelDispatcher = t as ChannelDispatcher;
         if (channelDispatcher != null)
         {
             foreach (EndpointDispatcher endpointDispatcher in channelDispatcher.Endpoints)
             {
                 MessageInspector inspector = new MessageInspector();
                 endpointDispatcher.DispatchRuntime.MessageInspectors.Add(inspector);
             }
         }
     }
 }
コード例 #2
0
ファイル: MessageBehavior.cs プロジェクト: Murat7Ay/wcflog
        public void ApplyDispatchBehavior(ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher)
        {
            MessageInspector inspector = new MessageInspector();

            endpointDispatcher.DispatchRuntime.MessageInspectors.Add(inspector);
        }