public studentController(IActivityService _activityService,
                          IStudentService _studentService, ICourseService _courseService,
                          IReplyService _replyService, ICommentService _commentService,
                          IStudyService _studyService, IAssignmentService _assignmentService)
 {
     this._activityService   = _activityService;
     this._studentService    = _studentService;
     this._courseService     = _courseService;
     this._replyService      = _replyService;
     this._commentService    = _commentService;
     this._studyService      = _studyService;
     this._assignmentService = _assignmentService;
 }
Example #2
0
 public officeController(ICollegeService _collegeService, IDepartmentService _depertmentService,
                         IStudentService _studentService, ICourseService _courseService,
                         ILecturerService _lecturerService, IReplyService _replyService,
                         ICommentService _commentService, IStudyService _studyService)
 {
     this._collegeService    = _collegeService;
     this._departmentService = _depertmentService;
     this._studentService    = _studentService;
     this._courseService     = _courseService;
     this._lecturerService   = _lecturerService;
     this._replyService      = _replyService;
     this._commentService    = _commentService;
     this._studyService      = _studyService;
 }
Example #3
0
        static void Main(string[] args)
        {
            //通过接口反射出实现类(Assembly),并缓存已使用过的接口
            for (int i = 0; i < 10; i++)
            {
                Task.Run(() =>
                {
                    IStudyService study = CreateImplement.ImplementCreate <IStudyService>();
                    study.Study();

                    ISheepService sheep = CreateImplement.ImplementCreate <ISheepService>();
                    sheep.Sheep();

                    IPalyService paly = CreateImplement.ImplementCreate <IPalyService>();
                    paly.Paly();
                });
            }
            Console.ReadKey();
        }
 public StudyController(IStudyService studyService, IApplyService applyService)
 {
     _studyService = studyService;
     _applyService = applyService;
 }
Example #5
0
 /// <summary>
 /// creates repo for studies
 /// </summary>
 /// <param name="studyService"></param>
 public StudiesController(IStudyService studyService, IMediator mediator)
 {
     this._mediator     = mediator ?? throw new ArgumentNullException(nameof(mediator));
     this._studyService = studyService ?? throw new ArgumentNullException(nameof(studyService));
 }
 public QuestionsController(ILearningSystemData data, IQuestionsService questionsService, IStudyService studyService)
     : base(data)
 {
     this.questionsService = questionsService;
     this.studyService     = studyService;
 }
Example #7
0
 public StudyController(IStudyService StudyService, IChecksumService checksumService, EntityConverterHelper entityConverterHelper)
 {
     _StudyService          = StudyService;
     _checksumService       = checksumService;
     _entityConverterHelper = entityConverterHelper;
 }
Example #8
0
 /// <summary>
 /// Injecting the configuration object to the constructor
 /// </summary>
 /// <param name="studyService"></param>
 /// /// <param name="logger"></param>
 public StudyController(IStudyService studyService, ILoggerManager logger)
 {
     _studyService = studyService;
     _logger       = logger;
 }
 public CreateStudyCommandHandler(IMediator mediator, IStudyService studyService)
 {
     this._mediator     = mediator ?? throw new ArgumentNullException(nameof(mediator));
     this._studyService = studyService ?? throw new ArgumentNullException(nameof(studyService));
 }
 public StudyMaterialController(ILearningSystemData data, IStudyService studyService, ICommentService commentService)
     : base(data)
 {
     this.studyService   = studyService;
     this.commentService = commentService;
 }
 public TestController(ILearningSystemData data, IStudyService studyService)
     : base(data)
 {
     this.studyService = studyService;
 }