예제 #1
0
 public static Asset ToAsset(AssetUpdatedEvent evt)
 {
     return(new Asset
     {
         Id = evt.Id,
         IsDisabled = evt.IsDisabled,
         DisplayId = evt.DisplayId,
         Accuracy = evt.Accuracy
     });
 }
예제 #2
0
        public Task Handle(AssetUpdatedEvent evt)
        {
            _assetsCache.Set(evt.Id, new Asset
            {
                Id                   = evt.Id,
                Accuracy             = evt.Accuracy,
                LowVolumeAmount      = evt.LowVolumeAmount,
                CashoutMinimalAmount = evt.CashoutMinimalAmount
            });

            return(Task.CompletedTask);
        }
예제 #3
0
 public Task Handle(AssetUpdatedEvent evt)
 {
     _assets.Update(Mapper.ToAsset(evt));
     return(Task.CompletedTask);
 }