/// <inheritdoc /> /// <summary> /// Initializes a new instance of the <see cref="T:Spectrum.Content.BaseController" /> class. /// </summary> /// <param name="loggingService">The logging service.</param> /// <param name="forumManager"></param> public ForumController( ILoggingService loggingService, IForumManager forumManager) : base(loggingService) { this.forumManager = forumManager; }
private BridgeReal() { _logger = ForumLogger.GetInstance(); _logger.Write(ForumLogger.TYPE_INFO, "Initializing Driver"); UM = UserManager.Instance; _logger.Write(ForumLogger.TYPE_INFO, "User Manager initialized successfully"); FM = ForumManager.getInstance(); _logger.Write(ForumLogger.TYPE_INFO, "Forum Manager initialized successfully"); MM = MessageManager.Instance(); _logger.Write(ForumLogger.TYPE_INFO, "Message Manager initialized successfully"); _logger.Write(ForumLogger.TYPE_INFO, "Initializing Data"); initializingDemoRunData(); _logger.Write(ForumLogger.TYPE_INFO, "Data initialized successfully"); }
public ForumSystem() { _fm = new ForumManager(); _um = new UserManager(); _testFlag = false; _db = new DB(); try { setup(); } catch (ShouldNotHappenException) { throw new Exception("DB is badly maintained and is irrelevant."); } catch (Exception) { throw new Exception("Could not load data from DB."); } }
public ChannelsManager(IForumManager forumManager) { this.Manager = forumManager; }
public ForumController(IUnitOfWork unitofWork, IMapper mapper, IForumManager forumManager) { _unitofWork = unitofWork; _mapper = mapper; _forumManager = forumManager; }
public ForumController(IForumManager forumManager, IMyUserManager myUserManager, ILanguageManager languageManager) : base(myUserManager,languageManager) { this.forumManager = forumManager; }
public ForumSystem(bool isTest) { _fm = new ForumManager(); _um = new UserManager(); _testFlag = true; }