Пример #1
0
 public KadCore(RoutingTable <TKey> routingTable, KademeliaSettings settings,
                Func <NodeIdentifier <TKey>, IKadNode <TKey, TValue> > createClientFromNodeIdDelegate,
                NodeIdentifier <TKey> nodeIdentifier = null)
 {
     _createClientFromNodeIdDelegate = createClientFromNodeIdDelegate;
     RoutingTable   = routingTable;
     Settings       = settings;
     NodeIdentifier = nodeIdentifier;
 }
Пример #2
0
 public SetKadCore(RoutingTable <TKey> routingTable, KademeliaSettings settings,
                   Func <NodeIdentifier <TKey>, ISetKadNode <TKey, TValue> > createClientFromNodeIdDelegate,
                   NodeIdentifier <TKey> nodeIdentifier)
     : base(routingTable, settings, createClientFromNodeIdDelegate, nodeIdentifier)
 {
 }