public static Asset ToAsset(AssetUpdatedEvent evt) { return(new Asset { Id = evt.Id, IsDisabled = evt.IsDisabled, DisplayId = evt.DisplayId, Accuracy = evt.Accuracy }); }
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); }
public Task Handle(AssetUpdatedEvent evt) { _assets.Update(Mapper.ToAsset(evt)); return(Task.CompletedTask); }