Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused YesqlOptions from SetupService #12788

Merged
merged 1 commit into from
Nov 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/OrchardCore/OrchardCore.Setup.Core/SetupService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public class SetupService : ISetupService
private readonly IHostApplicationLifetime _applicationLifetime;
private readonly IHttpContextAccessor _httpContextAccessor;
private readonly IDbConnectionValidator _dbConnectionValidator;
private readonly YesSqlOptions _yesSqlOptions;
private readonly string _applicationName;
private IEnumerable<RecipeDescriptor> _recipes;

Expand All @@ -55,7 +54,6 @@ public class SetupService : ISetupService
/// <param name="applicationLifetime">The <see cref="IHostApplicationLifetime"/>.</param>
/// <param name="httpContextAccessor">The <see cref="IHttpContextAccessor"/>.</param>
/// <param name="dbConnectionValidator">The <see cref="IDbConnectionValidator"/>.</param>
/// <param name="yesSqlOptions">The <see cref="YesSqlOptions"/>.</param>
public SetupService(
IShellHost shellHost,
IHostEnvironment hostingEnvironment,
Expand All @@ -66,8 +64,7 @@ public SetupService(
IStringLocalizer<SetupService> stringLocalizer,
IHostApplicationLifetime applicationLifetime,
IHttpContextAccessor httpContextAccessor,
IDbConnectionValidator dbConnectionValidator,
IOptions<YesSqlOptions> yesSqlOptions)
IDbConnectionValidator dbConnectionValidator)
{
_shellHost = shellHost;
_applicationName = hostingEnvironment.ApplicationName;
Expand All @@ -79,7 +76,6 @@ public SetupService(
_applicationLifetime = applicationLifetime;
_httpContextAccessor = httpContextAccessor;
_dbConnectionValidator = dbConnectionValidator;
_yesSqlOptions = yesSqlOptions.Value;
}

/// <inheritdoc />
Expand Down