public static Asset ToAsset(AssetCreatedEvent evt) { return(new Asset { Id = evt.Id, IsDisabled = evt.IsDisabled, DisplayId = evt.DisplayId, Accuracy = evt.Accuracy }); }
private Task Handle(AssetCreatedEvent evt) { _assetsCache.Set(evt.Id, new Asset { Id = evt.Id, Accuracy = evt.Accuracy, LowVolumeAmount = evt.LowVolumeAmount, CashoutMinimalAmount = evt.CashoutMinimalAmount }); return(Task.CompletedTask); }
private Task Handle(AssetCreatedEvent evt) { _assets.Add(Mapper.ToAsset(evt)); return(Task.CompletedTask); }
public static void OnAssetCreated(AssetCreatedEventArgs e) { AssetCreatedEvent?.Invoke(e); }