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