Example #1
0
 public static Asset ToAsset(AssetCreatedEvent evt)
 {
     return(new Asset
     {
         Id = evt.Id,
         IsDisabled = evt.IsDisabled,
         DisplayId = evt.DisplayId,
         Accuracy = evt.Accuracy
     });
 }
Example #2
0
        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);
        }
Example #3
0
 private Task Handle(AssetCreatedEvent evt)
 {
     _assets.Add(Mapper.ToAsset(evt));
     return(Task.CompletedTask);
 }
Example #4
0
 public static void OnAssetCreated(AssetCreatedEventArgs e)
 {
     AssetCreatedEvent?.Invoke(e);
 }