public StudentController(IStudentAppService studentAppService, IEnvironmentAppService environmentAppService,
                          IApplicationUserAppService applicationUserAppService)
 {
     _studentAppService         = studentAppService;
     _environmentAppService     = environmentAppService;
     _applicationUserAppService = applicationUserAppService;
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 4
0
 public StudentController(IStudentAppService service,
                          IMemoryCache cache, INotificationHandler <DomainNotification> notifications)
 {
     _service       = service;
     _cache         = cache;
     _notifications = notifications as DomainNotificationHandler;
 }
Ejemplo n.º 5
0
 public StudentController(IStudentAppService studentAppService,
                          INotificationHandler <DomainNotification> notifications
                          )
 {
     _domainNotificationHandler = (DomainNotificationHandler)notifications;
     _studentAppService         = studentAppService;
 }
 public StudentsController(
     IStudyGroupAppService studyGroupAppService,
     IStudentAppService studentAppService)
 {
     _studyGroupService = studyGroupAppService;
     _studentService    = studentAppService;
 }
Ejemplo n.º 7
0
 /// <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;
 }
Ejemplo n.º 9
0
 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;
 }
Ejemplo n.º 11
0
        /// <summary>
        /// 打印结果
        /// </summary>
        protected virtual void PrintResult()
        {
            //从容器中解析出对象(可以理解为根生命域(the “root lifetime scope”)
            //这种方式解析出的对象,其生命周期与程序同样长,多了之后可能会造成内存溢出,真实开发场景并不建议使用
            IStudentAppService stuService = RayContainer.AutofacRootScope.Resolve <IStudentAppService>();
            string             name       = stuService.GetStuName(1);

            Console.WriteLine($"输出:{name}");
        }
Ejemplo n.º 12
0
 public ClassHourStatisticsAppService(
     IRepository <SignInRecord, string> signInRepository,
     ICategorysAppService categorysAppService,
     IStudentAppService studentAppService)
 {
     this._signInRepository    = signInRepository;
     this._categorysAppService = categorysAppService;
     this._studentAppService   = studentAppService;
 }
Ejemplo n.º 13
0
 public StudentController(
     INotificationHandler <DomainNotification> notifications,
     IMediatorHandler mediator,
     IStudentAppService studentAppService, ILogger logger) :
     base(notifications, mediator)
 {
     _studentAppService = studentAppService;
     _logger            = logger;
 }
Ejemplo n.º 14
0
 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;
 }
Ejemplo n.º 16
0
 public StudentSubjectsController(IStudentSubjectsAppService studentSubjectsApp,
                                  ICourseSubjectsAppService courseSubjectApp,
                                  IStudentAppService studentApp,
                                  IGradeAppService gradeApp)
 {
     _studentSubjectsApp = studentSubjectsApp;
     _studentApp         = studentApp;
     _courseSubjectApp   = courseSubjectApp;
     _gradeApp           = gradeApp;
 }
Ejemplo n.º 17
0
 /// <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;
 }
Ejemplo n.º 18
0
 public HomeWorksController(
     IHomeWorkAppService homeWorkService,
     IStudentAppService studentService,
     IAcademicSubjectAppService subjectService,
     IUserAppService userService)
 {
     _homeWorkService = homeWorkService;
     _studentService  = studentService;
     _subjectService  = subjectService;
     _userService     = userService;
 }
Ejemplo n.º 19
0
 public RatingController(
     IStudentAppService studentAppService,
     IAcademicSubjectScoreAppService scoreService,
     IUserAppService userService,
     IStudyGroupAppService studyGroupService)
 {
     _studentService    = studentAppService;
     _scoreService      = scoreService;
     _userService       = userService;
     _studyGroupService = studyGroupService;
 }
Ejemplo n.º 20
0
 public MessageController(IUserAppService userAppService,
                          IMessageAppService messageAppService,
                          IStudentAppService studentAppService,
                          ICourseModuleAppService courseModuleAppService)
     : base(userAppService)
 {
     this._userAppService         = userAppService;
     this._studentAppService      = studentAppService;
     this._messageAppService      = messageAppService;
     this._courseModuleAppService = courseModuleAppService;
 }
Ejemplo n.º 21
0
 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();
        }
Ejemplo n.º 23
0
 public SignInRecordAppService(
     IRepository <SignInRecord, string> signInRepository,
     ICategorysAppService categorysAppService,
     IStudentAppService studentAppService,
     ITeacherCourseArrangeAppService teacherCourseArrangeAppService
     )
 {
     this._signInRepository               = signInRepository;
     this._categorysAppService            = categorysAppService;
     this._studentAppService              = studentAppService;
     this._teacherCourseArrangeAppService = teacherCourseArrangeAppService;
 }
Ejemplo n.º 24
0
 /// <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;
 }
Ejemplo n.º 25
0
 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;
 }
Ejemplo n.º 27
0
        protected override void PrintResult()
        {
            string name = "";

            try
            {
                IStudentAppService stuService = RayContainer.AutofacRootScope.Resolve <IStudentAppService>();
                name = stuService.GetStuName(1);
            }
            catch (Exception)
            {
            }
            Console.WriteLine($"输出:{name}");
        }
Ejemplo n.º 28
0
 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;
        }
Ejemplo n.º 30
0
        /// <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;
        }