mirror of
https://github.com/Stone-Red-Code/RemoteExec.git
synced 2026-09-04 09:06:20 +02:00
Add XML docs
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user