Ejemplo n.º 1
0
 public void Dispose()
 {
     if (eventSubs != null)
     {
         EventAggregator.GetEvent <ApiStatusEvent>().Unsubscribe(eventSubs);
     }
     if (!string.IsNullOrEmpty(blockSid))
     {
         PolkadotApi.UnsubscribeBlockNumber(blockSid);
     }
     ((IDisposable)blockSubject).Dispose();
 }