Skip to content

Commit

Permalink
Revert use of property in Kestrel (even tho it's an outside caller to…
Browse files Browse the repository at this point in the history
… the source class)
  • Loading branch information
Abrynos committed Mar 24, 2024
1 parent 31a355d commit 49dced2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ArchiSteamFarm/IPC/ArchiKestrel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ private static void ConfigureApp([SuppressMessage("ReSharper", "SuggestBaseTypeF

Dictionary<string, string> pluginPaths = new(StringComparer.Ordinal);

if (PluginsCore.ActivePluginsCount > 0) {
if (PluginsCore.ActivePlugins.Count > 0) {
foreach (IWebInterface plugin in PluginsCore.ActivePlugins.OfType<IWebInterface>()) {
if (string.IsNullOrEmpty(plugin.PhysicalPath) || string.IsNullOrEmpty(plugin.WebPath)) {
// Invalid path provided
Expand Down Expand Up @@ -230,7 +230,7 @@ private static void ConfigureApp([SuppressMessage("ReSharper", "SuggestBaseTypeF
// Finally register proper API endpoints once we're done with routing
app.UseEndpoints(static endpoints => endpoints.MapControllers());

if (PluginsCore.ActivePluginsCount > 0) {
if (PluginsCore.ActivePlugins.Count > 0) {
foreach (IWebServiceProvider plugin in PluginsCore.ActivePlugins.OfType<IWebServiceProvider>()) {
try {
plugin.OnConfiguringEndpoints(app);
Expand Down Expand Up @@ -381,7 +381,7 @@ private static void ConfigureServices([SuppressMessage("ReSharper", "SuggestBase
IMvcBuilder mvc = services.AddControllers();

// Add support for controllers declared in custom plugins
if (PluginsCore.ActivePluginsCount > 0) {
if (PluginsCore.ActivePlugins.Count > 0) {
HashSet<Assembly>? assemblies = PluginsCore.LoadAssemblies();

if (assemblies != null) {
Expand Down

0 comments on commit 49dced2

Please sign in to comment.