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