コード例 #1
0
        public Worker(ILogger <Worker> logger, IConfiguration config)
        {
            _logger = logger ?? throw new ArgumentNullException(nameof(logger));

            _config = config ?? throw new ArgumentNullException(nameof(config));

            _client = AddressServiceClientHelper.GetAddressBookServerClient(_config["RPCService:ServiceUrl"]);
        }
コード例 #2
0
        public Worker(ILogger <Worker> logger, IConfiguration config)
        {
            _logger = logger;

            _config = config;

            _client = AddressServiceClientHelper.GetAddressBookServerClient(_config["RPCService:ServiceUrl"]);
        }