public ProjectMetricService(JazzMetricsContext db, IHelperService helperService, IHttpContextAccessor contextAccessor, IProjectMetricSnapshotService snapshotService,
                             IProjectMetricLogService logService) : base(db)
 {
     _logService      = logService;
     _snapshotService = snapshotService;
     CurrentUser      = helperService.GetCurrentUser(contextAccessor.HttpContext.User.GetId());
 }
Exemplo n.º 2
0
 public InvokeMethodHandler(ICachingService cachingService, IHubContext <MessageQueueHub> hubContext, StreamFlowConfiguration streamFlowConfiguration, IHelperService helperService)
 {
     _helperService           = helperService;
     _cachingService          = cachingService;
     _hubContext              = hubContext;
     _streamFlowConfiguration = streamFlowConfiguration;
 }
Exemplo n.º 3
0
        // GET: Task
        public TaskController(IHelperService helperService, ISmsService smsSvc, IEnrolleeService enrolleeService, ILogAdminService loggersvc, IProviderService providersvc, ISession session, IEmailSender emailSender, SiteSettings siteSettings, Site site, IPlanService planService, IUniquePageService uniquepageService, IPageMessageSvc pageMessageSvc, IServicesService serviceSvc, IProviderService Providersvc, ILogAdminService logger, ICompanyService companyService, UserService userService, IRoleService roleService, MailSettings mailSettings, Services.ClaimService claimserv)
        {
            _helperSvc       = helperService;
            _enrolleeService = enrolleeService;
            _smsservice      = smsSvc;
            _logger          = loggersvc;
            _providerservice = providersvc;

            _session           = session;
            _emailSender       = emailSender;
            _siteSettings      = siteSettings;
            _site              = site;
            _planService       = planService;
            _uniquePageService = uniquepageService;
            _pageMessageSvc    = pageMessageSvc;

            _serviceSvc  = serviceSvc;
            _providerSvc = Providersvc;
            _logger      = logger;
            _companySvc  = companyService;
            _userservice = userService;
            _rolesvc     = roleService;

            _mailSettings = mailSettings;

            _claimservice = claimserv;
        }
 public CargoReturnModel(PortFreightContext context, UserManager <PortFreightUser> userManager, IHelperService helperService, IMsd2DataService msd2DataService)
 {
     _context         = context;
     _userManager     = userManager;
     _helperService   = helperService;
     _msd2DataService = msd2DataService;
 }
Exemplo n.º 5
0
 public LessonPresentationAppService(IBus bus, ILessonPresentationRepository lessonPresentationRepository, IUser user, IHelperService helperService)
 {
     _bus = bus;
     _lessonPresentationRepository = lessonPresentationRepository;
     _user          = user;
     _helperService = helperService;
 }
Exemplo n.º 6
0
 public WebAppResultFinder(IWoxContextService woxContextService, IWebAppService webAppService, IHelperService helperService, IApplicationInformationService applicationInformationService, ISystemWebAppService systemWebAppService) : base(woxContextService)
 {
     WebAppService = webAppService;
     HelperService = helperService;
     ApplicationInformationService = applicationInformationService;
     SystemWebAppService           = systemWebAppService;
 }
Exemplo n.º 7
0
 public GESMESFileProcess(
     FlatFile fileInfo,
     LogFileData logFileData,
     GesmesHelpers gesmesHelpers,
     ValidateMsdData validateMsdData,
     Msd1FileProcess msd1FileProcess,
     Msd2FileProcess msd2FileProcess,
     Msd3FileProcess msd3FileProcess,
     IMsd1DataService msd1DataService,
     IMsd2DataService msd2DataService,
     IMsd3DataService msd3DataService,
     IFileProcessService fileProcessService,
     IHelperService helperService,
     IOptions <FileOptions> settings,
     IEmailSender emailSender,
     ILogger <GESMESFileProcess> logger)
 {
     _fileInfo           = fileInfo;
     _logFileData        = logFileData;
     _gesmesHelpers      = gesmesHelpers;
     _helperService      = helperService;
     _msd1DataService    = msd1DataService;
     _msd2DataService    = msd2DataService;
     _msd3DataService    = msd3DataService;
     _validateMsdData    = validateMsdData;
     _fileProcessService = fileProcessService;
     _logger             = logger;
     _settings           = settings.Value;
     _emailSender        = emailSender;
     _msd1FileProcess    = msd1FileProcess;
     _msd2FileProcess    = msd2FileProcess;
     _msd3FileProcess    = msd3FileProcess;
     headerErrors        = new StringBuilder();
     bodyErrorMsg        = new StringBuilder();
 }
Exemplo n.º 8
0
        public UserController(
            IMasterDetailPermissionManager masterDetailPermissionManager,
            IIndexProvider indexProvider,
            IContentOwnershipHelper contentOwnershipHelper,
            IExtendedProjectService projectService,
            IHelperService helperService,
            IOrchardServices services,
            IActivityStreamService activityStreamService,
            ICRMContentOwnershipService contentOwnershipService,
            IBasicDataService basicDataService,
            IMembershipService membershipService,
            IUserService userService,
            IShapeFactory shapeFactory,
            IEnumerable <IUserEventHandler> userEventHandlers,
            ISiteService siteService)
        {
            this.masterDetailPermissionManager = masterDetailPermissionManager;
            this.indexProvider           = indexProvider;
            this.contentOwnershipHelper  = contentOwnershipHelper;
            this.projectService          = projectService;
            this.activityStreamService   = activityStreamService;
            this.contentOwnershipService = contentOwnershipService;
            this.basicDataService        = basicDataService;
            this.services      = services;
            this.helperService = helperService;
            _membershipService = membershipService;
            _userService       = userService;
            _userEventHandlers = userEventHandlers;
            _siteService       = siteService;

            T     = NullLocalizer.Instance;
            Shape = shapeFactory;
        }
 public ItemController(IRepositoryMaintenanceMk2 <Item> repo,
                       IRepositoryMachineMk2 <Employee> repoEmp,
                       IRepositoryMachineMk2 <EmployeeGroupMis> repoGroupMis,
                       IRepositoryMaintenanceMk2 <ItemType> repoType,
                       IRepositoryMaintenanceMk2 <RequireMaintenance> repoRequireMain,
                       IRepositoryDapper <ItemViewModel> repoDapper,
                       ExcelWorkBookService excelWorkBook,
                       IHelperService helper,
                       IHostingEnvironment hosting,
                       IMapper mapper) : base(repo, mapper)
 {
     // Repository Machine
     this.repositoryEmp      = repoEmp;
     this.repositoryGroupMis = repoGroupMis;
     // Repository Maintenance
     this.repositoryType = repoType;
     this.repositoryRequireMaintenance = repoRequireMain;
     // Dapper
     this.dapper = repoDapper;
     // Helper
     this.excelWorkBookService = excelWorkBook;
     this.helperService        = helper;
     // Host
     this.hosting = hosting;
 }
Exemplo n.º 10
0
        public DispatchController(DispatchNoteService dispatchNoteService, ClientService clientService, DriverService driverService, HelperService helperService, VehicleService vehicleService)
        {
            if (dispatchNoteService == null)
            {
                throw new NullReferenceException("dispatchNoteService");
            }
            if (clientService == null)
            {
                throw new NullReferenceException("clientService");
            }
            if (driverService == null)
            {
                throw new NullReferenceException("driverService");
            }
            if (helperService == null)
            {
                throw new NullReferenceException("helperService");
            }
            if (vehicleService == null)
            {
                throw new NullReferenceException("vehicleService");
            }

            _dispatchNoteService = dispatchNoteService;
            _clientService       = clientService;
            _driverService       = driverService;
            _helperService       = helperService;
            _vehicleService      = vehicleService;
        }
Exemplo n.º 11
0
 public CourseAppService(IBus bus, ICourseRepository courseRepository, ITeacherRepository teacherRepository, IHelperService helperService)
 {
     _bus = bus;
     _courseRepository  = courseRepository;
     _teacherRepository = teacherRepository;
     _helperService     = helperService;
 }
Exemplo n.º 12
0
        public ProductosController(
            UserManager <IdentityUser> userManager,
            SignInManager <IdentityUser> signInManager,
            MessagesService messagesService,
            IProductosService productosService,
            IVisitasService VisitasService,
            ICategoriasService categoriasService,
            IProductoCategoriasService productoCategoriasService,
            IVendedoresService vendedoresService,
            IUsuariosService usuariosService,
            IProductosVendedoresService productosVendedoresService,
            IReviewsService reviewsService,
            IHelperService helperService,
            IOpcionesProductosService opcionesProductosService,
            IImagenesProductosService imagenesProductosService,
            IMemoryCache memoryCache)

        {
            _userManager                = userManager;
            _signInManager              = signInManager;
            _messagesService            = messagesService;
            _productosService           = productosService;
            _VisitasService             = VisitasService;
            _categoriasService          = categoriasService;
            _productoCategoriasService  = productoCategoriasService;
            _vendedoresService          = vendedoresService;
            _usuariosService            = usuariosService;
            _productosVendedoresService = productosVendedoresService;
            _reviewsService             = reviewsService;
            _helperService              = helperService;
            _opcionesProductosService   = opcionesProductosService;
            _imagenesProductosService   = imagenesProductosService;
            _memoryCache                = memoryCache;
        }
Exemplo n.º 13
0
 public EnrolleeService(ISession session, ILogAdminService log, IUserService userserv, IHelperService helpersvc)
 {
     _session     = session;
     _logger      = log;
     _userService = userserv;
     _helpersvc   = helpersvc;
 }
Exemplo n.º 14
0
 public SettingController(IHelperService helperService, ITimerScheduleService timerScheduleService, IAccountApplianceService accountApplianceService, IApplianceService applianceService, IStateService stateService, IOptions <AppSetting> appSettings) : base(appSettings.Value)
 {
     this._helperService           = helperService;
     this._applianceService        = applianceService;
     this._stateService            = stateService;
     this._accountApplianceService = accountApplianceService;
     this._timerScheduleService    = timerScheduleService;
 }
Exemplo n.º 15
0
 public MetricService(JazzMetricsContext db, IAspiceProcessService aspiceProcessService, IMetricTypeService metricTypeService, IAffectedFieldService affectedFieldService,
                      IHttpContextAccessor contextAccessor, IHelperService helperService) : base(db)
 {
     _metricTypeService    = metricTypeService;
     _aspiceProcessService = aspiceProcessService;
     _affectedFieldService = affectedFieldService;
     CurrentUser           = helperService.GetCurrentUser(contextAccessor.HttpContext.User.GetId());
 }
 public SailingBoatAdDetailsModel(SailingBoatAd ad, IHelperService helper)
     : base(ad)
 {
     BoatType = ad.SailingBoatType != null ? ad.SailingBoatType.Label : String.Empty;
     HullType = ad.HullType != null ? ad.HullType.Label : String.Empty;
     Year     = ad.Year != 0 ? ad.Year : (int?)null;
     Length   = ad.Length != 0 ? String.Format(helper.GetCulture(), "{0:F2} Mtr", ad.Length) : String.Empty;
 }
 public SailingBoatAdDetailsModel(SailingBoatAd ad, IHelperService helper)
     : base(ad)
 {
     BoatType = ad.SailingBoatType != null ? ad.SailingBoatType.Label : String.Empty;
     HullType = ad.HullType != null ? ad.HullType.Label : String.Empty;
     Year = ad.Year != 0 ? ad.Year : (int?) null;
     Length = ad.Length != 0 ? String.Format(helper.GetCulture(), "{0:F2} Mtr", ad.Length) : String.Empty;
 }
Exemplo n.º 18
0
 public UtilsController(DataContext context, IHelperService helperService, ICalendarService calService, IEmailService emailService, IHostingEnvironment hostingEnvironment)
 {
     _context            = context;
     _calService         = calService;
     _emailService       = emailService;
     _hostingEnvironment = hostingEnvironment;
     _helperService      = helperService;
 }
Exemplo n.º 19
0
 public SendBirthDayMessageTask(IHelperService helperService, ISmsService smsSvc, IEnrolleeService enrolleeService, ILogAdminService loggersvc, IProviderService providersvc)
 {
     _helperSvc       = helperService;
     _enrolleeService = enrolleeService;
     _smsservice      = smsSvc;
     _logger          = loggersvc;
     _providerservice = providersvc;
 }
Exemplo n.º 20
0
 public CheckSerialNumberController(IHelperService helperService, IOptions <AppSetting> appSettings)
 {
     _appSettings        = appSettings.Value;
     this._helperService = helperService;
     client = new HttpClient();
     client.DefaultRequestHeaders.Accept.Clear();
     client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
 }
Exemplo n.º 21
0
 public AuthenticateIdentityHandler(IDataLayer dataLayer, ICachingService cachingService, IHelperService helperService, JwtOptionsBO jwtOptionsBo, IJwtService jwtService)
 {
     _jwtService     = jwtService;
     _jwtOptions     = jwtOptionsBo;
     _helperService  = helperService;
     _dataLayer      = dataLayer;
     _cachingService = cachingService;
 }
Exemplo n.º 22
0
 public AuthService(IHttpService httpService, HttpClient httpClient, AuthenticationStateProvider authenticationStateProvider, ILocalStorageService localStorageService, IHelperService helperService)
 {
     this._httpService = httpService;
     this._authenticationStateProvider = authenticationStateProvider;
     this._localStorageService         = localStorageService;
     this._helperService = helperService;
     this._httpClient    = httpClient;
 }
Exemplo n.º 23
0
 public FolderDriver(
     IExtendedProjectService projectService,
     IHelperService helperService,
     IFolderService folderService,
     ICRMContentOwnershipService contentOwnershipService,
     IOrchardServices services) : base(contentOwnershipService, projectService, services, helperService, folderService)
 {
 }
Exemplo n.º 24
0
 // GET: api/PurchaseLineExtend
 public PurchaseLineExtendController(IRepositorySageX3Extend <PurchaseLineExtend> repo,
                                     IRepositoryDapperSageX3 <PurchaseRequestLinePureViewModel> repoPrLinePure,
                                     IMapper mapper,
                                     IHelperService helper,
                                     JsonSerializerService jsonService) : base(repo, mapper, helper, jsonService)
 {
     this.repositoryPrLinePure = repoPrLinePure;
 }
Exemplo n.º 25
0
 public LoginController(IHostingEnvironment env, IHelperService helperService, IOptions <AppSetting> appSettings)
 {
     _env                = env;
     _appSettings        = appSettings.Value;
     this._helperService = helperService;
     client              = new HttpClient();
     client.DefaultRequestHeaders.Accept.Clear();
     client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
 }
 public VesselDetailsModel(
     PortFreightContext context,
     ILogger <VesselDetailsModel> logger,
     IHelperService helperService)
 {
     _context       = context;
     _logger        = logger;
     _helperService = helperService;
 }
Exemplo n.º 27
0
 public CompanyDetailsModel(
     PortFreightContext context,
     IHelperService helperService,
     UserManager <PortFreightUser> userManager)
 {
     _context       = context;
     _helperService = helperService;
     _userManager   = userManager;
 }
Exemplo n.º 28
0
 public TariffPageController(IPlanService planService, IUniquePageService uniquepageService, IPageMessageSvc pageMessageSvc, IHelperService helperService, ITariffService tariffService, IProviderService Providersvc, IUserService userservice)
 {
     _uniquePageService = uniquepageService;
     _pageMessageSvc    = pageMessageSvc;
     _helperSvc         = helperService;
     _userservice       = userservice;
     _tariffService     = tariffService;
     _providerSvc       = Providersvc;
 }
        public HelperServiceTest()
        {
            DbContextOptions <PortFreightContext> optionsBuilder = new DbContextOptionsBuilder <PortFreightContext>()
                                                                   .UseInMemoryDatabase("InMemoryDb")
                                                                   .Options;

            actualContext  = new PortFreightContext(optionsBuilder);
            _helperService = new HelperService(actualContext);
        }
 // GET: api/TaskStatusMaster
 public TaskStatusMasterController(IRepositorySageX3Extend <TaskStatusMaster> repo,
                                   IRepositorySageX3Extend <TaskStatusDetail> repoDetail,
                                   IMapper mapper,
                                   IHelperService helper,
                                   JsonSerializerService jsonService
                                   ) : base(repo, mapper, helper, jsonService)
 {
     this.repositoryDetail = repoDetail;
 }
Exemplo n.º 31
0
 public MotorBoatAdDetailsModel(MotorBoatAd ad, IHelperService helper)
     : base(ad)
 {
     BoatType = ad.MotorBoatType != null ? ad.MotorBoatType.Label : String.Empty;
     MotorType = ad.MotorType != null ? ad.MotorType.Label : String.Empty;
     Year = ad.Year != 0 ? ad.Year : (int?) null;
     Length = ad.Length != 0 ? String.Format(helper.GetCulture(), "{0:F2} Mtr", ad.Length) : String.Empty;
     Hp = ad.Hp != 0 ? String.Format("{0} Cv", ad.Hp) : String.Empty;
 }
Exemplo n.º 32
0
 public AuthenticateIdentityHandler(IDataLayer dataLayer, ICachingService cachingService, IHelperService helperService, JwtOptionsBO jwtOptionsBo, IJwtService jwtService, ILoggerWrapper recordsWrapper)
 {
     _recordsService = recordsWrapper;
     _jwtService     = jwtService;
     _jwtOptions     = jwtOptionsBo;
     _helperService  = helperService;
     _dataLayer      = dataLayer;
     _cachingService = cachingService;
 }
Exemplo n.º 33
0
 public SearchServices(IRepository repository, 
     ICategoryRepository categoryRepository, 
     ISearchRepository searchRepository, 
     IHelperService helperService, 
     IReferenceServices referenceServices,
     ILocationServices locationServices)
 {
     _repository = repository;
     _categoryRepository = categoryRepository;
     _searchRepository = searchRepository;
     _helperService = helperService;
     _referenceServices = referenceServices;
     _locationServices = locationServices;
 }
Exemplo n.º 34
0
        /// <summary>
        /// Add a helper service to the manager
        /// </summary>
        /// <param name="service">
        /// Target service
        /// </param>
        /// <param name="autoStart">
        /// Auto-start the service after adding
        /// </param>
        public void Add(IHelperService service, bool autoStart)
        {
            var type = service.GetType();
            IHelperService existService;
            if (this.services.TryGetValue(type, out existService))
            {
                existService.Configuration = service.Configuration;
            }
            else
            {
                this.services.Add(type, service);
                existService = service;
            }

            existService.Logger = this.Logger;

            if (autoStart)
            {
                existService.Initialize();
                existService.Start();
            }
        }
Exemplo n.º 35
0
 public SpamAdServices(IAdRepository adRepository, IRepository repository, IHelperService helper)
 {
     _adRepository = adRepository;
     _repository = repository;
     _helper = helper;
 }
Exemplo n.º 36
0
 public AdImageServices(IRepository repository, IHelperService helper)
 {
     _repository = repository;
     _helper = helper;
 }
Exemplo n.º 37
0
 /// <summary>
 /// Stop a certain service if it is running
 /// </summary>
 /// <param name="service">
 /// Target service to be stopped
 /// </param>
 private static void Stop(IHelperService service)
 {
     if (service.Status == HelperServiceStatus.Running)
     {
         service.Stop();
     }
 }
Exemplo n.º 38
0
 public AdDetailsServices(IAdRepository adRepository, IHelperService helperService)
 {
     _adRepository = adRepository;
     _helperService = helperService;
 }
Exemplo n.º 39
0
 public AdDeletionServices(IAdRepository adRepository, IRepository repository, IHelperService helper)
 {
     _adRepository = adRepository;
     _repository = repository;
     _helper = helper;
 }