Exemple #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
         });
     }
 }
Exemple #2
0
 public BroadcastHubBehavior()
 {
     _BroadcastHub = new BroadcastHub();
 }