Esempio n. 1
0
 public BroadcastHubBehavior(BroadcastHub hub)
 {
     BroadcastHub = hub ?? new BroadcastHub();
     foreach (var tx in BroadcastHub.BroadcastedTransaction)
     {
         _hashToTransaction.TryAdd(tx.Key, new TransactionBroadcast
         {
             State       = BroadcastState.NotSent,
             Transaction = tx.Value
         });
     }
 }
Esempio n. 2
0
 public BroadcastHubBehavior()
 {
     BroadcastHub = new BroadcastHub();
 }