Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 25th, 2012  |  syntax: None  |  size: 0.49 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Will WCF use the same ParameterInspector instance to handle BeforeCall and AfterCall?
  2. class OperationParameterInspector : IParameterInspector
  3. {
  4.     public int _stateValue;
  5.  
  6.     public object BeforeCall(string operationName, object[] inputs)
  7.     {
  8.         _stateValue = (int) inputs[0];
  9.         return null;
  10.     }
  11.  
  12.     public void AfterCall(string operationName, object[] outputs, object returnValue, object correlationState)
  13.     {
  14.         int originalInput = _stateValue;
  15.         return;
  16.     }
  17. }