public LightingConfigFileManager(ILogger <LightingConfigFileManager> logger, IConfigFileHelper configFileHelper, IConfiguration configuration)
 {
     this.logger           = logger;
     this.configFileHelper = configFileHelper;
     bridgeLocator         = new HttpBridgeLocator();
     geolocator            = new Geolocator(configuration.GetSection("IpStackApi"));
 }
Esempio n. 2
0
 public StoreService(IGenericRepository repository, IGeoLocator geoLocator,
                     ISettingsService settingsService, IBlobCache cache = null) : base(repository, cache)
 {
     _storeOfferFound      = new Dictionary <string, Store>();
     _geoLocator           = geoLocator;
     this._settingsService = settingsService;
 }
Esempio n. 3
0
 public SearchController(
     [NotNull] IDataSupplier dataSupplier,
     [NotNull] ILoggerFactory loggerFactory,
     [NotNull] IGeoLocator locator)
 {
     _dataSupplier = dataSupplier;
     _logger = loggerFactory.CreateLogger<SearchController>();
     _locator = locator;
 }
Esempio n. 4
0
 public WorkshopAccountService(IWorkshopAccountRepository accountRepo,
                               IDbContextScopeFactory scopeFactory,
                               IAccountService accountService,
                               IAddressService addressService,
                               IWorkshopFilterRepository filterRepo,
                               IGeoLocator geoLocator,
                               IEventBus eventBus)
 {
     _addressService            = addressService;
     this.filterRepo            = filterRepo;
     this.accountService        = accountService;
     _workshopAccountRepository = accountRepo;
     _dbContextScope            = scopeFactory;
     this.eventBus   = eventBus;
     this.geoLocator = geoLocator;
 }
 public DriverController(IDriverDB driverDB, IGeoLocator geoLocator)
 {
     DriverDB   = driverDB;
     GeoLocator = geoLocator;
 }
Esempio n. 6
0
        private async void SetPropertiesAsync(IGeoLocator geoLocator)
        {
            UserLocation = await geoLocator.GetLocationAsync();

            Settings = await App.DataBase.GetSettingsAsync(1);
        }
Esempio n. 7
0
 public SettingsView(IGeoLocator geoLocator)
 {
     SetPropertiesAsync(geoLocator);
 }
Esempio n. 8
0
 public DriverCatalogController(IRepository repository, DriverValidator validator, IGeoLocator geoLocator)
 {
     _repository = repository;
     _validator  = validator;
     _geoLocator = geoLocator;
 }
 public LocationViewModel(IGeoLocator location)
 {
     this.location = location;
 }
 public LocationViewModel(IGeoLocator location) {
     this.location = location;
 }