public GeoCoder(TelemetryClient telemetryClient, IOptions <GeoCoderConfiguration> geoCoderOptions, YandexMapsClient yandexMapsClient, ZonedClock clock, IDateTimeZoneProvider dateTimeZoneProvider) { myTelemetryClient = telemetryClient; myYandexMapsClient = yandexMapsClient; myClock = clock; myDateTimeZoneProvider = dateTimeZoneProvider; myGeoCoderOptions = geoCoderOptions.Value ?? throw new ArgumentNullException(nameof(geoCoderOptions)); }
public GymHelper(RaidBattlesContext dbContext, TelemetryClient telemetryClient, IOptions <GeoCoderConfiguration> geoCoderOptions) { myDbContext = dbContext; myTelemetryClient = telemetryClient; myGeoCoderOptions = geoCoderOptions.Value ?? throw new ArgumentNullException(nameof(geoCoderOptions)); }