public CommandService(ISubscriberService subscriberService,
                       ITelegramBotClient telegramBotClient,
                       IMapper mapper,
                       IWeatherService weatherService,
                       ISubscriberSettingsService subscriberSettingsService,
                       ITimezoneService timezoneService,
                       IGeoCodeService geoCodeService)
 {
     this._subscriberService         = subscriberService;
     this._telegramBotClient         = telegramBotClient;
     this._mapper                    = mapper;
     this._weatherService            = weatherService;
     this._subscriberSettingsService = subscriberSettingsService;
     this._timezoneService           = timezoneService;
     this._geoCodeService            = geoCodeService;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GeoCodeRepository"/> class.
 /// </summary>
 /// <param name="service">The service.</param>
 public GeoCodeRepository(IGeoCodeService service)
 {
     this.service = service;
 }
Exemplo n.º 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GeoCodeService"/> class.
        /// </summary>
        /// <param name="configuration">The configuration.</param>
        public GeoCodeService(IConfiguration configuration)
        {
            var url = configuration["GeoCodingAPIUrl"];

            this.geocode = RestService.For <IGeoCodeService>(url);
        }