Exemplo n.º 1
0
 private void NotifyContractEvent(object sender, DAppChainClient.ChainEventArgs e)
 {
     if (e.ContractAddress.Equals(this.Address))
     {
         this.OnChainEvent?.Invoke(this, e);
     }
 }
Exemplo n.º 2
0
 protected virtual void InvokeChainEvent(object sender, DAppChainClient.ChainEventArgs e)
 {
     if (this.OnChainEvent != null)
     {
         this.OnChainEvent(this, e);
     }
 }
Exemplo n.º 3
0
 protected virtual void NotifyContractEvent(object sender, DAppChainClient.ChainEventArgs e)
 {
     if (e.ContractAddress.Equals(this.Address))
     {
         InvokeChainEvent(sender, e);
     }
 }
Exemplo n.º 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);
            }
        }