public ClientTypeStrategy(IPeerAllocationStrategy strategy, bool allowOtherIfNone, params NodeClientType[] supportedClientTypes)
     : this(strategy, allowOtherIfNone, (IEnumerable <NodeClientType>)supportedClientTypes)
 {
 }
Exemple #2
0
 public SatelliteProtocolPeerAllocationStrategy(IPeerAllocationStrategy strategy, string protocol)
 {
     _strategy = strategy ?? throw new ArgumentNullException(nameof(strategy));
     _protocol = protocol;
 }
 public StaticPeerAllocationStrategyFactory(IPeerAllocationStrategy allocationStrategy)
 {
     _allocationStrategy = allocationStrategy;
 }
 public SyncPeerAllocation(IPeerAllocationStrategy peerAllocationStrategy, AllocationContexts contexts)
 {
     _peerAllocationStrategy = peerAllocationStrategy;
     Contexts = contexts;
 }