Beispiel #1
0
        public SettingsForm(
            LoRConfiguration lorConfiguration,
            WatcherConfiguration watcherConfiguration,
            LoggerSettings loggerSettings,
            CancellationTokenSource tokenSource,
            NotifyIcon trayIcon)
        {
            this.lorConfiguration        = lorConfiguration;
            this.watcherConfiguration    = watcherConfiguration;
            this.loggerSettings          = loggerSettings;
            this.cancellationTokenSource = tokenSource;
            this.trayIcon = trayIcon;

            InitializeComponent();

            using (var stream = File.OpenRead($@"{Directory.GetCurrentDirectory()}\wwwroot\favicon.ico"))
            {
                this.Icon = new Icon(stream);
            }
        }
 public LoRClient(HttpClient httpClient, LoRConfiguration loRWatcherConfiguration, ILogger logger)
 {
     this.httpClient = httpClient;
     this.loRWatcherConfiguration = loRWatcherConfiguration;
     this.logger = logger;
 }