This commit is contained in:
Łukasz Domeradzki 2024-07-14 17:25:03 +02:00
parent 465207034d
commit 3b3f1caf84
No known key found for this signature in database
GPG key ID: 6B138B4C64555AEA
2 changed files with 1 additions and 4 deletions

View file

@ -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"
);

View file

@ -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]