diff --git a/Directory.Build.props b/Directory.Build.props index 3879e94f..72bf8fa1 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -17,6 +17,7 @@ true + true latest true enable diff --git a/src/Keda.Scaler.DurableTask.AzureStorage.Test/Extensions/IConfiguration.Extensions.Test.cs b/src/Keda.Scaler.DurableTask.AzureStorage.Test/Extensions/IConfiguration.Extensions.Test.cs index 4d6d9322..0de3d2d8 100644 --- a/src/Keda.Scaler.DurableTask.AzureStorage.Test/Extensions/IConfiguration.Extensions.Test.cs +++ b/src/Keda.Scaler.DurableTask.AzureStorage.Test/Extensions/IConfiguration.Extensions.Test.cs @@ -2,10 +2,6 @@ // Licensed under the MIT License. using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using Google.Protobuf.Collections; using Keda.Scaler.DurableTask.AzureStorage.Extensions; using Microsoft.Extensions.Configuration; diff --git a/src/Keda.Scaler.DurableTask.AzureStorage/DurableTaskAzureStorageScalerService.cs b/src/Keda.Scaler.DurableTask.AzureStorage/DurableTaskAzureStorageScalerService.cs index 2f8b04ea..3499f0fd 100644 --- a/src/Keda.Scaler.DurableTask.AzureStorage/DurableTaskAzureStorageScalerService.cs +++ b/src/Keda.Scaler.DurableTask.AzureStorage/DurableTaskAzureStorageScalerService.cs @@ -8,7 +8,6 @@ using Keda.Scaler.DurableTask.AzureStorage.Common; using Keda.Scaler.DurableTask.AzureStorage.Extensions; using Keda.Scaler.DurableTask.AzureStorage.TaskHub; -using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; diff --git a/src/Keda.Scaler.DurableTask.AzureStorage/TaskHub/AzureStorageTaskHubBrowser.cs b/src/Keda.Scaler.DurableTask.AzureStorage/TaskHub/AzureStorageTaskHubBrowser.cs index 767ae17e..0f620498 100644 --- a/src/Keda.Scaler.DurableTask.AzureStorage/TaskHub/AzureStorageTaskHubBrowser.cs +++ b/src/Keda.Scaler.DurableTask.AzureStorage/TaskHub/AzureStorageTaskHubBrowser.cs @@ -42,8 +42,7 @@ public AzureStorageTaskHubBrowser( } /// - /// Asynchronously attempts to retrieve an for the Task Hub - /// with the given . + /// Asynchronously attempts to retrieve an for the Task Hub with the given name. /// /// The account information for the Azure Storage account. /// The name of the desired Task Hub. @@ -52,7 +51,7 @@ public AzureStorageTaskHubBrowser( /// /// /// A value task that represents the asynchronous operation. The value of the type parameter - /// of the value task contains the monitor for the given Task Hub.. + /// of the value task contains the monitor for the given Task Hub. /// /// is missing information. /// diff --git a/src/Keda.Scaler.DurableTask.AzureStorage/TaskHub/ITaskHubQueueMonitor.cs b/src/Keda.Scaler.DurableTask.AzureStorage/TaskHub/ITaskHubQueueMonitor.cs index 16dff4ab..e6a05e7d 100644 --- a/src/Keda.Scaler.DurableTask.AzureStorage/TaskHub/ITaskHubQueueMonitor.cs +++ b/src/Keda.Scaler.DurableTask.AzureStorage/TaskHub/ITaskHubQueueMonitor.cs @@ -13,17 +13,15 @@ namespace Keda.Scaler.DurableTask.AzureStorage.TaskHub; public interface ITaskHubQueueMonitor { /// - /// Initializes a new instance of the class. + /// Asynchronously fetches the number of messages in queue across the Task Hub to gauge its usage. /// - /// Metadata concerning the Task Hub. - /// A client for accessing the Azure Queue service. - /// A diagnostic logger. - /// - /// , , - /// or is . - /// - /// - /// is less than 1 for . - /// + /// + /// The token to monitor for cancellation requests. The default value is . + /// + /// + /// A value task that represents the asynchronous operation. The value of the type parameter + /// of the value task contains the usage for the Task Hub. + /// + /// The is canceled. ValueTask GetUsageAsync(CancellationToken cancellationToken = default); } diff --git a/src/Keda.Scaler.DurableTask.AzureStorage/TaskHub/TaskHubQueueUsage.cs b/src/Keda.Scaler.DurableTask.AzureStorage/TaskHub/TaskHubQueueUsage.cs index a5319b71..052cce33 100644 --- a/src/Keda.Scaler.DurableTask.AzureStorage/TaskHub/TaskHubQueueUsage.cs +++ b/src/Keda.Scaler.DurableTask.AzureStorage/TaskHub/TaskHubQueueUsage.cs @@ -26,7 +26,7 @@ public sealed class TaskHubQueueUsage /// Gets a value indicating whether there is currently any activity for the Task Hub. /// /// - /// if there is at least one message that is pending; otherwise, . + /// if there is at least one message that is pending; otherwise, . /// public bool HasActivity => WorkItemQueueMessages > 0 || ControlQueueMessages.Any(x => x > 0);