diff --git a/src/Packaging.NServiceBus.RabbitMQ/packages.config b/src/Packaging.NServiceBus.RabbitMQ/packages.config
index 50c8be6..7a4f8db 100644
--- a/src/Packaging.NServiceBus.RabbitMQ/packages.config
+++ b/src/Packaging.NServiceBus.RabbitMQ/packages.config
@@ -2,6 +2,6 @@
-
+
\ No newline at end of file
diff --git a/src/Packaging.NServiceBus.SQLServer/packages.config b/src/Packaging.NServiceBus.SQLServer/packages.config
index 09affe6..bbadd58 100644
--- a/src/Packaging.NServiceBus.SQLServer/packages.config
+++ b/src/Packaging.NServiceBus.SQLServer/packages.config
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/src/ServiceControl.Transports.AzureStorageQueues/ServiceControl.Transports.AzureStorageQueues.csproj b/src/ServiceControl.Transports.AzureStorageQueues/ServiceControl.Transports.AzureStorageQueues.csproj
index 69b20ad..b8e935d 100644
--- a/src/ServiceControl.Transports.AzureStorageQueues/ServiceControl.Transports.AzureStorageQueues.csproj
+++ b/src/ServiceControl.Transports.AzureStorageQueues/ServiceControl.Transports.AzureStorageQueues.csproj
@@ -49,7 +49,7 @@
- 8.1.0
+ 8.1.1
diff --git a/src/ServiceControl.Transports.RabbitMQ/ServiceControl.Transports.RabbitMQ.csproj b/src/ServiceControl.Transports.RabbitMQ/ServiceControl.Transports.RabbitMQ.csproj
index 37dc591..19c6eac 100644
--- a/src/ServiceControl.Transports.RabbitMQ/ServiceControl.Transports.RabbitMQ.csproj
+++ b/src/ServiceControl.Transports.RabbitMQ/ServiceControl.Transports.RabbitMQ.csproj
@@ -5,7 +5,7 @@
-
+
diff --git a/src/ServiceControl.Transports.SQLServer/QueueLengthProvider.cs b/src/ServiceControl.Transports.SQLServer/QueueLengthProvider.cs
index 7864f7f..5cc39da 100644
--- a/src/ServiceControl.Transports.SQLServer/QueueLengthProvider.cs
+++ b/src/ServiceControl.Transports.SQLServer/QueueLengthProvider.cs
@@ -41,7 +41,7 @@ public void Process(EndpointInstanceId endpointInstanceId, EndpointMetadataRepor
var localAddress = metadataReport.LocalAddress;
var sqlTable = SqlTable.Parse(localAddress, defaultSchema);
-
+
tableNames.AddOrUpdate(endpointInputQueue, _ => sqlTable, (_, currentSqlTable) =>
{
if (currentSqlTable.Equals(sqlTable) == false)
@@ -59,7 +59,7 @@ public void Process(EndpointInstanceId endpointInstanceId, TaggedLongValueOccurr
{
//HINT: Sql server endpoints do not support endpoint level queue length monitoring
}
-
+
public Task Start()
{
stop = new CancellationTokenSource();
@@ -110,7 +110,7 @@ void UpdateQueueLengthStore()
{
DateTicks = nowTicks,
Value = tableSizes.TryGetValue(tableNamePair.Value, out var size) ? size : 0
- }},
+ }},
tableNamePair.Key);
}
}
@@ -144,24 +144,25 @@ async Task UpdateChunk(SqlConnection connection, KeyValuePair[] c
using (var command = new SqlCommand(query, connection))
{
- var reader = await command.ExecuteReaderAsync(token).ConfigureAwait(false);
-
- foreach (var chunkPair in chunk)
+ using (var reader = await command.ExecuteReaderAsync(token).ConfigureAwait(false))
{
- await reader.ReadAsync(token).ConfigureAwait(false);
+ foreach (var chunkPair in chunk)
+ {
+ await reader.ReadAsync(token).ConfigureAwait(false);
- var queueLength = reader.GetInt32(0);
+ var queueLength = reader.GetInt32(0);
- if (queueLength == -1)
- {
- Logger.Warn($"Table {chunkPair.Key} does not exist.");
- }
- else
- {
- tableSizes.TryUpdate(chunkPair.Key, queueLength, chunkPair.Value);
- }
+ if (queueLength == -1)
+ {
+ Logger.Warn($"Table {chunkPair.Key} does not exist.");
+ }
+ else
+ {
+ tableSizes.TryUpdate(chunkPair.Key, queueLength, chunkPair.Value);
+ }
- await reader.NextResultAsync(token).ConfigureAwait(false);
+ await reader.NextResultAsync(token).ConfigureAwait(false);
+ }
}
}
}
diff --git a/src/ServiceControl.Transports.SQLServer/ServiceControl.Transports.SQLServer.csproj b/src/ServiceControl.Transports.SQLServer/ServiceControl.Transports.SQLServer.csproj
index 016d2d8..0dd1a11 100644
--- a/src/ServiceControl.Transports.SQLServer/ServiceControl.Transports.SQLServer.csproj
+++ b/src/ServiceControl.Transports.SQLServer/ServiceControl.Transports.SQLServer.csproj
@@ -55,7 +55,7 @@
- 4.1.0
+ 4.1.1