Product
.NET SDK
Azure Iot Operations version
N/A
What happened?
In the connector worker class, when an asset attempts to forward a dataset with a destination of the state store, it creates and then disposes the state store client. We should probably just create this client once and cache it for later requests.
|
await using StateStoreClient stateStoreClient = new(_applicationContext, _mqttClient); |
List the steps to reproduce
No response
Code of Conduct
Product
.NET SDK
Azure Iot Operations version
N/A
What happened?
In the connector worker class, when an asset attempts to forward a dataset with a destination of the state store, it creates and then disposes the state store client. We should probably just create this client once and cache it for later requests.
iot-operations-sdks/dotnet/src/Azure.Iot.Operations.Connector/ConnectorWorker.cs
Line 409 in f689997
List the steps to reproduce
No response
Code of Conduct