protected override void Dispose(bool disposing) { OnCompleteActions?.Dispose(); OnCompleteActions = null; base.Dispose(disposing); Robustness.Instance.SafeCall(() => Transaction?.Rollback()); }
public Exchange(Context ctx, Route route, Message message, Action <Exchange> onComplete) { Ctx = ctx; Route = route; Message = message; if (onComplete != null) { OnCompleteActions.Push(onComplete); } }
protected override void Dispose(bool disposing) { OnCompleteActions?.Dispose(); base.Dispose(disposing); }