Exemplo n.º 1
0
 public RemoteProxyGenerator(IRpcClientProvider clientProvider, IOxygenLogger oxygenLogger
     , IFlowControlCenter flowControlCenter, IEndPointConfigureManager configureManager, CustomerInfo customerInfo)
 {
     _clientProvider = clientProvider;
     _oxygenLogger = oxygenLogger;
     _flowControlCenter = flowControlCenter;
     _customerInfo = customerInfo;
     _configureManager = configureManager;
 }
Exemplo n.º 2
0
 /// <summary>
 /// In memory raft cluster
 /// </summary>
 /// <param name="localNode"></param>
 /// <param name="rpcClientProvider"></param>
 /// <param name="clusterSettings"></param>
 public DefaultCluster(INode localNode, IRpcClientProvider rpcClientProvider, IClusterSettings clusterSettings)
 {
     if (localNode.IsRemote)
     {
         throw new ArgumentException("Must local node", nameof(localNode));
     }
     _nodes.Add(localNode);
     _rpcClientProvider = rpcClientProvider;
     _clusterSettings   = clusterSettings;
 }