Пример #1
0
        protected override void Dispose(bool disposing)
        {
            OnCompleteActions?.Dispose();
            OnCompleteActions = null;

            base.Dispose(disposing);

            Robustness.Instance.SafeCall(() => Transaction?.Rollback());
        }
Пример #2
0
        public Exchange(Context ctx, Route route, Message message, Action <Exchange> onComplete)
        {
            Ctx     = ctx;
            Route   = route;
            Message = message;

            if (onComplete != null)
            {
                OnCompleteActions.Push(onComplete);
            }
        }
Пример #3
0
 protected override void Dispose(bool disposing)
 {
     OnCompleteActions?.Dispose();
     base.Dispose(disposing);
 }