Пример #1
0
 public TechnicianController(IImageService imageService, IRepository repository, IBloomServiceHub hub, INotificationService notification)
 {
     this.imageService = imageService;
     this.repository   = repository;
     this.hub          = hub;
     this.notification = notification;
 }
Пример #2
0
 public ScheduleController(IRepository repository, ISageApiProxy sageApiProxy, IBloomServiceHub hub, INotificationService notification, IScheduleService scheduleService)
 {
     _repository      = repository;
     _sageApiProxy    = sageApiProxy;
     _hub             = hub;
     _notification    = notification;
     _scheduleService = scheduleService;
 }
Пример #3
0
 public ScheduleService(IRepository repository, ISageApiProxy sageApiProxy, IBloomServiceHub hub, INotificationService notification, ILocationService locationService)
 {
     _repository      = repository;
     _sageApiProxy    = sageApiProxy;
     _hub             = hub;
     _notification    = notification;
     _locationService = locationService;
 }
Пример #4
0
 public ImageService(IHttpContextProvider httpContextProvider, IRepository repository, IBloomServiceHub hub, IStorageProvider storageProvider)
 {
     this.repository             = repository;
     this.settings               = BloomServiceConfiguration.FromWebConfig(ConfigurationManager.AppSettings);
     _hub                        = hub;
     _storageProvider            = storageProvider;
     _urlToTechnicianIcon        = Path.Combine(settings.BasePath, "images/technician.png");
     _urlToWorkOrderIcon         = Path.Combine(settings.BasePath, "images/workorder.png");
     _urlToFolderTecnician       = Path.Combine(settings.BasePath, "technician");
     _urlToFolderWorkOrder       = Path.Combine(settings.BasePath, "workorder");
     _urlToFolderPhotoWorkOrders = Path.Combine(settings.BasePath, "images");
     _urlToFolderFonts           = Path.Combine(settings.BasePath.Replace("/userFiles", ""), "fonts");;
 }
Пример #5
0
 public BloomJobRegistry()
 {
     _proxy               = ComponentContainer.Current.Get <ISageApiProxy>();
     _settings            = ComponentContainer.Current.Get <BloomServiceConfiguration>();
     _repository          = ComponentContainer.Current.Get <IRepository>();
     _httpContextProvider = ComponentContainer.Current.Get <IHttpContextProvider>();
     _locationService     = ComponentContainer.Current.Get <ILocationService>();
     _notification        = ComponentContainer.Current.Get <INotificationService>();
     _lateTechnicians     = new List <LateTechnician>();
     _hub = ComponentContainer.Current.Get <IBloomServiceHub>();
     SendNotifications();
     SendRequest();
     Synchronization();
     CheckTechnicians();
 }
Пример #6
0
 public ApiMobileController(
     ISageApiProxy sageApiProxy,
     IImageService imageService,
     IRepository repository,
     IAuthorizationService authorizationService,
     INotificationService notification,
     BloomServiceConfiguration settings,
     IBloomServiceHub hub)
 {
     this.sageApiProxy         = sageApiProxy;
     this._imageService        = imageService;
     this.repository           = repository;
     this.settings             = settings;
     this.authorizationService = authorizationService;
     this.notification         = notification;
     _hub = hub;
 }
Пример #7
0
 public NotificationService(IRepository repository, IBloomServiceHub hub)
 {
     _repository = repository;
     _hub        = hub;
 }