Exemplo n.º 1
0
        public void InsertSessionFilter(int index, ISessionFilter filter)
        {
            if (filter == null)
            {
                throw new ArgumentNullException("filter");
            }

            _filters.Insert(index, filter);
        }
Exemplo n.º 2
0
        public void AddSessionFilter(ISessionFilter filter)
        {
            if (filter == null)
            {
                throw new ArgumentNullException("filter");
            }

            _filters.Add(filter);
        }
        ISessionFilter Next()
        {
            ISessionFilter nextFilter = NextFilter;

            if (nextFilter != null)
            {
                return(nextFilter);
            }

            return(NullFilter);
        }
Exemplo n.º 4
0
 public DefaultSessionFilterChain(SessionBase session,
                                  FilterChainMode filterChainMode, ISessionFilter operateFilter)
 {
     _dispatchFilter  = SessionBase.DISPATCH_FILTER;
     _parentSession   = session;
     _appFilters      = new List <ISessionFilter>(_parentSession._filters);
     _decodeFilter    = _parentSession._packetDecoderFilter;
     _operateFilter   = operateFilter;
     _filterChainMode = filterChainMode;
     _handlerFilter   = session._handlerFilter;
     _cursor          = _filterChainMode == FilterChainMode.Send ? _appFilters.Count : INIT_CURSOR;
 }
Exemplo n.º 5
0
        public AssessmentController(IMapper<CreateModel, Assessment> createModelToAssessmentMapper,
            IGenericRepository genericRepository,
            IAssessmentRepository assessmentRepository,
            StudentAssessmentsToAssessmentResultModelMapper studentAssessmentsToAssessmentResultModelMapper,
            IMapper<Assessment, EnterResultsModel> assessmentToEnterResultsModelMapper,
            EnterResultsStudentModelToStudentAssessmentMapper enterResultsStudentModelToStudentAssessmentMapper,
			IMapper<Assessment, IndexModel> assessmentToAssessmentIndexModelMapper,
            ProfilePhotoUrlFetcher profilePhotoUrlFetcher, ILearningStandardRepository learningStandardRepository, ISessionFilter sessionFilter)
        {
            _createModelToAssessmentMapper = createModelToAssessmentMapper;
            _genericRepository = genericRepository;
            _assessmentRepository = assessmentRepository;
            _studentAssessmentsToAssessmentResultModelMapper = studentAssessmentsToAssessmentResultModelMapper;
            _assessmentToEnterResultsModelMapper = assessmentToEnterResultsModelMapper;
            _enterResultsStudentModelToStudentAssessmentMapper = enterResultsStudentModelToStudentAssessmentMapper;
            _profilePhotoUrlFetcher = profilePhotoUrlFetcher;
             _learningStandardRepository = learningStandardRepository;
            _sessionFilter = sessionFilter;
            _assessmentToAssessmentIndexModelMapper = assessmentToAssessmentIndexModelMapper;
        }
Exemplo n.º 6
0
 public AssessmentController(IMapper <CreateModel, Assessment> createModelToAssessmentMapper,
                             IGenericRepository genericRepository,
                             IAssessmentRepository assessmentRepository,
                             StudentAssessmentsToAssessmentResultModelMapper studentAssessmentsToAssessmentResultModelMapper,
                             IMapper <Assessment, EnterResultsModel> assessmentToEnterResultsModelMapper,
                             EnterResultsStudentModelToStudentAssessmentMapper enterResultsStudentModelToStudentAssessmentMapper,
                             IMapper <Assessment, IndexModel> assessmentToAssessmentIndexModelMapper,
                             ProfilePhotoUrlFetcher profilePhotoUrlFetcher, ILearningStandardRepository learningStandardRepository, ISessionFilter sessionFilter)
 {
     _createModelToAssessmentMapper = createModelToAssessmentMapper;
     _genericRepository             = genericRepository;
     _assessmentRepository          = assessmentRepository;
     _studentAssessmentsToAssessmentResultModelMapper   = studentAssessmentsToAssessmentResultModelMapper;
     _assessmentToEnterResultsModelMapper               = assessmentToEnterResultsModelMapper;
     _enterResultsStudentModelToStudentAssessmentMapper = enterResultsStudentModelToStudentAssessmentMapper;
     _profilePhotoUrlFetcher     = profilePhotoUrlFetcher;
     _learningStandardRepository = learningStandardRepository;
     _sessionFilter = sessionFilter;
     _assessmentToAssessmentIndexModelMapper = assessmentToAssessmentIndexModelMapper;
 }
Exemplo n.º 7
0
 public StudentAttendancePercentageMapper(ISessionFilter sessionFilter)
 {
     _sessionFilter = sessionFilter;
 }
Exemplo n.º 8
0
 protected ISessionFilterChain GetSessionFilterChain(
     ISessionFilter operateFilter, FilterChainMode filterChainMode)
 {
     return(new DefaultSessionFilterChain(this, filterChainMode, operateFilter));
 }
Exemplo n.º 9
0
 public void RemoveSessionFilter(ISessionFilter filter)
 {
     _filters.Remove(filter);
 }
Exemplo n.º 10
0
 protected SessionBase(SessionType sessionType)
 {
     _sessionType         = sessionType;
     _packetDecoderFilter = PacketDecoderFilter.NewInstance(this);
 }