public override void AfterCall(ICallContext callContext) { var transactionScope = callContext.GetProperty("transactionScope") as TransactionScope; if (transactionScope != null) { if (callContext.CallSucceeded) { transactionScope.Complete(); } transactionScope.Dispose(); } }
public override void AfterCall(ICallContext callContext) { System.Current.DateTime = (IDateTimeFactory)callContext.GetProperty("datetimefactory", null); }
public override void AfterCall(ICallContext callContext) { Thread.CurrentThread.CurrentCulture = (CultureInfo)callContext.GetProperty("CurrentCulture"); }