/// <summary> /// Initializes a new instance of the <see cref="AccessHandlerManager"/> class /// </summary> /// <param name="context">The <see cref="MainDatabaseContext"/> instance to use</param> /// <param name="creatingAuditLogs">The CreatingAuditLogs event handler used to fill in any missing details. CURRENTLY NOT USED!!!</param> internal AccessHandlerManager(MainDatabaseContext context, CreatingAuditLogsEventHandler creatingAuditLogs = null) { //// if(creatingAuditLogs != null) context.CreatingAuditLogs += creatingAuditLogs; this.questionnaireAccessHandler = new QuestionnaireAccessHandler(context); this.questionnaireFormatAccessHandler = new QuestionnaireFormatAccessHandler(context); this.tagAccessHandler = new TagAccessHandler(context); this.userAccessHandler = new UserAccessHandler(context); this.messageHandler = new MessageHandler(context); this.episodeAccessHandler = new EpisodeAccessHandler(context); this.notificationHandler = new NotificationHandler(context); this.auditHandler = new AuditHandler(context); this.searchHandler = new SearchHandler(context); }
/// <summary> /// Initializes a new instance of the <see cref="AccessHandlerManager"/> class /// </summary> /// <param name="creatingAuditLogs">The CreatingAuditLogs event handler used to fill in any missing details. CURRENTLY NOT USED!!!</param> public AccessHandlerManager(CreatingAuditLogsEventHandler creatingAuditLogs = null) : this(new MainDatabaseContext(), creatingAuditLogs) { }