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