Skip to content

Commit

Permalink
Remove ILogger
Browse files Browse the repository at this point in the history
  • Loading branch information
infofromca committed Oct 4, 2024
1 parent 5c0cfbe commit cbb43d2
Showing 1 changed file with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using OrchardCore.AutoSetup.Extensions;
using OrchardCore.AutoSetup.Options;
Expand Down Expand Up @@ -45,11 +44,6 @@ public class AutoSetupMiddleware
/// </summary>
private readonly AutoSetupOptions _options;

/// <summary>
/// The logger.
/// </summary>
private readonly ILogger _logger;

/// <summary>
/// The auto setup lock options.
/// </summary>
Expand All @@ -68,25 +62,21 @@ public class AutoSetupMiddleware
/// <param name="shellSettings">The shell settings.</param>
/// <param name="shellSettingsManager">The shell settings manager.</param>
/// <param name="distributedLock">The distributed lock.</param>
/// <param name="options">The auto setup options.</param>
/// <param name="logger">The logger.</param>
/// <param name="options">The auto setup options.</param>
public AutoSetupMiddleware(
RequestDelegate next,
IShellHost shellHost,
ShellSettings shellSettings,
IShellSettingsManager shellSettingsManager,
IDistributedLock distributedLock,
IOptions<AutoSetupOptions> options,
ILogger<AutoSetupMiddleware> logger)
IOptions<AutoSetupOptions> options)
{
_next = next;
_shellHost = shellHost;
_shellSettings = shellSettings;
_shellSettingsManager = shellSettingsManager;
_distributedLock = distributedLock;
_options = options.Value;
_logger = logger;

_lockOptions = _options.LockOptions;
_setupOptions = _options.Tenants.FirstOrDefault(options => _shellSettings.Name == options.ShellName);
}
Expand Down

0 comments on commit cbb43d2

Please sign in to comment.