Пример #1
0
 private void NotifyContractEvent(object sender, DAppChainClient.ChainEventArgs e)
 {
     if (e.ContractAddress.Equals(this.Address))
     {
         this.OnChainEvent?.Invoke(this, e);
     }
 }
Пример #2
0
 protected virtual void InvokeChainEvent(object sender, DAppChainClient.ChainEventArgs e)
 {
     if (this.OnChainEvent != null)
     {
         this.OnChainEvent(this, e);
     }
 }
Пример #3
0
 protected virtual void NotifyContractEvent(object sender, DAppChainClient.ChainEventArgs e)
 {
     if (e.ContractAddress.Equals(this.Address))
     {
         InvokeChainEvent(sender, e);
     }
 }
Пример #4
0
        protected override void NotifyContractEvent(object sender, DAppChainClient.ChainEventArgs e)
        {
            if (e.ContractAddress.Equals(this.Address))
            {
                Event evt = new Event();
                evt.MergeFrom(e.Data);
                e.Data = evt.Data.ToByteArray();

                InvokeChainEvent(sender, e);
            }
        }