public BREFactory(DispatchException exceptionHandler, DispatchLog logHandler, DispatchRuleResult resultHandler) { this.exceptionHandler = exceptionHandler; this.logHandler = logHandler; this.resultHandler = resultHandler; }
public BRECloneFactory(IRulesDriver rulesDriver, DispatchException exceptionHandler, DispatchLog logHandler, DispatchRuleResult resultHandler) { if (rulesDriver == null) throw new BREException("A non-null IRulesDriver must be passed to BRECloneFactory"); this.rulesDriver = rulesDriver; if (bref == null) bref = new BREFactory(exceptionHandler, logHandler, resultHandler); }
public void LogDispatch(DiscordMember requestor, DiscordMember acceptor = null) { try { var newLog = new DispatchLog(); newLog.RequestorName = requestor.Username; newLog.RequestorOrg = requestor.Guild.Name; newLog.AcceptorName = acceptor.Username; newLog.AcceptorOrg = acceptor.Guild.Name; MultiBotDb.DispatchLog.Add(newLog); MultiBotDb.SaveChanges(); } catch (Exception e) { Console.WriteLine(e); } }
public BRECloneFactory(IRulesDriver rulesDriver, DispatchException exceptionHandler, DispatchLog logHandler, DispatchRuleResult resultHandler) { if (rulesDriver == null) { throw new BREException("A non-null IRulesDriver must be passed to BRECloneFactory"); } this.rulesDriver = rulesDriver; if (bref == null) { bref = new BREFactory(exceptionHandler, logHandler, resultHandler); } }
public BRECloneFactory(IRulesDriver rulesDriver, DispatchException exceptionHandler, DispatchLog logHandler) : this(rulesDriver, exceptionHandler, logHandler, null) { }
public BREFactory(DispatchException exceptionHandler, DispatchLog logHandler): this(exceptionHandler, logHandler, null) {}
public BREFactory(DispatchException exceptionHandler, DispatchLog logHandler) : this(exceptionHandler, logHandler, null) { }
public BRECloneFactory(IRulesDriver rulesDriver, DispatchException exceptionHandler, DispatchLog logHandler):this(rulesDriver, exceptionHandler, logHandler, null) {}