Пример #1
0
 public SignController(McrRepository mcrRepository,
     HttpListenerContext client, RollcallServer server, Session session) : base(client, server)
 {
     var encoding = request.ContentEncoding;
     this.mcrRepository = mcrRepository;
     this.session = session;
     identityCookie = request.Cookies[Keys.IDENTITY];
 }
Пример #2
0
        public RollcallServer(Session session, NetStatesManager netStatesQuerier,
                              McrRepository mcrRepository, int qrCodeUpdatedInterval)
        {
            this.qrCodeTokens            = new List <string>();
            this.mcrRepository           = mcrRepository;
            this.session                 = session;
            this.netStatesQuerier        = netStatesQuerier;
            this.countdownNumber         = this.qrCodeUpdatedInterval = qrCodeUpdatedInterval;
            this.countdownTimer          = new Timer(1000);
            this.countdownTimer.Elapsed += (sender, e) => onNextCountDown();

            Log.d(TAG, "Server created for a session (" + session + "), repository's type: " + mcrRepository.GetType());
            setupControllerFactoriesDict();
        }
 public CacheFileMcrRepositoryProxy(McrRepository mcrRepository)
 {
     this.mcrRepository = mcrRepository;
     Log.d(TAG, "Initializing all caches...");
     foreach (var student in mcrRepository.getStudents())
     {
         studentsCache[student.id] = student;
     }
     foreach (var session in mcrRepository.getSessions())
     {
         sessionsCache[session.id] = session;
     }
     Log.d(TAG, "Caches setup successfully. Students: " + studentsCache.Count() +
           ", Sessions: " + sessionsCache.Count());
 }
 public RollcallUserDefinedSessionPresenter(McrRepository mcrRepository)
 {
     this.mcrRepository = mcrRepository;
 }
Пример #5
0
 public TestMcrRepository()
 {
     this.mcrRepository = new ReleaseMcrFactory().createMcrRepository();
 }
Пример #6
0
 public StudentsConsolePresenter(McrRepository mcrRepository)
 {
     this.mcrRepository = mcrRepository;
 }
Пример #7
0
 public SessionManagementPresenter(McrRepository mcrRepository)
 {
     this.mcrRepository = mcrRepository;
 }