예제 #1
0
        private void CreateScope()
        {
            var serviceScope = _serviceProvider.CreateScope();

            _appAddress        = serviceScope.ServiceProvider.GetService <IAppAddress>();
            _httpClientService = serviceScope.ServiceProvider.GetService <IHttpClientService>();
        }
 public AddressController(IAppAddress app)
 {
     _app = app;
 }
예제 #3
0
 public AppAddressTest()
 {
     _target = GetService <IAppAddress>();
 }