Add XML docs

This commit is contained in:
Stone_Red
2025-12-23 15:15:18 +01:00
parent 55f26b3a92
commit 3e339b2b7a
26 changed files with 377 additions and 4 deletions
@@ -4,6 +4,7 @@
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
</PropertyGroup>
<ItemGroup>
@@ -4,8 +4,18 @@ using Microsoft.Extensions.Logging;
namespace RemoteExec.Client.DependencyInjection;
/// <summary>
/// Extension methods for registering RemoteExecutor with dependency injection.
/// </summary>
public static class RemoteExecutorServiceCollectionExtensions
{
/// <summary>
/// Adds a singleton RemoteExecutor to the service collection.
/// </summary>
/// <param name="services">The service collection to add to.</param>
/// <param name="urls">The URLs of the remote execution servers.</param>
/// <param name="configure">An optional action to configure the executor options.</param>
/// <returns>The service collection for chaining.</returns>
public static IServiceCollection AddRemoteExecutor(this IServiceCollection services, string[] urls, Action<RemoteExecutorOptions>? configure = null)
{
RemoteExecutorOptions options = new RemoteExecutorOptions();