コード例 #1
0
 private void Handle(ConsumerAddressChangedMessage message)
 {
     if (Logger.IsTrace)
     {
         Logger.Trace($"{Session.RemoteNodeId} NDM received: consumeraddresschanged");
     }
     _providerService.ChangeConsumerAddressAsync(this, message.Address)
     .ContinueWith(t =>
     {
         if (t.IsFaulted && Logger.IsError)
         {
             Logger.Error("There was an error within NDM subprotocol.", t.Exception);
         }
     });
 }