mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
Meta - Fixed a bunch of build warnings
This commit is contained in:
1 parent
6921561317
commit
1bd4efbbc5
27 files changed
+199
-149
No files matched your search
@@ -31,7 +31,7 @@ internal class PluginManagementService : IPluginManagementService
|
||||
private readonly IPluginRepository _pluginRepository;
|
||||
private readonly List<Plugin> _plugins;
|
||||
private readonly IQueuedActionRepository _queuedActionRepository;
|
||||
private FileSystemWatcher _hotReloadWatcher;
|
||||
private FileSystemWatcher? _hotReloadWatcher;
|
||||
private bool _disposed;
|
||||
private bool _isElevated;
|
||||
|
||||
|
||||
@@ -1,24 +1,49 @@
|
||||
namespace Artemis.Core.Services;
|
||||
|
||||
/// <summary>
|
||||
/// This readonly struct provides information about a process.
|
||||
/// </summary>
|
||||
public readonly struct ProcessInfo
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Identifier for the process.
|
||||
/// </summary>
|
||||
public readonly int ProcessId;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name of the process.
|
||||
/// </summary>
|
||||
public readonly string ProcessName;
|
||||
public readonly string ImageName; //TODO DarthAffe 01.09.2023: Do we need this if we can't get it through Process.GetProcesses()?
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Image Name of the Process.
|
||||
/// </summary>
|
||||
public readonly string ImageName; // TODO DarthAffe 01.09.2023: Do we need this if we can't get it through Process.GetProcesses()?
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Executable associated with the Process.
|
||||
/// </summary>
|
||||
public readonly string Executable;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ProcessInfo"/> struct.
|
||||
/// </summary>
|
||||
/// <param name="processId">The identifier for the process.</param>
|
||||
/// <param name="processName">The name of the process.</param>
|
||||
/// <param name="imageName">The Image Name of the process.</param>
|
||||
/// <param name="executable">The executable associated with the process.</param>
|
||||
public ProcessInfo(int processId, string processName, string imageName, string executable)
|
||||
{
|
||||
this.ProcessId = processId;
|
||||
this.ProcessName = processName;
|
||||
this.ImageName = imageName;
|
||||
this.Executable = executable;
|
||||
ProcessId = processId;
|
||||
ProcessName = processName;
|
||||
ImageName = imageName;
|
||||
Executable = executable;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in new issue
Block a user