mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 12:11:10 +00:00
Replaces inheritdoc with explicit documentation
This commit is contained in:
1 parent
8f3304d231
commit
0e0e67ca73
40 files changed
+243
-61
No files matched your search
@@ -42,7 +42,11 @@ internal sealed class PluginDetectionSyncJob : BackgroundService
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
/// <summary>
|
||||
/// This method is called when the <see cref="IHostedService"/> starts. The implementation should return a task that represents the lifetime of the long running operation(s) being performed.
|
||||
/// </summary>
|
||||
/// <param name="stoppingToken">Triggered when <see cref="IHostedService.StopAsync(CancellationToken)"/> is called.</param>
|
||||
/// <returns>A <see cref="Task"/> that represents the long running operations.</returns>
|
||||
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
|
||||
{
|
||||
foreach (string loadError in _loadErrors)
|
||||
|
||||
@@ -23,7 +23,11 @@ internal sealed class PluginLoadContext : AssemblyLoadContext
|
||||
_pluginDirectory = pluginDirectory;
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
/// <summary>
|
||||
/// Loads the assembly whose assembly name is specified.
|
||||
/// </summary>
|
||||
/// <param name="assemblyName">The object that describes the assembly to be loaded.</param>
|
||||
/// <returns>The loaded assembly, or <see langword="null"/> when it cannot be resolved.</returns>
|
||||
protected override Assembly? Load(AssemblyName assemblyName)
|
||||
{
|
||||
if (assemblyName.Name is null)
|
||||
|
||||
@@ -24,13 +24,20 @@ internal sealed class PluginManager : IPluginManager
|
||||
_pluginsById = plugins.ToDictionary(plugin => plugin.Id);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
/// <summary>
|
||||
/// Gets the plugins that were loaded successfully.
|
||||
/// </summary>
|
||||
/// <returns>The collection of loaded plugins.</returns>
|
||||
public IReadOnlyList<IPlugin> GetPlugins()
|
||||
{
|
||||
return [.. _pluginsById.Values];
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
/// <summary>
|
||||
/// Gets the plugin identified by <paramref name="pluginId"/>.
|
||||
/// </summary>
|
||||
/// <param name="pluginId">The unique identifier of the plugin.</param>
|
||||
/// <returns>The plugin, or <see langword="null"/> when no plugin with the provided Id was loaded.</returns>
|
||||
public IPlugin? GetPlugin(Guid pluginId)
|
||||
{
|
||||
return _pluginsById.GetValueOrDefault(pluginId);
|
||||
|
||||
@@ -33,7 +33,12 @@ internal sealed class PluginSettingsStore : IPluginSettingsStore
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
/// <summary>
|
||||
/// Gets the settings persisted by the host for the plugin identified by <paramref name="pluginId"/>.
|
||||
/// </summary>
|
||||
/// <param name="pluginId">The unique identifier of the plugin whose settings are read.</param>
|
||||
/// <param name="cancellationToken">Cancellation token that can be used to cancel the operation.</param>
|
||||
/// <returns>The persisted settings keyed by setting key, or <see langword="null"/> when no settings were persisted for the plugin.</returns>
|
||||
public async Task<IReadOnlyDictionary<string, string>?> GetSettingsAsync(Guid pluginId, CancellationToken cancellationToken)
|
||||
{
|
||||
Result<PluginEntity?> getPluginResult = await _unitOfWork.PluginRepository.GetByIdAsync(pluginId, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
Reference in new issue
Block a user