コード例 #1
0
        void InspectOutputsCore(ref MessageRpc rpc)
        {
            int       offset       = this.Parent.ParameterInspectorCorrelationOffset;
            bool      outputTiming = DS.ParameterInspectorIsEnabled();
            Stopwatch sw           = null;

            if (outputTiming)
            {
                sw = new Stopwatch();
            }

            for (int i = this.ParameterInspectors.Length - 1; i >= 0; i--)
            {
                IParameterInspector inspector = this.ParameterInspectors[i];
                if (outputTiming)
                {
                    sw.Restart();
                }

                inspector.AfterCall(this.Name, rpc.OutputParameters, rpc.ReturnParameter, rpc.Correlation[offset + i]);
                if (outputTiming)
                {
                    DS.ParameterInspectorAfter(inspector.GetType(), sw.Elapsed);
                }

                if (TD.ParameterInspectorAfterCallInvokedIsEnabled())
                {
                    TD.ParameterInspectorAfterCallInvoked(rpc.EventTraceActivity, inspector.GetType().FullName);
                }
            }
        }
コード例 #2
0
 void InspectOutputsCore(ref MessageRpc rpc)
 {
     for (int i = this.ParameterInspectors.Length - 1; i >= 0; i--)
     {
         IParameterInspector inspector = this.ParameterInspectors[i];
         inspector.AfterCall(this.Name, rpc.OutputParameters, rpc.ReturnParameter, rpc.Correlation[i]);
         if (TD.ParameterInspectorAfterCallInvokedIsEnabled())
         {
             TD.ParameterInspectorAfterCallInvoked(rpc.EventTraceActivity, this.ParameterInspectors[i].GetType().FullName);
         }
     }
 }
コード例 #3
0
 private void InspectOutputsCore(ref MessageRpc rpc)
 {
     for (int i = ParameterInspectors.Length - 1; i >= 0; i--)
     {
         IParameterInspector inspector = ParameterInspectors[i];
         inspector.AfterCall(Name, rpc.OutputParameters, rpc.ReturnParameter, rpc.Correlation[i]);
         if (WcfEventSource.Instance.ParameterInspectorAfterCallInvokedIsEnabled())
         {
             WcfEventSource.Instance.ParameterInspectorAfterCallInvoked(rpc.EventTraceActivity, ParameterInspectors[i].GetType().FullName);
         }
     }
 }
コード例 #4
0
        void InspectOutputsCore(MessageRpc rpc)
        {
            int offset = Parent.ParameterInspectorCorrelationOffset;

            for (int i = ParameterInspectors.Length - 1; i >= 0; i--)
            {
                IParameterInspector inspector = ParameterInspectors[i];
                inspector.AfterCall(Name, rpc.OutputParameters, rpc.ReturnParameter, rpc.Correlation[offset + i]);
                //if (TD.ParameterInspectorAfterCallInvokedIsEnabled())
                //{
                //    TD.ParameterInspectorAfterCallInvoked(rpc.EventTraceActivity, this.ParameterInspectors[i].GetType().FullName);
                //}
            }
        }
コード例 #5
0
 public void AfterCallIgnoreEmptyOperation()
 {
     _sut.AfterCall(null, null, null, null);
 }