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
@@ -2,20 +2,34 @@
namespace RemoteExec.Server;
/// <summary>
/// Event arguments for assembly request events.
/// </summary>
public class RequestAssemblyEventArgs(AssemblyName assemblyName) : EventArgs
{
private readonly TaskCompletionSource taskCompletionSource = new TaskCompletionSource();
private Assembly? assembly = null;
/// <summary>
/// Gets the assembly name being requested.
/// </summary>
public AssemblyName Assembly { get; } = assemblyName;
/// <summary>
/// Asynchronously waits for the assembly to be provided.
/// </summary>
/// <returns>The assembly, or null if not provided.</returns>
public async Task<Assembly?> GetAssemblyAsync()
{
await taskCompletionSource.Task;
return assembly;
}
/// <summary>
/// Sets the assembly to fulfill the request.
/// </summary>
/// <param name="assembly">The assembly to provide.</param>
public void SetAssembly(Assembly assembly)
{
this.assembly = assembly;