Ejemplo n.º 1
0
 private void Handle(BenevolenceTransferCreatedEvent evnt)
 {
     _id       = evnt.AggregateRootId;
     _nunber   = evnt.Number;
     _info     = evnt.Info;
     _type     = evnt.Type;
     _walletId = evnt.WalletId;
     _status   = evnt.Status;
 }
 public CreateBenevolenceTransferCommand(Guid id,
                                         Guid walletId,
                                         string number,
                                         BenevolenceTransferType type,
                                         BenevolenceTransferStatus status,
                                         decimal amount,
                                         decimal fee,
                                         WalletDirection direction,
                                         string remark) : base(id)
 {
     WalletId  = walletId;
     Number    = number;
     Type      = type;
     Status    = status;
     Amount    = amount;
     Fee       = fee;
     Direction = direction;
     Remark    = remark;
 }
Ejemplo n.º 3
0
 public BenevolenceTransferStatusChangedEvent(BenevolenceTransferStatus status)
 {
     Status = status;
 }
Ejemplo n.º 4
0
 public BenevolenceTransferStatusChangedEvent(BenevolenceTransferStatus status, decimal finallyValue)
 {
     Status       = status;
     FinallyValue = finallyValue;
 }
Ejemplo n.º 5
0
 private void Handle(BenevolenceTransferStatusChangedEvent evnt)
 {
     _status = evnt.Status;
 }
Ejemplo n.º 6
0
        private BenevolenceTransferStatus _status; //状态


        public BenevolenceTransfer(Guid id, Guid walletId, string number, BenevolenceTransferInfo info, BenevolenceTransferType type, BenevolenceTransferStatus status)
            : base(id)
        {
            id.CheckNotEmpty(nameof(id));
            walletId.CheckNotEmpty(nameof(walletId));
            info.CheckNotNull(nameof(info));

            ApplyEvent(new BenevolenceTransferCreatedEvent(walletId, number, info, type, status));
        }
Ejemplo n.º 7
0
 public BenevolenceTransferCreatedEvent(Guid walletId, string number, BenevolenceTransferInfo info, BenevolenceTransferType type, BenevolenceTransferStatus status) : base(walletId, number)
 {
     Info   = info;
     Type   = type;
     Status = status;
 }