public IHifiController Get(HifiDevice device) { if (device.DeviceType != DeviceType.Particle) { throw new NotSupportedException(); } return(new ParticleHifiController(device, opts)); }
public ParticleHifiController(HifiDevice device, IOptions <ParticleConfig> opts) { this.device = device; options = opts.Value; }