
Untitled
By: a guest on
Jun 25th, 2012 | syntax:
None | size: 0.49 KB | hits: 17 | expires: Never
Will WCF use the same ParameterInspector instance to handle BeforeCall and AfterCall?
class OperationParameterInspector : IParameterInspector
{
public int _stateValue;
public object BeforeCall(string operationName, object[] inputs)
{
_stateValue = (int) inputs[0];
return null;
}
public void AfterCall(string operationName, object[] outputs, object returnValue, object correlationState)
{
int originalInput = _stateValue;
return;
}
}