Ejemplo n.º 1
0
        public IActivity NewSaga(string name)
        {
            this.Name = name;

            IActivity activity = new ActivityBase(this);

            return(activity);
        }
        public IActivity Undo(string name, Func <Task> action)
        {
            this.Name   = name;
            this.Action = action;

            this._sagaBuilder.AddCompensactionActivity(this);

            IActivity activity = new ActivityBase(this._sagaBuilder);

            return(activity);
        }
Ejemplo n.º 3
0
 internal void AddActivity(ActivityBase item)
 {
     this._activityQ.Enqueue(item);
 }