Example #1
0
 public LineHandler(IWebhookDispatch webhookDispatch, ArcConfig config, IArcLog arcLog, IAlarmLog alarmLog)
 {
     this.webhookDispatch = webhookDispatch;
     this.config          = config;
     this.arcLog          = arcLog;
     this.alarmLog        = alarmLog;
 }
Example #2
0
 public ArcServer(ILineHandlerFactory lineHandlerFactory, IPEndPoint endpoint, Socket socket, ArcConfig config, IArcLog arcLog)
 {
     this.lineHandlerFactory = lineHandlerFactory;
     this.endpoint           = endpoint;
     this.socket             = socket;
     this.config             = config;
     this.arcLog             = arcLog;
     lineHandlers            = new List <ILineHandler>();
 }
Example #3
0
 public GenericWebhookDispatch(ArcConfig config, IAccountsHandler accountsHandler, IArcLog arcLog)
 {
     if (config.WebhookEnabled)
     {
         configured = true;
         restClient = new RestClient(config.WebhookUrl);
     }
     this.accountsHandler = accountsHandler;
     this.arcLog          = arcLog;
 }
Example #4
0
 public AccountsHandler(ArcConfig config, IArcLog arcLog)
 {
     this.config = config;
     this.arcLog = arcLog;
     LoadAccounts();
 }
Example #5
0
 public ArcConsole(IArcServer arcServer, IArcLog arcLog)
 {
     this.arcServer = arcServer;
     this.arcLog    = arcLog;
 }