private async void ThreadPoolSendTest(object obj) { if (obj is MqttApplicationMessage message) { for (int i = 0; i < 100; i++) { await mqttClient.PublishMessageAsync(message); } } }