public StudentController(IStudentAppService studentAppService, IEnvironmentAppService environmentAppService, IApplicationUserAppService applicationUserAppService) { _studentAppService = studentAppService; _environmentAppService = environmentAppService; _applicationUserAppService = applicationUserAppService; }
public StudentController(IStudentAppService studentAppService, IMemoryCache cache, INotificationHandler <DomainNotification> notifications) { _studentAppService = studentAppService; _cache = cache; // 强类型转换 _notifications = (DomainNotificationHandler)notifications; }
public AutoCompleteController(IStudentAppService studentAppService, IStaffAppService staffAppService, IUserAppService userAppService) : base(userAppService) { this._studentService = studentAppService; this._staffService = staffAppService; this._userAppService = userAppService; }
public StudentController(IStudentAppService service, IMemoryCache cache, INotificationHandler <DomainNotification> notifications) { _service = service; _cache = cache; _notifications = notifications as DomainNotificationHandler; }
public StudentController(IStudentAppService studentAppService, INotificationHandler <DomainNotification> notifications ) { _domainNotificationHandler = (DomainNotificationHandler)notifications; _studentAppService = studentAppService; }
public StudentsController( IStudyGroupAppService studyGroupAppService, IStudentAppService studentAppService) { _studyGroupService = studyGroupAppService; _studentService = studentAppService; }
/// <summary> /// 构造实例 /// </summary> /// <param name="studentAppService"></param> /// <param name="studentCourseArrangeAppService"></param> public ImportStudentCourseArrangeUtil( IStudentAppService studentAppService , IStudentCourseArrangeAppService studentCourseArrangeAppService) { this._studentAppService = studentAppService; this._studentCourseArrangeAppService = studentCourseArrangeAppService; }
public SubjectsController(IUniSubjectAppService subjectsAppService, IProfessorAppService professorAppService , IStudentAppService studentAppService) { _subjectsAppService = subjectsAppService; _professorAppService = professorAppService; _studentAppService = studentAppService; }
public StudentController( IStudentAppService studentAppService, IDomainNotificationHandler <DomainDotification> notifications, IUser user, IStringLocalizer <BaseController> localizer) : base(notifications, user, localizer) { _studentAppService = studentAppService; }
public StudentController(IStudentAppService studentApp, ICourseAppService courseApp, IStudentSubjectsAppService studentSubjectApp) { _studentApp = studentApp; _courseApp = courseApp; _studentSubject = studentSubjectApp; }
/// <summary> /// 打印结果 /// </summary> protected virtual void PrintResult() { //从容器中解析出对象(可以理解为根生命域(the “root lifetime scope”) //这种方式解析出的对象,其生命周期与程序同样长,多了之后可能会造成内存溢出,真实开发场景并不建议使用 IStudentAppService stuService = RayContainer.AutofacRootScope.Resolve <IStudentAppService>(); string name = stuService.GetStuName(1); Console.WriteLine($"输出:{name}"); }
public ClassHourStatisticsAppService( IRepository <SignInRecord, string> signInRepository, ICategorysAppService categorysAppService, IStudentAppService studentAppService) { this._signInRepository = signInRepository; this._categorysAppService = categorysAppService; this._studentAppService = studentAppService; }
public StudentController( INotificationHandler <DomainNotification> notifications, IMediatorHandler mediator, IStudentAppService studentAppService, ILogger logger) : base(notifications, mediator) { _studentAppService = studentAppService; _logger = logger; }
public PayCalculationController( IClassHourStatisticsAppService teacherClassHoursStatisticsAppService , IStudentAppService studentAppService , ICacheManager cacheManager) { this._teacherClassHoursStatisticsAppService = teacherClassHoursStatisticsAppService; this._studentAppService = studentAppService; this._cacheManager = cacheManager; }
public CoursesController(ICourseAppService courseApp, ICourseSubjectsAppService courseSubjectsApp, IStudentAppService studentApp, ITeacherAppService teacherApp) { _courseApp = courseApp; _courseSubjectsApp = courseSubjectsApp; _studentApp = studentApp; _teacherApp = teacherApp; }
public StudentSubjectsController(IStudentSubjectsAppService studentSubjectsApp, ICourseSubjectsAppService courseSubjectApp, IStudentAppService studentApp, IGradeAppService gradeApp) { _studentSubjectsApp = studentSubjectsApp; _studentApp = studentApp; _courseSubjectApp = courseSubjectApp; _gradeApp = gradeApp; }
/// <summary> /// Initializes a new instance of the <see cref="AccountController"/> class. /// </summary> /// <param name="studentService">The student service.</param> /// <param name="typeService">The type service.</param> public AccountController( IStudentAppService studentService, ITypeAppService typeService, IUserAppService userAppService) : base(userAppService) { this._studentService = studentService; this._typeService = typeService; this._userService = userAppService; }
public HomeWorksController( IHomeWorkAppService homeWorkService, IStudentAppService studentService, IAcademicSubjectAppService subjectService, IUserAppService userService) { _homeWorkService = homeWorkService; _studentService = studentService; _subjectService = subjectService; _userService = userService; }
public RatingController( IStudentAppService studentAppService, IAcademicSubjectScoreAppService scoreService, IUserAppService userService, IStudyGroupAppService studyGroupService) { _studentService = studentAppService; _scoreService = scoreService; _userService = userService; _studyGroupService = studyGroupService; }
public MessageController(IUserAppService userAppService, IMessageAppService messageAppService, IStudentAppService studentAppService, ICourseModuleAppService courseModuleAppService) : base(userAppService) { this._userAppService = userAppService; this._studentAppService = studentAppService; this._messageAppService = messageAppService; this._courseModuleAppService = courseModuleAppService; }
public UserAppService( UserManager <User> userManager, RoleManager <Role> roleManager, IStudentAppService studentAppService, ITeacherAppService teacherAppService) { _userManager = userManager; _roleManager = roleManager; _studentService = studentAppService; _teacherService = teacherAppService; }
public override void Run() { //初始化容器,将需要用到的组件添加到容器中 RayContainer.Init(RegisterFunc); IStudentAppService stuService = RayContainer.AutofacRootScope.Resolve <StudentAppService>(); string name = stuService.GetStuName(1); Console.WriteLine(name); PrintComponent(); }
public SignInRecordAppService( IRepository <SignInRecord, string> signInRepository, ICategorysAppService categorysAppService, IStudentAppService studentAppService, ITeacherCourseArrangeAppService teacherCourseArrangeAppService ) { this._signInRepository = signInRepository; this._categorysAppService = categorysAppService; this._studentAppService = studentAppService; this._teacherCourseArrangeAppService = teacherCourseArrangeAppService; }
/// <summary> /// Initializes a new instance of the <see cref="StudentController"/> class. /// </summary> /// <param name="studentService">The student service.</param> /// <param name="assignmentTaskAndSubmission">The assignment task and submission.</param> /// <param name="messageService">The message service.</param> /// <param name="courseModuleService">The course module service.</param> /// <param name="fileService">The file service.</param> /// <param name="basequestionTopicService">The basequestionTopic service.</param> public TaskController( IStudentAppService studentService, IUserAppService userAppService, IAssignmentTaskSubmissionAppService assignmentTaskAndSubmission, IMessageAppService messageService ) { this._studentService = studentService; this._userService = userAppService; this._assignmentTaskAndSubmissionService = assignmentTaskAndSubmission; this._messageService = messageService; }
public AcademicSubjectScoreAppService( IRepository <AcademicSubjectScore, long> academicSubjectScoreRepository, ITeacherAppService teacherService, IStudentAppService studentService, IAcademicSubjectAppService academicSubjectService, IStudyGroupAppService studyGroupAppService) { _academicSubjectScoreRepository = academicSubjectScoreRepository; _teacherService = teacherService; _studentService = studentService; _academicSubjectService = academicSubjectService; _studyGroupService = studyGroupAppService; }
public AcademicSubjectScoresController( IAcademicSubjectScoreAppService scoresService, IStudyGroupAppService studyGroupService, IStudentAppService studentService, ITeacherAppService teacherService, IUserAppService userService) { _scoreService = scoresService; _studentService = studentService; _studyGroupService = studyGroupService; _teacherService = teacherService; _userService = userService; }
protected override void PrintResult() { string name = ""; try { IStudentAppService stuService = RayContainer.AutofacRootScope.Resolve <IStudentAppService>(); name = stuService.GetStuName(1); } catch (Exception) { } Console.WriteLine($"输出:{name}"); }
public CourseArrangeController( ITeacherCourseArrangeAppService teacherCourseArrangeAppService, IStudentCourseArrangeAppService studentCourseArrangeAppService, IStudentAppService studentAppService, ICategorysAppService categoryAppService, IUserAppService userAppService ) { this._teacherCourseArrangeAppService = teacherCourseArrangeAppService; this._studentCourseArrangeAppService = studentCourseArrangeAppService; this._studentAppService = studentAppService; this._categoryAppService = categoryAppService; this._userAppService = userAppService; }
//private readonly UserManager<ApplicationUserViewModel> _userManager; public CulturalExchangeController(/*UserManager<ApplicationUserViewModel> userManager,*/ IApplicationUserAppService applicationUserAppService, ICulturalExchangeAppService culturalExchangeAppService, IStudentAppService studentAppService, ICollegeAppService collegeAppService, IEnvironmentAppService environmentAppService, IAccomodationAppService accomodationAppService, ICollegeTimeAppService collegeTimeAppService, IReceivePaymentCulturalExchangeAppService receivePaymentAppService ) { _applicationUserAppService = applicationUserAppService; _culturalExchangeAppService = culturalExchangeAppService; _studentAppService = studentAppService; _collegeAppService = collegeAppService; _collegeTimeAppService = collegeTimeAppService; //_userManager = userManager; _environmentAppService = environmentAppService; _accomodationAppService = accomodationAppService; _receivePaymentAppService = receivePaymentAppService; }
/// <summary> /// Initializes a new instance of the <see cref="CourseController"/> class. /// </summary> /// <param name="courseModuleService">The course module service.</param> /// /// <param name="courseService">The course service.</param> public CourseController( IStudentAppService studentService, ICourseModuleAppService courseModuleService, IUnitModuleAppService unitModuleService, IQuizAppService quizservice, IQuestionAppService questionService, IAnswerAppService answerService, IUserAppService userAppService) : base(userAppService) { this._courseModuleService = courseModuleService; _unitModuleService = unitModuleService; _quizService = quizservice; _questionService = questionService; _answerService = answerService; _studentService = studentService; _userAppService = userAppService; }