public SectionController(ISectionService SectionService, ILookupService lookupService, IClassService ClassService) : base() { this._SectionService = SectionService; this._lookupService = lookupService; this._ClassService = ClassService; }
public HomeController(IStudentService StudentsService, ILookupService lookupService, ISchoolService SchoolService) : base() { this._StudentService = StudentsService; this._lookupService = lookupService; this._schoolService = SchoolService; }
public ClassController(IClassService ClassService, ILookupService lookupService, IClassSubjectsService IClassSubjectsService) : base() { this._ClassService = ClassService; this._lookupService = lookupService; this._IClassSubjectsService = IClassSubjectsService; }
public StudentsController(IStudentService StudentsService, ILookupService lookupService, IStudentsParentService StudentsParentService, IStudentsMedicalService StudentsMedicalService, IStudentsTransportService StudentsTransportService, IStudentsDocsService StudentsDocsService, IAcademicYearService AcademicYearService, IClassService ClassService, ISectionService SectionService, IBatchService BatchService, IAreaService AreaService, IStudentsAttendanceService StudentsAttendanceService, IStudentsClassService StudentsClassService) : base() { this._StudentService = StudentsService; this._StudentsParentService = StudentsParentService; this._StudentsMedicalService = StudentsMedicalService; this._StudentsTransportService = StudentsTransportService; this._StudentsDocsService = StudentsDocsService; this._StudentsClassService = StudentsClassService; this._AcademicYearService = AcademicYearService; this._ClassService = ClassService; this._SectionService = SectionService; this._BatchService = BatchService; this._AreaService = AreaService; this._lookupService = lookupService; this._StudentsAttendanceService = StudentsAttendanceService; }
public UserController(IUserService ObjService, IUserRoleRightsService UserRoleRightsServices, ILookupService lookupService) : base() { this._ObjService = ObjService; this._userRoleRightsServices = UserRoleRightsServices; this._lookupService = lookupService; }
public ClientMonitor(IMessageDispatcher msgDispatch, string userName, List<ServerMetadata> servers) { _msgDispatch = msgDispatch; _monitoredReservations = new Dictionary<int, Reservation>(); _userName = userName; _servers = servers; _activeServer = null; }
public FeeFineController(IFeeFineService FeeFineService, IFeeHeadService FeeHeadService, ILookupService lookupService) : base() { this._FeeFineService = FeeFineService; this._FeeHeadService = FeeHeadService; this._lookupService = lookupService; }
public InjuredPersonViewModelFactory( IAccidentRecordService accidentRecordService, IEmployeeService employeeService, ILookupService lookupService) { _accidentRecordService = accidentRecordService; _employeeService = employeeService; _lookupService = lookupService; }
public FeeStructureController(IFeeStructureService FeeStructureService, ILookupService lookupService, IAcademicYearService AcademicYearService, IClassService ClassService, IFeeHeadService FeeHeadService) : base() { this._FeeStructureService = FeeStructureService; this._lookupService = lookupService; this._AcademicYearService = AcademicYearService; this._ClassService = ClassService; this._FeeHeadService = FeeHeadService; }
public EmployeeViewModelFactory(IEmployeeService employeeService, ISiteService siteService, ILookupService lookupService, ISiteGroupService siteGroupService, IRolesService rolesService, IRiskAssessorService riskAssessorService) { _employeeService = employeeService; _siteService = siteService; _siteGroupService = siteGroupService; _lookupService = lookupService; _rolesService = rolesService; _riskAssessorService = riskAssessorService; _addUsersViewModelFactory = new AddUsersViewModelFactory(_employeeService, _rolesService, _siteService, _siteGroupService); }
public EnquiryController(IEnquiryService EnquiryService, ILookupService lookupService, IAcademicYearService AcademicYearService, IClassService ClassService, ISectionService SectionService) : base() { this._EnquiryService = EnquiryService; this._lookupService = lookupService; this._AcademicYearService = AcademicYearService; this._ClassService = ClassService; this._SectionService = SectionService; }
public ExamController(IExamService ExamService, ILookupService lookupService, IClassService ClassService, IAcademicYearService AcademicYearService, IExamSubjectsService IExamSubjectsService, IExamGradesService IExamGradesService, IExamMarksDetailIsService IExamMarksDetailIsService, IExamMarksService IExamMarksService) : base() { this._ExamService = ExamService; this._lookupService = lookupService; this._ClassService = ClassService; this._AcademicYearService = AcademicYearService; this._IExamSubjectsService = IExamSubjectsService; this._IExamGradesService = IExamGradesService; this._IExamMarksDetailIsService = IExamMarksDetailIsService; this._IExamMarksService = IExamMarksService; }
public ReportController(IExamService ExamService, ILookupService lookupService, IExamSubjectsService IExamSubjectsService, IExamMarksDetailIsService IExamMarksDetailIsService, IAcademicYearService AcademicYearService, IClassService ClassService, ISectionService SectionService, IExamMarksService IExamMarksService) : base() { this._ExamService = ExamService; this._lookupService = lookupService; this._IExamSubjectsService = IExamSubjectsService; _IExamMarksDetailIsService = IExamMarksDetailIsService; this._AcademicYearService = AcademicYearService; this._ClassService = ClassService; this._SectionService = SectionService; _IExamMarksService = IExamMarksService; }
public ComplaintController(IComplaintService ComplaintService, ILookupService lookupService, IAcademicYearService AcademicYearService, IClassService ClassService, ISectionService SectionService, IStudentService StudentService) : base() { this._ComplaintService = ComplaintService; this._lookupService = lookupService; this._AcademicYearService = AcademicYearService; this._ClassService = ClassService; this._SectionService = SectionService; this._StudentService = StudentService; }
public FeeConcessionController(IFeeConcessionService FeeConcessionService, ILookupService lookupService, IAcademicYearService AcademicYearService, IClassService ClassService, ISectionService SectionService, IBatchService BatchService, IFeeHeadService FeeHeadService, IStudentService StudentService, IFeeStructureService FeeStructureService) : base() { this._FeeConcessionService = FeeConcessionService; this._lookupService = lookupService; this._AcademicYearService = AcademicYearService; this._ClassService = ClassService; this._SectionService = SectionService; this._BatchService = BatchService; this._FeeHeadService = FeeHeadService; this._StudentService = StudentService; this._feeStructureService = FeeStructureService; }
public DocumentController( ILookupService lookupService, IDocumentLibraryService documentLibraryService, IStreamingDocumentLibraryService streamingDocumentLibraryService, IDocumentLibraryUploader documentLibraryUploader, ISiteService siteService, IDocumentService documentService, IStreamingClientDocumentService streamingClientDocumentService, IPeninsulaLog peninsulaLog) { _lookupService = lookupService; _documentLibraryService = documentLibraryService; _streamingDocumentLibraryService = streamingDocumentLibraryService; _documentLibraryUploader = documentLibraryUploader; _siteService = siteService; _documentService = documentService; _streamingClientDocumentService = streamingClientDocumentService; _peninsulaLog = peninsulaLog; }
public FeeReceiptController(IFeeReceiptService FeeReceiptService, ILookupService lookupService, IAcademicYearService AcademicYearService, IClassService ClassService, ISectionService SectionService, IBatchService BatchService, IFeeHeadService FeeHeadService, IStudentService StudentService, IFeeStructureService FeeStructureService, IFeeHeadOptionalEntryService FeeHeadOptionalEntryService, ISchoolService SchoolService) : base() { this._FeeReceiptService = FeeReceiptService; this._lookupService = lookupService; this._AcademicYearService = AcademicYearService; this._ClassService = ClassService; this._SectionService = SectionService; this._BatchService = BatchService; this._FeeHeadService = FeeHeadService; this._StudentService = StudentService; this._feeStructureService = FeeStructureService; this._FeeHeadOptionalEntryService = FeeHeadOptionalEntryService; this._SchoolService = SchoolService; }
public AcademicYearController(IAcademicYearService ObjService, ILookupService lookupService) : base() { this._ObjService = ObjService; this._lookupService = lookupService; }
public LookupController(UserManager <ApplicationUser> userManager, ILookupService lookupService) : base(userManager) { _lookupService = lookupService; }
/// <summary> /// CartService constructor /// </summary> /// <param name="cartRepository">The repository for accessing cart data</param> /// <param name="damProvider">The provider for providing images</param> /// <param name="cartViewModelFactory">Factory creating a <see cref="CartViewModel"/>.</param> /// <param name="couponViewService">The <see cref="ICouponViewService"/>.</param> /// <param name="lookupService">The <see cref="ILookupService"/>.</param> /// <param name="lineItemService">The <see cref="ILineItemService"/>.</param> /// <param name="fixCartService">The <see cref="IFixCartService"/>.</param> /// <param name="countryService">The <see cref="ICountryService"/></param> /// <param name="regionCodeProvider">The <see cref="IRegionCodeProvider"/></param> /// <param name="imageService">The <see cref="IImageService"/></param> public CartService( ICartRepository cartRepository, IDamProvider damProvider, ICartViewModelFactory cartViewModelFactory, ICouponViewService couponViewService, ILookupService lookupService, ILineItemService lineItemService, IFixCartService fixCartService, ICountryService countryService, IRegionCodeProvider regionCodeProvider, IImageService imageService) { if (cartRepository == null) { throw new ArgumentNullException("cartRepository"); } if (damProvider == null) { throw new ArgumentNullException("damProvider"); } if (cartViewModelFactory == null) { throw new ArgumentNullException("cartViewModelFactory"); } if (couponViewService == null) { throw new ArgumentNullException("couponViewService"); } if (lookupService == null) { throw new ArgumentNullException("lookupService"); } if (lineItemService == null) { throw new ArgumentNullException("lineItemService"); } if (fixCartService == null) { throw new ArgumentNullException("fixCartService"); } if (countryService == null) { throw new ArgumentNullException("fixCartService"); } if (regionCodeProvider == null) { throw new ArgumentNullException("regionCodeProvider"); } if (imageService == null) { throw new ArgumentNullException("imageService"); } CartRepository = cartRepository; CartViewModelFactory = cartViewModelFactory; CouponViewService = couponViewService; LookupService = lookupService; LineItemService = lineItemService; FixCartService = fixCartService; CountryService = countryService; RegionCodeProvider = regionCodeProvider; ImageService = imageService; }
public PartnerTracingViewModel(ISettings settings, IDialogService dialogService, IPartnerTracingService tracingService, IDashboardService dashboardService, ILookupService lookupService) { _settings = settings; _dialogService = dialogService; _tracingService = tracingService; _dashboardService = dashboardService; _lookupService = lookupService; }
public AccountServiceTest() { _accountService = BrokerService.Container.Resolve <IAccountsService>(); _lookupService = BrokerService.Container.Resolve <ILookupService>(); }
public LookupsController(IUnitOfWork unitOfWork, ILookupService lookupService) { _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); _lookupService = lookupService ?? throw new ArgumentNullException(nameof(unitOfWork)); }
/// <summary> /// Initializes a new instance of the <see cref="LookupController"/> class. /// </summary> /// <param name="container">The container.</param> public LookupController(IServiceProvider container) : base(container) { _lookupService = container.GetService <ILookupService>(); }
/// <summary> /// Initializes a new instance of the <see cref="TaskController"/> class. /// </summary> /// <param name="mapper">The mapper.</param> /// <param name="userStore">The user store.</param> /// <param name="taskService">The task service.</param> /// <param name="projectService">The project service.</param> /// <param name="lookupService">The lookup service.</param> public TaskController(IMapper mapper, IPMUserStoreService userStore, ITaskService taskService, IProjectService projectService, ILookupService lookupService) : base(mapper, userStore) { this.taskService = taskService; this.projectService = projectService; this.lookupService = lookupService; }
public CaseController(ILookupService lookupService, ICrimeCaseService CaseService) { this.lookupService = lookupService; this.CaseService = CaseService; }
/// <summary> /// Initializes a new instance of the <see cref="AdministrationController"/> class. /// </summary> /// <param name="lookUpService">The look up service.</param> /// <param name="generalService">The general service.</param> public AdministrationController(ILookupService lookUpService, IGeneralService generalService, ISessionStateService session) { this.lookUpService = lookUpService; this.generalService = generalService; this.session = session; }
public OpportunityBusiness(IOpportunityService opportunityService, ILookupService lookupService, IMapper mapper) { _opportunityService = opportunityService; _lookupService = lookupService; _mapper = mapper; }
private IBookingService LookupClientStub(string userID) { ClientMetadata clientMd = null; bool contacted = false; while (!contacted) { try { //TODO: Navaneeth: here Log.Show(_userName, "#1"); clientMd = _activeServer.Lookup(userID); Log.Show(_userName, "#2"); contacted = true; } catch (Exception) { //server has failed //update server reference _activeServer = Helper.GetRandomServer(_servers); } } IBookingService client = null; if (clientMd != null) { String connectionString = "tcp://" + clientMd.IP_Addr + ":" + clientMd.Port + "/" + clientMd.Username + "/" + Common.Constants.BOOKING_SERVICE_NAME; //Log.Debug(_userName, "Looking up participant stub: " + connectionString); try { client = (IBookingService)Activator.GetObject( typeof(ILookupService), connectionString); } catch (SocketException e) { Log.Show(_userName, "ERROR: Could not connect to client: " + clientMd.Username + ". Exception: " + e); //TODO: do something? } } return client; }
public HomeController(ISecurityService securityService, ILookupService lookupService) { _lookupService = lookupService; }
public ProductSpecificationsViewService(IComposerContext context, ILocalizationProvider localizationProvider, ILookupService lookupService) { if (localizationProvider == null) { throw new ArgumentNullException(nameof(localizationProvider)); } if (lookupService == null) { throw new ArgumentNullException(nameof(lookupService)); } Context = context ?? throw new ArgumentNullException(nameof(context)); ProductFormatter = new ProductFormatter(localizationProvider, lookupService); }
public ClientDashboardViewModel(IDashboardService dashboardService, IDialogService dialogService, IInterviewService interviewService, ISettings settings, ILookupService lookupService) { _dashboardService = dashboardService; _dialogService = dialogService; _interviewService = interviewService; _settings = settings; _lookupService = lookupService; }
public PersonController(IPersonService PersonService, ILookupService lookupService) { this.PersonService = PersonService; this.LookupService = lookupService; }
public HomeController(ILookupService lookup, IBlobService blobService, ICacheAccessor cacheAccessor) { _lookup = lookup; _blobService = blobService; _cacheAccessor = cacheAccessor; }
public BatchController(IBatchService BatchService, ILookupService lookupService) : base() { this._BatchService = BatchService; this._lookupService = lookupService; }
public AdminController(ILookupService lookupService, IAdminService adminService) { _lookupService = lookupService; _adminService = adminService; }
public CostCalculationService(IDataRepository repository, ILoggingService loggingService, ILookupService securityService) { _repository = repository; _loggingService = loggingService; _securityService = securityService; }
public MinutesOfSessionController(ICircuitService CircuitService, IDefectsService DefectsService, ISessionService SessionService, ILookupService LookupService, ITextPredectionsService TextPredectionsService, ICrimeCaseService CaseService, ICircuitMembersService CircuitMembersService) { this.DefectsService = DefectsService; this.SessionService = SessionService; this.LookupService = LookupService; this.TextPredectionsService = TextPredectionsService; this.CaseService = CaseService; this.CircuitMembersService = CircuitMembersService; this.CircuitService = CircuitService; }
public WitnessesController(IWitnessesService witnessrService, ILookupService LookupService, IPersonService PersonService) { this.WitnessService = witnessrService; this.LookupService = LookupService; this.PersonService = PersonService; }
public JogoService(IOptions <MyGamesAPIConfig> myGamesAPIConfig, ILookupService lookupService) { _myGamesAPIConfig = myGamesAPIConfig.Value; _lookupService = lookupService; }
public UserController(ILookupService lookupService, IPersonService PersonService, IUserService SecurityUserService) { this.lookupService = lookupService; this.PersonService = PersonService; this.SecurityUserService = SecurityUserService; }
public UsersController(IUserService service, ILookupService lookupService) : base(service) { _lookupService = lookupService ?? throw new ArgumentNullException(nameof(lookupService)); }
public PermissionService(IGroupDataContext dataContext, IPlatformServiceBusService platformServiceBusService, ILookupService lookupService) { _dataContext = dataContext; _platformServiceBusService = platformServiceBusService; _lookupService = lookupService; }
public AreaController(IAreaService ObjService, ILookupService lookupService) : base() { this._ObjService = ObjService; this._lookupService = lookupService; }
public LookupController(ILookupService service) { _service = service; }
void IClientMonitor.StartMonitoring() { _activeServer = Helper.GetRandomServer(_servers); while (true) { //Monitor all monitored reservations foreach(Reservation res in _monitoredReservations.Values){ //Only check a reservation if some participant is not online if (res.ClientStubs.Count < (res.Participants.Count - 1)) { //copy client stubs dictionary (to avoid unecessary synchronization) Dictionary<string, IBookingService> clientStubs = new Dictionary<string, IBookingService>(res.ClientStubs); foreach (string userID in res.Participants) { //If we do not have the stub of a given participant, check for it if (!userID.Equals(_userName) && !clientStubs.ContainsKey(userID)) { Log.Debug(_userName, "Verifying if offline participant " + userID + " of reservation " + res.ReservationID + " came online."); IBookingService client = LookupClientStub(userID); if (client != null) { Log.Show(_userName, "Participant " + userID + " of reservation " + res.ReservationID + " has just came online."); _msgDispatch.ClientConnected(userID, client); //Lock here res.ClientStubs[userID] = client; //Unlock here } } } } } Thread.Sleep(SERVER_QUERY_TIME); } }
public LookupController(ILookupService lookupService) { _lookupService = lookupService; }
public void Initialize() { _lookupService = new LookupService(); }
public DataTypeController(ILookupService lookupService) { _lookupService = lookupService; }
/// <summary> /// CheckoutService constructor /// </summary> /// <param name="cartRepository">The repository for accessing cart data</param> /// <param name="cartService"></param> /// <param name="composerJsonSerializer">The json serializer</param> /// <param name="cartViewModelFactory"></param> /// <param name="lookupService"></param> /// <param name="addressRepository"></param> /// <param name="shippingMethodViewService"></param> /// <param name="imageService"></param> /// <param name="fulfillmentMethodRepository"></param> /// <param name="viewModelMapper"></param> /// <param name="lineItemViewModelFactory"></param> /// <param name="paymentRepository"></param> public CheckoutService( ICartRepository cartRepository, ICartService cartService, IComposerJsonSerializer composerJsonSerializer, ICartViewModelFactory cartViewModelFactory, ILookupService lookupService, IAddressRepository addressRepository, IShippingMethodViewService shippingMethodViewService, IImageService imageService, IFulfillmentMethodRepository fulfillmentMethodRepository, IViewModelMapper viewModelMapper, ILineItemViewModelFactory lineItemViewModelFactory, IPaymentRepository paymentRepository) { if (cartRepository == null) { throw new ArgumentNullException(ArgumentNullMessageFormatter.FormatErrorMessage(nameof(cartRepository))); } if (cartService == null) { throw new ArgumentNullException(ArgumentNullMessageFormatter.FormatErrorMessage(nameof(cartService))); } if (composerJsonSerializer == null) { throw new ArgumentNullException(ArgumentNullMessageFormatter.FormatErrorMessage(nameof(ComposerJsonSerializer))); } if (cartViewModelFactory == null) { throw new ArgumentNullException(ArgumentNullMessageFormatter.FormatErrorMessage(nameof(cartViewModelFactory))); } if (lookupService == null) { throw new ArgumentNullException(ArgumentNullMessageFormatter.FormatErrorMessage(nameof(LookupService))); } if (addressRepository == null) { throw new ArgumentNullException(ArgumentNullMessageFormatter.FormatErrorMessage(nameof(addressRepository))); } if (shippingMethodViewService == null) { throw new ArgumentNullException(ArgumentNullMessageFormatter.FormatErrorMessage(nameof(shippingMethodViewService))); } if (imageService == null) { throw new ArgumentNullException(ArgumentNullMessageFormatter.FormatErrorMessage(nameof(imageService))); } if (fulfillmentMethodRepository == null) { throw new ArgumentNullException(ArgumentNullMessageFormatter.FormatErrorMessage(nameof(fulfillmentMethodRepository))); } if (viewModelMapper == null) { throw new ArgumentNullException(ArgumentNullMessageFormatter.FormatErrorMessage(nameof(viewModelMapper))); } if (lineItemViewModelFactory == null) { throw new ArgumentNullException(ArgumentNullMessageFormatter.FormatErrorMessage(nameof(lineItemViewModelFactory))); } if (paymentRepository == null) { throw new ArgumentNullException(ArgumentNullMessageFormatter.FormatErrorMessage(nameof(paymentRepository))); } CartRepository = cartRepository; CartService = cartService; ComposerJsonSerializer = composerJsonSerializer; CartViewModelFactory = cartViewModelFactory; LookupService = lookupService; AddressRepository = addressRepository; ShippingMethodViewService = shippingMethodViewService; ImageService = imageService; FulfillmentMethodRepository = fulfillmentMethodRepository; ViewModelMapper = viewModelMapper; LineItemViewModelFactory = lineItemViewModelFactory; PaymentRepository = paymentRepository; _updateOperations = new Dictionary <string, UpdateOperation>(); RegisterCartUpdateOperation <AddressViewModel>("ShippingAddress", UpdateShippingAddress, 1); RegisterCartUpdateOperation <RegisteredShippingAddressViewModel>("ShippingAddressRegistered", UpdateRegisteredShippingAddress, 1); RegisterCartUpdateOperation <CustomerSummaryViewModel>("GuestCustomerInfo", UpdateCustomer, 2); RegisterCartUpdateOperation <BillingAddressViewModel>("BillingAddress", UpdateBillingAddress, 3); RegisterCartUpdateOperation <RegisteredBillingAddressViewModel>("BillingAddressRegistered", UpdateRegisteredBillingAddress, 3); RegisterCartUpdateOperation <ShippingMethodViewModel>("ShippingMethod", UpdateShippingMethod, 4); }
public LawyersDefectsController(IDefectsService PartiesService, ICrimeCaseService CaseService, ILookupService LookupService, IPersonService PersonService) { this.PartiesService = PartiesService; this.CaseService = CaseService; this.LookupService = LookupService; this.PersonService = PersonService; }
public SubjectController(ISubjectService SubjectService, ILookupService lookupService) : base() { this._SubjectService = SubjectService; this._lookupService = lookupService; }
// // Initialize once to prevent re-querying DB // public Defaults( ILookupService lServ, IConfigService cfg, ITransportProvidersService tpServ, UserManager <MacheteUser> userManager, RoleManager <MacheteRole> roleManager ) { cfgServ = cfg; this.lServ = lServ; this.tpServ = tpServ; hoursNum = new SelectList(new[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16" } .Select(x => new LookupNumber { Value = x, Text = x }), "Value", "Text", "7" ); daysNum = new SelectList(new[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14" } .Select(x => new LookupNumber { Value = x, Text = x }), "Value", "Text", "7" ); skillLevelNum = new SelectList(new[] { "0", "1", "2", "3" } .Select(x => new SelectListItem { Value = x, Text = x }), "Value", "Text", "0"); categories = new SelectList( new[] { LCategory.maritalstatus, LCategory.race, LCategory.neighborhood, LCategory.gender, LCategory.transportmethod, LCategory.transportTransactType, LCategory.countryoforigin, LCategory.activityName, LCategory.activityType, LCategory.eventtype, LCategory.orderstatus, LCategory.emplrreference, LCategory.worktype, LCategory.memberstatus, LCategory.skill, LCategory.emailstatus, LCategory.emailTemplate, LCategory.housingType, LCategory.vehicleTypeID, LCategory.workerRating, LCategory.incomeSourceID, LCategory.usBornChildren, LCategory.educationLevel, LCategory.farmLabor, LCategory.training, LCategory.income } .Select(x => new SelectListItem { Value = x, Text = x }), "Value", "Text", LCategory.activityName); yesnoEN = new List <SelectListItem>(); yesnoEN.Add(new SelectListItem { Selected = false, Text = "No", Value = "false" }); yesnoEN.Add(new SelectListItem { Selected = false, Text = "Yes", Value = "true" }); yesnoES = new List <SelectListItem>(); yesnoES.Add(new SelectListItem { Selected = false, Text = "No", Value = "false" }); yesnoES.Add(new SelectListItem { Selected = false, Text = "Sí", Value = "true" }); _userManager = userManager; _roleManager = roleManager; }
public ConfigController(ILookupService serv) { this.serv = serv; }