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]; }
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; }
public TestMcrRepository() { this.mcrRepository = new ReleaseMcrFactory().createMcrRepository(); }
public StudentsConsolePresenter(McrRepository mcrRepository) { this.mcrRepository = mcrRepository; }
public SessionManagementPresenter(McrRepository mcrRepository) { this.mcrRepository = mcrRepository; }