mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Fix namespaces
This commit is contained in:
1 parent
8a1b302e48
commit
625fff4b73
2 files changed
+2
-6
No files matched your search
-3
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using Artemis.Core.Services;
|
using Artemis.Core.Services;
|
||||||
|
|
||||||
namespace Artemis.Core.Modules;
|
namespace Artemis.Core.Modules;
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ using System.Collections.Generic;
|
|||||||
using System.Collections.Immutable;
|
using System.Collections.Immutable;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Numerics;
|
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
|
||||||
namespace Artemis.Core.Services;
|
namespace Artemis.Core.Services;
|
||||||
@@ -115,7 +114,7 @@ public static partial class ProcessMonitor
|
|||||||
|
|
||||||
lock (LOCK)
|
lock (LOCK)
|
||||||
{
|
{
|
||||||
return _processes.Values.Any(x => Match(x, processName, processLocation));
|
return _processes.Values.Any(x => IsProcessRunning(x, processName, processLocation));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -132,7 +131,7 @@ public static partial class ProcessMonitor
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static bool Match(ProcessInfo info, string? processName, string? processLocation)
|
private static bool IsProcessRunning(ProcessInfo info, string? processName, string? processLocation)
|
||||||
{
|
{
|
||||||
if (processName != null && processLocation != null)
|
if (processName != null && processLocation != null)
|
||||||
return string.Equals(info.ProcessName, processName, StringComparison.InvariantCultureIgnoreCase) &&
|
return string.Equals(info.ProcessName, processName, StringComparison.InvariantCultureIgnoreCase) &&
|
||||||
|
|||||||
Reference in new issue
Block a user