public AspMqttClient(IMqttClientOptions options) { Options = options; client = new MqttFactory().CreateMqttClient(); client.UseApplicationMessageReceivedHandler(OnMessage); _context = new yard_management_dbContext(); }
public Sensor(yard_management_dbContext context) { _context = context; }