示例#1
0
 public BeatReactor(ILogger logger, NamingHttpClientProxy serverProxy, NacosSdkOptions options)
 {
     this._logger      = logger;
     this._serverProxy = serverProxy;
     this._dom2Beat    = new ConcurrentDictionary <string, BeatInfo>();
     this._beatTimer   = new ConcurrentDictionary <string, Timer>();
 }
 public NamingClientProxyDelegate(ILogger logger, string @namespace, ServiceInfoHolder serviceInfoHolder, NacosSdkOptions options, InstancesChangeNotifier changeNotifier)
 {
     this._options          = options;
     this.serverListManager = new ServerListManager(logger, options);
     this.serviceInfoHolder = serviceInfoHolder;
     this.securityProxy     = new SecurityProxy(options, logger);
     InitSecurityProxy();
     this._serviceInfoUpdateService = new ServiceInfoUpdateService(options, serviceInfoHolder, this, changeNotifier);
     this.grpcClientProxy           = new NamingGrpcClientProxy(logger, @namespace, securityProxy, serverListManager, options, serviceInfoHolder);
     this.httpClientProxy           = new NamingHttpClientProxy(logger, @namespace, securityProxy, serverListManager, options, serviceInfoHolder);
 }
示例#3
0
 public BeatReactor(ILogger logger, NamingHttpClientProxy serverProxy, NacosSdkOptions options)
 {
     this._logger      = logger;
     this._serverProxy = serverProxy;
 }