コード例 #1
0
 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;
 }
コード例 #2
0
 public AccountSummaryService(
     IRepository <AccountSummary, Guid> repo,
     IServiceHelper serviceHelper)
 {
     _repo          = repo;
     _serviceHelper = serviceHelper;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
ファイル: ProductService.cs プロジェクト: evilsquirr3l/eShop
 public ProductService(IMapper mapper, ShopDbContext dbContext, AbstractValidator <ProductDto> validator, IServiceHelper <Product> helper)
 {
     _mapper    = mapper;
     _dbContext = dbContext;
     _validator = validator;
     _helper    = helper;
 }
コード例 #5
0
 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;
 }
コード例 #6
0
        // 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();
        }
コード例 #7
0
 public AccountController(IUserManagerService <User> userManager, IServiceHelper helper, IPasswordGenerator passwordGenerator, IMessagingFactory messagingFactory) : base(nameof(AccountController))
 {
     _userManager       = userManager;
     _helper            = helper;
     _passwordGenerator = passwordGenerator;
     _messagingFactory  = messagingFactory;
 }
コード例 #8
0
 public CategoryService(IMapper mapper, ShopDbContext dbContext, AbstractValidator <CategoryDto> validator, IServiceHelper <Category> helper)
 {
     _mapper    = mapper;
     _dbContext = dbContext;
     _validator = validator;
     _helper    = helper;
 }
コード例 #9
0
ファイル: Startup.cs プロジェクト: zt199510/Microservices
        // 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();
        }
コード例 #10
0
ファイル: CartService.cs プロジェクト: TobiAwe/RentalPortal
 public CartService(IUnitOfWork uow, ICartRepository cartRepository, IServiceHelper helper, IMapper mapper)
 {
     _uow            = uow;
     _helper         = helper;
     _mapper         = mapper;
     _cartRepository = cartRepository;
 }
コード例 #11
0
        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);
        }
コード例 #12
0
 public OrderService(IUnitOfWork uow, IOrderRepository orderRepository, IMapper mapper, IServiceHelper helper)
 {
     _uow             = uow;
     _orderRepository = orderRepository;
     _mapper          = mapper;
     _helper          = helper;
 }
コード例 #13
0
 public UserService(IMapper mapper, IUnitOfWork unitOfWork, IServiceHelper helper, IOptions <JwtSettings> jwtSettings)
 {
     this.mapper      = mapper;
     this.unitOfWork  = unitOfWork;
     this.helper      = helper;
     this.jwtSettings = jwtSettings.Value;
 }
コード例 #14
0
 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;
 }
コード例 #15
0
 public EquipmentService(IEquipmentRepository equipment, IServiceHelper helper, IMapper mapper)
 {
     //_uow = uow;
     _helper    = helper;
     _equipment = equipment;
     _mapper    = mapper;
 }
コード例 #16
0
 public TerminalController(ITerminalService terminalSvc,
                           /* IRouteService routeSvc,*/ IUserService userManagerSvc, IServiceHelper serviceHelper)
 {
     _terminalSvc = terminalSvc;
     //_routeSvc = routeSvc;
     _userManagerSvc = userManagerSvc;
     _serviceHelper  = serviceHelper;
 }
コード例 #17
0
ファイル: AuthenHelper.cs プロジェクト: huutoannht/mart
 public AuthenHelper(ISessionHelper sessionHelper, ICryptoHelper cryptoHelper, IServiceHelper serviceHelper, ICacheHelper cacheHelper)
 {
     _httpContext = HttpContext.Current;
     _sessionHelper = sessionHelper;
     _cryptoHelper = cryptoHelper;
     _serviceHelper = serviceHelper;
     _cacheHelper = cacheHelper;
 }
コード例 #18
0
 //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;
 }
コード例 #19
0
        public ChallengeController(IOptions <ApiEndpoints> apiEndpoints, IHttpClientFactory httpClientFactory, IServiceHelper serviceHelper)
        {
            _apiEndpoints      = apiEndpoints?.Value;
            _httpClientFactory = httpClientFactory ??
                                 throw new ArgumentNullException(nameof(httpClientFactory));

            _serviceHelper = serviceHelper;
        }
コード例 #20
0
 public UserAdapter(IServiceHelper <HttpWebRequest, BaseHttpResponse> serviceHelper,
                    IOptions <ServiceSettings> config, ILogger <UserAdapter> log, IHttpContextAccessor httpContextAccessor)
 {
     _serviceHelper       = serviceHelper;
     _config              = config;
     _log                 = log;
     _httpContextAccessor = httpContextAccessor;
 }
コード例 #21
0
 public WalletService(IRepository <Wallet> repo, IWalletNumberService walletNumberSvc,
                      IUnitOfWork unitOfWork, IServiceHelper serviceHelper)
 {
     _repo            = repo;
     _walletNumberSvc = walletNumberSvc;
     _unitOfWork      = unitOfWork;
     _serviceHelper   = serviceHelper;
 }
コード例 #22
0
 public PassportTypeService(
     IRepository <PassportType> passportTypeRepo,
     IUnitOfWork unitOfWork,
     IServiceHelper serviceHelper)
 {
     _passportTypeRepo = passportTypeRepo;
     _unitOfWork       = unitOfWork;
     _serviceHelper    = serviceHelper;
 }
コード例 #23
0
 public RegionService(
     IRepository <Region> regionRepo,
     IServiceHelper serviceHelper,
     IUnitOfWork unitOfWork)
 {
     _regionRepo    = regionRepo;
     _serviceHelper = serviceHelper;
     _unitOfWork    = unitOfWork;
 }
コード例 #24
0
        public ManagerServicesForm()
        {
            InitializeComponent();
            _serviceHelper   = new ServiceHelper();
            _settingsService = new SettingsService();

            SetButtonsDate();
            SetButtonsMemory();
        }
コード例 #25
0
 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;
 }
コード例 #26
0
 public AccountTransactionService(
     IRepository <AccountTransaction, Guid> repo,
     IAccountSummaryService accountSummarySvc,
     IServiceHelper serviceHelper, IUnitOfWork unitOfWork)
 {
     _repo = repo;
     _AccountSummarySvc = accountSummarySvc;
     _serviceHelper     = serviceHelper;
     _unitOfWork        = unitOfWork;
 }
コード例 #27
0
 public CouponService(IRepository <Coupon, Guid> repository,
                      IRepository <SeatManagement, long> seatMgtRepository,
                      IUnitOfWork unitOfWork,
                      IServiceHelper serviceHelper)
 {
     _repository        = repository;
     _seatMgtRepository = seatMgtRepository;
     _unitOfWork        = unitOfWork;
     _serviceHelper     = serviceHelper;
 }
コード例 #28
0
        public DynDns(ISettings settings, IServiceHelper serviceHelper, IEventLogger eventLogger)
        {
            _settings      = settings;
            _serviceHelper = serviceHelper;
            _eventLogger   = eventLogger;

            InitializeComponent();

            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
        }
コード例 #29
0
 public SeatManagementController(IUserService userManagerSvc,
                                 IMailService mailSvc,
                                 ISeatManagementService seatmgtSvc,
                                 IServiceHelper serviceHelper)
 {
     _userManagerSvc = userManagerSvc;
     _mailSvc        = mailSvc;
     _service        = seatmgtSvc;
     _serviceHelper  = serviceHelper;
 }
コード例 #30
0
 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;
 }
コード例 #31
0
 public StateService(
     IRepository <State> stateRepo,
     IRepository <Region> regionRepo,
     IUnitOfWork unitOfWork,
     IServiceHelper serviceHelper)
 {
     _stateRepo     = stateRepo;
     _regionRepo    = regionRepo;
     _unitOfWork    = unitOfWork;
     _serviceHelper = serviceHelper;
 }