public RouteService(IRepository <SeatManagement, long> seatMgtRepo, IUserService userSvc, IRepository <VehicleTripRegistration, Guid> vehicleTripRegRepo, IRepository <VehicleModel> vehicleModelRepo, IRepository <FareCalendar> fareCalendarRepo, IRepository <Fare> fareRepo, IRepository <Trip, Guid> tripRepo, IRepository <ExcludedSeat> excludedSeatRepo, IRepository <Route> routeRepo, IRepository <State> stateRepo, IRepository <Driver> driverRepo, IRepository <Terminal> terminalRepo, IRepository <EmployeeRoute, long> employeeRouteRepo, IRepository <Employee> employeeRepo, IFareCalendarService fareCalendarSvc, IServiceHelper serviceHelper, IUnitOfWork unitOfWork, IEmployeeService employeeSvc) { _seatMgtRepo = seatMgtRepo; _userSvc = userSvc; _employeeSvc = employeeSvc; _fareCalendarSvc = fareCalendarSvc; _vehicleTripRegRepo = vehicleTripRegRepo; _vehicleModelRepo = vehicleModelRepo; _fareCalendarRepo = fareCalendarRepo; _fareRepo = fareRepo; _tripRepo = tripRepo; _excludedSeatRepo = excludedSeatRepo; _repo = routeRepo; _stateRepo = stateRepo; _driverRepo = driverRepo; _terminalRepo = terminalRepo; _employeeRouteRepo = employeeRouteRepo; _serviceHelper = serviceHelper; _unitOfWork = unitOfWork; _employeeRepo = employeeRepo; }
public AccountSummaryService( IRepository <AccountSummary, Guid> repo, IServiceHelper serviceHelper) { _repo = repo; _serviceHelper = serviceHelper; }
public VehicleTripRegistrationService(IUserService userManagerSvc, IRepository <VehicleTripRegistration, Guid> repo, ITripService tripSvc, IVehicleService vehicleSvc, IServiceHelper serviceHelper, IEmployeeService employeeSvc, IRepository <Route> routerepo, IUnitOfWork unitOfWork, IDriverService driverSvc, ISeatManagementService seatManagementService, IRepository <JourneyManagement, Guid> journeyManagementRepo, IRepository <Vehicle> vehRepo, IRepository <Manifest, Guid> manRepo) { _userManagerSvc = userManagerSvc; _repo = repo; _tripSvc = tripSvc; _vehicleSvc = vehicleSvc; _serviceHelper = serviceHelper; _employeeSvc = employeeSvc; _driverSvc = driverSvc; _unitOfWork = unitOfWork; _seatManagementService = seatManagementService; _journeyManagementRepo = journeyManagementRepo; _routerepo = routerepo; _vehRepo = vehRepo; _manRepo = manRepo; }
public ProductService(IMapper mapper, ShopDbContext dbContext, AbstractValidator <ProductDto> validator, IServiceHelper <Product> helper) { _mapper = mapper; _dbContext = dbContext; _validator = validator; _helper = helper; }
public EmployeeService(IUnitOfWork unitOfWork, IRepository <Employee> employeeRepo, IRepository <Terminal> terminalRepo, IRepository <Wallet> walletRepo, IRepository <Department> departmentRepo, IServiceHelper serviceHelper, IUserService userSvc, IRoleService roleSvc, IReferralService referralSvc, ISMSService smsSvc, IMailService mailSvc, IHostingEnvironment hostingEnvironment, IGuidGenerator guidGenerator, IOptions <AppConfig> _appConfig) { _unitOfWork = unitOfWork; _repo = employeeRepo; _terminalRepo = terminalRepo; _walletRepo = walletRepo; _departmentRepo = departmentRepo; _serviceHelper = serviceHelper; _userSvc = userSvc; _referralSvc = referralSvc; _smsSvc = smsSvc; _mailSvc = mailSvc; appConfig = _appConfig.Value; _hostingEnvironment = hostingEnvironment; _guidGenerator = guidGenerator; _roleSvc = roleSvc; }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IServiceHelper serviceHelper) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseExceptionHandler("/Home/Error"); } app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseRouting(); app.UseAuthentication(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllerRoute( name: "default", pattern: "{controller=Home}/{action=Index}/{id?}"); }); // 程序啟動時,獲取服務列表 // serviceHelper.GetServices(); }
public AccountController(IUserManagerService <User> userManager, IServiceHelper helper, IPasswordGenerator passwordGenerator, IMessagingFactory messagingFactory) : base(nameof(AccountController)) { _userManager = userManager; _helper = helper; _passwordGenerator = passwordGenerator; _messagingFactory = messagingFactory; }
public CategoryService(IMapper mapper, ShopDbContext dbContext, AbstractValidator <CategoryDto> validator, IServiceHelper <Category> helper) { _mapper = mapper; _dbContext = dbContext; _validator = validator; _helper = helper; }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IServiceHelper serviceHelper) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseExceptionHandler("/Home/Error"); // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. app.UseHsts(); } app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseRouting(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllerRoute( name: "default", pattern: "{controller=Home}/{action=Index}/{id?}"); }); //程序启动时 获取服务列表 serviceHelper.GetServices(); }
public CartService(IUnitOfWork uow, ICartRepository cartRepository, IServiceHelper helper, IMapper mapper) { _uow = uow; _helper = helper; _mapper = mapper; _cartRepository = cartRepository; }
public static bool Login(string tenantName, string destUrl, PromptBehavior behavior) { if (Helper == null) { Helper = new SPOServiceHelper(); } if (string.IsNullOrEmpty(tenantName) && !string.IsNullOrEmpty(SpecifiedTenantName)) { tenantName = SpecifiedTenantName; } if (!string.IsNullOrEmpty(destUrl) && !destUrl.StartsWith("/")) { destUrl = "/" + destUrl; } var baseLogin = string.Format(baseFormat, tenantName); var destSite = new Uri(string.Format(subFormat, tenantName, destUrl)); try { var service = Helper.InstantiateSPOService(destSite, baseLogin, null, COMMON_AUTH_URL, behavior); SP1 = service.Context; } catch { return(false); } SpecifiedTenantName = tenantName; return(Connected); }
public OrderService(IUnitOfWork uow, IOrderRepository orderRepository, IMapper mapper, IServiceHelper helper) { _uow = uow; _orderRepository = orderRepository; _mapper = mapper; _helper = helper; }
public UserService(IMapper mapper, IUnitOfWork unitOfWork, IServiceHelper helper, IOptions <JwtSettings> jwtSettings) { this.mapper = mapper; this.unitOfWork = unitOfWork; this.helper = helper; this.jwtSettings = jwtSettings.Value; }
public VehicleService(IRepository <Vehicle> vehicleRepo, IDriverService driversvc, IRepository <VehicleAllocationDetailModel> vehicleAlloRepo, IFranchizeService franchizeService, IRepository <VehiclePart> vehiclepartRepo, IRepository <VehicleModel> vehicleModelRepo, IRepository <Terminal> terminalRepo, IRepository <Employee> employeeRepo, IUnitOfWork unitOfWork, IServiceHelper serviceHelper, IRepository <State> stateRepo, ISMSService smsSvc, IRepository <Manifest, Guid> manifestRepo, IRepository <VehicleTripRegistration, Guid> vhclTrip, IUserService userSvc, IEmployeeService employeeSvc, IRepository <VehicleAllocationDetailModel> vehAllocDet) { _vehicleRepo = vehicleRepo; _driversvc = driversvc; _vehiclepartRepo = vehiclepartRepo; _vehicleModelRepo = vehicleModelRepo; _terminalRepo = terminalRepo; _employeeRepo = employeeRepo; _unitOfWork = unitOfWork; _serviceHelper = serviceHelper; _stateRepo = stateRepo; _franchizeService = franchizeService; _smsSvc = smsSvc; _manifestRepo = manifestRepo; _vhclTrip = vhclTrip; _employeeSvc = employeeSvc; _vehicleAlloRepo = vehicleAlloRepo; _userSvc = userSvc; _vehAllocDet = vehAllocDet; }
public EquipmentService(IEquipmentRepository equipment, IServiceHelper helper, IMapper mapper) { //_uow = uow; _helper = helper; _equipment = equipment; _mapper = mapper; }
public TerminalController(ITerminalService terminalSvc, /* IRouteService routeSvc,*/ IUserService userManagerSvc, IServiceHelper serviceHelper) { _terminalSvc = terminalSvc; //_routeSvc = routeSvc; _userManagerSvc = userManagerSvc; _serviceHelper = serviceHelper; }
public AuthenHelper(ISessionHelper sessionHelper, ICryptoHelper cryptoHelper, IServiceHelper serviceHelper, ICacheHelper cacheHelper) { _httpContext = HttpContext.Current; _sessionHelper = sessionHelper; _cryptoHelper = cryptoHelper; _serviceHelper = serviceHelper; _cacheHelper = cacheHelper; }
//Create a BattleshipGame public BattleshipService(ILogger <BattleshipService> logger, BattleshipBoardGame battleshipBoardGame, IServiceHelper serviceHelper, Response response) { this.logger = logger; this.battleshipBoardGame = battleshipBoardGame; this.serviceHelper = serviceHelper; this.response = response; }
public ChallengeController(IOptions <ApiEndpoints> apiEndpoints, IHttpClientFactory httpClientFactory, IServiceHelper serviceHelper) { _apiEndpoints = apiEndpoints?.Value; _httpClientFactory = httpClientFactory ?? throw new ArgumentNullException(nameof(httpClientFactory)); _serviceHelper = serviceHelper; }
public UserAdapter(IServiceHelper <HttpWebRequest, BaseHttpResponse> serviceHelper, IOptions <ServiceSettings> config, ILogger <UserAdapter> log, IHttpContextAccessor httpContextAccessor) { _serviceHelper = serviceHelper; _config = config; _log = log; _httpContextAccessor = httpContextAccessor; }
public WalletService(IRepository <Wallet> repo, IWalletNumberService walletNumberSvc, IUnitOfWork unitOfWork, IServiceHelper serviceHelper) { _repo = repo; _walletNumberSvc = walletNumberSvc; _unitOfWork = unitOfWork; _serviceHelper = serviceHelper; }
public PassportTypeService( IRepository <PassportType> passportTypeRepo, IUnitOfWork unitOfWork, IServiceHelper serviceHelper) { _passportTypeRepo = passportTypeRepo; _unitOfWork = unitOfWork; _serviceHelper = serviceHelper; }
public RegionService( IRepository <Region> regionRepo, IServiceHelper serviceHelper, IUnitOfWork unitOfWork) { _regionRepo = regionRepo; _serviceHelper = serviceHelper; _unitOfWork = unitOfWork; }
public ManagerServicesForm() { InitializeComponent(); _serviceHelper = new ServiceHelper(); _settingsService = new SettingsService(); SetButtonsDate(); SetButtonsMemory(); }
public FeedbackService(IRepository <Complaint> complaintRepo, IServiceHelper serviceHelper, IMailService mailSvc, ISMSService smsSvc, IOptions <AppConfig> _appConfig, IUnitOfWork unitOfWork) { _complaintRepo = complaintRepo; _serviceHelper = serviceHelper; _smsSvc = smsSvc; _unitOfWork = unitOfWork; _mailSvc = mailSvc; appConfig = _appConfig.Value; }
public AccountTransactionService( IRepository <AccountTransaction, Guid> repo, IAccountSummaryService accountSummarySvc, IServiceHelper serviceHelper, IUnitOfWork unitOfWork) { _repo = repo; _AccountSummarySvc = accountSummarySvc; _serviceHelper = serviceHelper; _unitOfWork = unitOfWork; }
public CouponService(IRepository <Coupon, Guid> repository, IRepository <SeatManagement, long> seatMgtRepository, IUnitOfWork unitOfWork, IServiceHelper serviceHelper) { _repository = repository; _seatMgtRepository = seatMgtRepository; _unitOfWork = unitOfWork; _serviceHelper = serviceHelper; }
public DynDns(ISettings settings, IServiceHelper serviceHelper, IEventLogger eventLogger) { _settings = settings; _serviceHelper = serviceHelper; _eventLogger = eventLogger; InitializeComponent(); AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; }
public SeatManagementController(IUserService userManagerSvc, IMailService mailSvc, ISeatManagementService seatmgtSvc, IServiceHelper serviceHelper) { _userManagerSvc = userManagerSvc; _mailSvc = mailSvc; _service = seatmgtSvc; _serviceHelper = serviceHelper; }
public UserService(UserManager <User> userManager, IServiceHelper svcHelper, IMailService mailSvc, IHostingEnvironment hostingEnvironment, IOptions <AppConfig> _appConfig) { _userManager = userManager; _svcHelper = svcHelper; _mailSvc = mailSvc; appConfig = _appConfig.Value; _hostingEnvironment = hostingEnvironment; }
public StateService( IRepository <State> stateRepo, IRepository <Region> regionRepo, IUnitOfWork unitOfWork, IServiceHelper serviceHelper) { _stateRepo = stateRepo; _regionRepo = regionRepo; _unitOfWork = unitOfWork; _serviceHelper = serviceHelper; }