Exemple #1
0
        public NacosNamingClient(
            ILoggerFactory loggerFactory
            , IOptionsMonitor <NacosOptions> optionAccs
            , IHttpClientFactory clientFactory)
        {
            this._logger        = loggerFactory.CreateLogger <NacosNamingClient>();
            this._options       = optionAccs.CurrentValue;
            this._clientFactory = clientFactory;

            this._serverAddressManager = new ServerAddressManager(_options);
        }
Exemple #2
0
        public NacosMsConfigClient(
            ILoggerFactory loggerFactory
            , NacosOptions options)
        {
            this._logger    = loggerFactory.CreateLogger <NacosConfigClient>();
            this._options   = options;
            this._processor = new MemoryLocalConfigInfoProcessor();
            this._client    = new NacosHttpClient();

            this.listeners             = new List <Listener>();
            this._serverAddressManager = new ServerAddressManager(_options);
        }
        public NacosConfigClient(
            ILoggerFactory loggerFactory
            , IOptionsMonitor <NacosOptions> optionAccs
            , IHttpClientFactory clientFactory
            , ILocalConfigInfoProcessor processor)
        {
            this._logger        = loggerFactory.CreateLogger <NacosConfigClient>();
            this._options       = optionAccs.CurrentValue;
            this._clientFactory = clientFactory;
            this._processor     = processor;

            this.listeners             = new List <Listener>();
            this._serverAddressManager = new ServerAddressManager(_options);
        }