public Task EventHandler(AmountTransferEvent value, EventBase eventBase) { var toActor = GrainFactory.GetGrain <IAccount>(value.ToAccountId); return(toActor.AddAmount(value.Amount, new EventUID(eventBase.GetEventId(GrainId.ToString()), eventBase.Timestamp))); }
public Task EventHandle(TransferEvent evt, EventBase eventBase) { var toActor = GrainFactory.GetGrain <IAccount>(evt.ToId); return(toActor.TransferArrived(evt.Amount, new EventUID(eventBase.GetEventId(GrainId.ToString()), eventBase.Timestamp))); }