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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user