Esempio n. 1
0
 protected void AddPendingState(EState state, Dictionary <string, object> data)
 {
     if (data != null)
     {
         _passedData = data;
     }
     PendingState?.Invoke(state, _passedData);
 }
Esempio n. 2
0
 public PendingTransaction(ulong fromId, ulong toId, decimal amount, string unit, string?note, DateTime instant, PendingState state, uint id)
 {
     FromId  = fromId;
     ToId    = toId;
     Amount  = amount;
     Unit    = unit;
     Note    = note;
     Instant = instant;
     State   = state;
     Id      = id;
 }
Esempio n. 3
0
        public Message(int maxRetries)
        {
            PendingState    = new PendingState(this);
            QueuedState     = new QueuedState(this);
            InProgressState = new InProgressState(this);
            FailedState     = new FailedState(this);
            CompletedState  = new CompletedState(this);

            State = PendingState;

            MaxRetries = maxRetries;
            Retries    = -1;
        }
Esempio n. 4
0
 protected void AddPendingState(EState state)
 {
     PendingState?.Invoke(state, _passedData);
 }