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);
 }
Exemplo n.º 3
0
 public LocalisationController(ILogger logger,
     ISearchService searchService,
     IGeocodeService geocodeService)
 {
     _Logger = logger;
     _SearchService = searchService;
     _GeocodeService = geocodeService;
 }
Exemplo n.º 4
0
 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;
 }
Exemplo n.º 5
0
        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
        }
Exemplo n.º 6
0
 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;
 }
Exemplo n.º 8
0
 public RentalController(ILogger logger, IObjectStore objectStore, IEmailService emailService, IGeocodeService geocodeService, IRentalSearchService rentalSearchService)
     : base(logger, objectStore, emailService)
 {
     _GeocodeService = geocodeService;
     _RentalSearchService = rentalSearchService;
 }
Exemplo n.º 9
0
 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)
     }
         );
 }
Exemplo n.º 10
0
 public EditRequestCommandHandler(AllReadyContext context, IGeocodeService geocoder)
 {
     _context  = context;
     _geocoder = geocoder;
 }
 public PostCodeLookupHealthCheck(IGeocodeService postCodeService)
 {
     _postCodeService = postCodeService;
 }