Example #1
0
 /// <summary>
 /// Creates the worker
 /// </summary>
 /// <param name="logger">The logger</param>
 /// <param name="auraConnect">The aura connect service</param>
 public Worker(ILogger <Worker> logger, IAuraConnectService auraConnect)
 {
     _logger                 = logger;
     _auraConnect            = auraConnect;
     _api                    = new RzChromaBroadcastAPI();
     _api.ConnectionChanged += Api_ConnectionChanged;
     _api.ColorChanged      += Api_ColorChanged;
 }
 /// <summary>
 /// Uses the ASUS device provider
 /// </summary>
 /// <param name="auraConnect">The Aura Connect instance to add the provider to</param>
 public static void UseAsus(this IAuraConnectService auraConnect)
 {
     auraConnect.AddProvider(new AsusDeviceProvider());
 }