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