protected void AddPendingState(EState state, Dictionary <string, object> data) { if (data != null) { _passedData = data; } PendingState?.Invoke(state, _passedData); }
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; }
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; }
protected void AddPendingState(EState state) { PendingState?.Invoke(state, _passedData); }