mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 07:04:27 +00:00
Misc
This commit is contained in:
parent
465207034d
commit
3b3f1caf84
2 changed files with 1 additions and 4 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue