mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2025-12-16 06:20:34 +00:00
Misc
This commit is contained in:
@@ -158,7 +158,7 @@ internal sealed class MonitoringPlugin : OfficialPlugin, IDisposable, IOfficialG
|
||||
|
||||
Meter.CreateObservableGauge(
|
||||
$"{MetricNamePrefix}_active_plugins",
|
||||
static () => PluginsCore.ActivePluginsCount,
|
||||
static () => PluginsCore.ActivePlugins.Count,
|
||||
description: "Number of plugins currently loaded in ASF"
|
||||
);
|
||||
|
||||
|
||||
@@ -55,9 +55,6 @@ using SteamKit2;
|
||||
namespace ArchiSteamFarm.Plugins;
|
||||
|
||||
public static class PluginsCore {
|
||||
[PublicAPI]
|
||||
public static int ActivePluginsCount => ActivePlugins.Count;
|
||||
|
||||
internal static bool HasCustomPluginsLoaded => ActivePlugins.Any(static plugin => plugin is not OfficialPlugin officialPlugin || !officialPlugin.HasSameVersion());
|
||||
|
||||
[ImportMany]
|
||||
|
||||
Reference in New Issue
Block a user