public GeographicRouteLocator(IGeocodeService geocodeService, IUnitOfWork unitOfWork)
 {
     if (geocodeService == null) throw new ArgumentNullException("geocodeService");
     if (unitOfWork == null) throw new ArgumentNullException("unitOfWork");
     _geocodeService = geocodeService;
     _routeRepository = unitOfWork.GetRepository<Route>();
 }
 public SetLocationFromGeoWorkItemHandler(ICacheClient cacheClient, IEventRepository eventRepository, IGeocodeService geocodeService, IMetricsClient metricsClient, IMessageBus messageBus, ILoggerFactory loggerFactory = null) : base(loggerFactory) {
     _cacheClient = new ScopedCacheClient(cacheClient, "geo");
     _eventRepository = eventRepository;
     _geocodeService = geocodeService;
     _metricsClient = metricsClient;
     _lockProvider = new CacheLockProvider(cacheClient, messageBus);
 }
 public LocalisationController(ILogger logger,
     ISearchService searchService,
     IGeocodeService geocodeService)
 {
     _Logger = logger;
     _SearchService = searchService;
     _GeocodeService = geocodeService;
 }
 public DonationService(IPayPalService paypalService, IGeocodeService geocodeService, IDonationRepository donationRepository, 
     IAccountRepository accountRepositoty, IEmailService emailService, ILog log)
 {
     _paypalService = paypalService;
     _geocodeService = geocodeService;
     _donationRepository = donationRepository;
     _accountRepository = accountRepositoty;
     _emailService = emailService;
     _paypalEmail = ConfigurationManager.AppSettings["PayPal:PrimaryEmail"];
     Log = log;
 }
        public PayPalService(IGeocodeService geocodeService, IMetadataRepository metadataReposity, ILog log)
        {
            _geocodeService = geocodeService;
            _metadataRepository = metadataReposity;
            Log = log;
#if DEBUG
            WebSrcUrl = "https://www.sandbox.paypal.com/cgi-bin/webscr";
#else
            WebSrcUrl = ConfigurationManager.AppSettings["PayPal:WebScrUrl"];
#endif
        }
 public RentalSearchService(ILogger logger, IGeocodeService geocodeService)
 {
     _Logger = logger;
     _GeocodeService = geocodeService;
 }
 public SetLocationFromGeoWorkItemHandler(ICacheClient cacheClient, IEventRepository eventRepository, IGeocodeService geocodeService, IMetricsClient metricsClient) {
     _cacheClient = new ScopedCacheClient(cacheClient, "geo");
     _eventRepository = eventRepository;
     _geocodeService = geocodeService;
     _metricsClient = metricsClient;
 }
 public RentalController(ILogger logger, IObjectStore objectStore, IEmailService emailService, IGeocodeService geocodeService, IRentalSearchService rentalSearchService)
     : base(logger, objectStore, emailService)
 {
     _GeocodeService = geocodeService;
     _RentalSearchService = rentalSearchService;
 }
 public LegacyImportService(ILocationService locationService, IStopActionService stopActionService, IJobService jobService, IRouteStopService routeStopService, IGeocodeService geocodeService, IJobGroupService jobGroupService, IDriverService driverService, ISyncLogEntryService syncLogEntryService, IDistanceService distanceService)
 {
     _locationService     = locationService;
     _stopActionService   = stopActionService;
     _jobService          = jobService;
     _routeStopService    = routeStopService;
     _geocodeService      = geocodeService;
     _jobGroupService     = jobGroupService;
     _driverService       = driverService;
     _syncLogEntryService = syncLogEntryService;
     _distanceService     = distanceService;
     _validationService   = new ValidationService(
         new[]
     {
         new TimeSpan(11, 11, 0)
     }
         );
 }
Beispiel #10
0
 public EditRequestCommandHandler(AllReadyContext context, IGeocodeService geocoder)
 {
     _context  = context;
     _geocoder = geocoder;
 }
 public PostCodeLookupHealthCheck(IGeocodeService postCodeService)
 {
     _postCodeService = postCodeService;
 }