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

Seal ModularTenantEvents & DeploymentSourceBase implementations #16897

Merged
merged 20 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace OrchardCore.AdminMenu.Deployment;

public class AdminMenuDeploymentSource
public sealed class AdminMenuDeploymentSource
: DeploymentSourceBase<AdminMenuDeploymentStep>
{
private readonly IAdminMenuService _adminMenuService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace OrchardCore.ContentTypes.Deployment;

public class ContentDefinitionDeploymentSource
public sealed class ContentDefinitionDeploymentSource
: DeploymentSourceBase<ContentDefinitionDeploymentStep>
{
private readonly IContentDefinitionStore _contentDefinitionStore;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace OrchardCore.ContentTypes.Deployment;

public class DeleteContentDefinitionDeploymentSource
public sealed class DeleteContentDefinitionDeploymentSource
: DeploymentSourceBase<DeleteContentDefinitionDeploymentStep>
{
protected override Task ProcessAsync(DeleteContentDefinitionDeploymentStep step, DeploymentPlanResult result)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace OrchardCore.ContentTypes.Deployment;

public class ReplaceContentDefinitionDeploymentSource
public sealed class ReplaceContentDefinitionDeploymentSource
: DeploymentSourceBase<ReplaceContentDefinitionDeploymentStep>
{
private readonly IContentDefinitionStore _contentDefinitionStore;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace OrchardCore.Contents.Deployment.AddToDeploymentPlan;

public class ContentItemDeploymentSource
public sealed class ContentItemDeploymentSource
: DeploymentSourceBase<ContentItemDeploymentStep>
{
private readonly IContentManager _contentManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace OrchardCore.Contents.Deployment;

public class AllContentDeploymentSource
public sealed class AllContentDeploymentSource
: DeploymentSourceBase<AllContentDeploymentStep>
{
private readonly ISession _session;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace OrchardCore.Contents.Deployment;

public class ContentDeploymentSource
public sealed class ContentDeploymentSource
: DeploymentSourceBase<ContentDeploymentStep>
{
private readonly ISession _session;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace OrchardCore.Contents.Deployment.ExportContentToDeploymentTarget;

public class ExportContentToDeploymentTargetDeploymentSource
public sealed class ExportContentToDeploymentTargetDeploymentSource
: DeploymentSourceBase<ExportContentToDeploymentTargetDeploymentStep>
{
private readonly IContentManager _contentManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace OrchardCore.CustomSettings.Deployment;

public class CustomSettingsDeploymentSource
public sealed class CustomSettingsDeploymentSource
: DeploymentSourceBase<CustomSettingsDeploymentStep>
{
private readonly CustomSettingsService _customSettingsService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace OrchardCore.Deployment.Deployment;

public class DeploymentPlanDeploymentSource
public sealed class DeploymentPlanDeploymentSource
: DeploymentSourceBase<DeploymentPlanDeploymentStep>
{
private readonly IDeploymentPlanService _deploymentPlanService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace OrchardCore.Deployment.Steps;

public class CustomFileDeploymentSource
public sealed class CustomFileDeploymentSource
: DeploymentSourceBase<CustomFileDeploymentStep>
{
protected override Task ProcessAsync(CustomFileDeploymentStep step, DeploymentPlanResult result)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace OrchardCore.Deployment.Steps;

public class JsonRecipeDeploymentSource
public sealed class JsonRecipeDeploymentSource
: DeploymentSourceBase<JsonRecipeDeploymentStep>
{
protected override Task ProcessAsync(JsonRecipeDeploymentStep step, DeploymentPlanResult result)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace OrchardCore.Facebook.Deployment;

public class FacebookLoginDeploymentSource
public sealed class FacebookLoginDeploymentSource
: DeploymentSourceBase<FacebookLoginDeploymentStep>
{
private readonly IFacebookService _facebookService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace OrchardCore.Features.Deployment;

public class AllFeaturesDeploymentSource
public sealed class AllFeaturesDeploymentSource
: DeploymentSourceBase<AllFeaturesDeploymentStep>
{
private readonly IModuleService _moduleService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace OrchardCore.Layers.Deployment;

public class AllLayersDeploymentSource
public sealed class AllLayersDeploymentSource
: DeploymentSourceBase<AllLayersDeploymentStep>
{
private readonly ILayerService _layerService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace OrchardCore.Media.AmazonS3.Services;

public class MediaS3BucketTenantEvents : AwsTenantEventsBase
public sealed class MediaS3BucketTenantEvents : AwsTenantEventsBase
{
public MediaS3BucketTenantEvents(
ShellSettings shellSettings,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@

namespace OrchardCore.Media.Azure.Services;

public class MediaBlobContainerTenantEvents : ModularTenantEvents
public sealed class MediaBlobContainerTenantEvents : ModularTenantEvents
{
private readonly MediaBlobStorageOptions _options;
private readonly ShellSettings _shellSettings;
private readonly ILogger _logger;

protected readonly IStringLocalizer S;
private readonly IStringLocalizer S;
hishamco marked this conversation as resolved.
Show resolved Hide resolved

public MediaBlobContainerTenantEvents(
IOptions<MediaBlobStorageOptions> options,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace OrchardCore.Media.Deployment;

public class AllMediaProfilesDeploymentSource
public sealed class AllMediaProfilesDeploymentSource
: DeploymentSourceBase<AllMediaProfilesDeploymentStep>
{
private readonly MediaProfilesManager _mediaProfilesManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace OrchardCore.Media.Deployment;

public class MediaDeploymentSource
public sealed class MediaDeploymentSource
: DeploymentSourceBase<MediaDeploymentStep>
{
private readonly IMediaFileStore _mediaFileStore;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace OrchardCore.Media.Services;

public class TempDirCleanerService : ModularTenantEvents
public sealed class TempDirCleanerService : ModularTenantEvents
{
private readonly IMediaFileStore _fileStore;
private readonly AttachedMediaFieldFileService _attachedMediaFieldFileService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace OrchardCore.Microsoft.Authentication.Deployment;

public class AzureADDeploymentSource
public sealed class AzureADDeploymentSource
: DeploymentSourceBase<AzureADDeploymentStep>
{
private readonly IAzureADService _azureADService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace OrchardCore.OpenId.Deployment;

public class OpenIdServerDeploymentSource
public sealed class OpenIdServerDeploymentSource
: DeploymentSourceBase<OpenIdServerDeploymentStep>
{
private readonly IOpenIdServerService _openIdServerService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace OrchardCore.OpenId.Deployment;

public class OpenIdValidationDeploymentSource
public sealed class OpenIdValidationDeploymentSource
: DeploymentSourceBase<OpenIdValidationDeploymentStep>
{
private readonly IOpenIdValidationService _openIdValidationService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace OrchardCore.Placements.Deployment;

public class PlacementsDeploymentSource
public sealed class PlacementsDeploymentSource
: DeploymentSourceBase<PlacementsDeploymentStep>
{
private readonly PlacementsManager _placementsManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace OrchardCore.Queries.Deployment;

public class AllQueriesDeploymentSource
public sealed class AllQueriesDeploymentSource
: DeploymentSourceBase<AllQueriesDeploymentStep>
{
private readonly IQueryManager _queryManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace OrchardCore.Queries.Deployment;

public class QueryBasedContentDeploymentSource
public sealed class QueryBasedContentDeploymentSource
: DeploymentSourceBase<QueryBasedContentDeploymentStep>
{
private readonly IQueryManager _queryManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace OrchardCore.Redis.Services;

public class RedisService : ModularTenantEvents, IRedisService
public sealed class RedisService : ModularTenantEvents, IRedisService
{
private readonly IRedisDatabaseFactory _factory;
private readonly RedisOptions _options;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace OrchardCore.Roles.Deployment;

public class AllRolesDeploymentSource
public sealed class AllRolesDeploymentSource
: DeploymentSourceBase<AllRolesDeploymentStep>
{
private readonly RoleManager<IRole> _roleManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace OrchardCore.Search.Lucene.Deployment;

public class LuceneIndexDeploymentSource
public sealed class LuceneIndexDeploymentSource
: DeploymentSourceBase<LuceneIndexDeploymentStep>
{
private readonly LuceneIndexSettingsService _luceneIndexSettingsService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace OrchardCore.Search.Lucene.Deployment;

public class LuceneIndexRebuildDeploymentSource
public sealed class LuceneIndexRebuildDeploymentSource
: DeploymentSourceBase<LuceneIndexRebuildDeploymentStep>
{
protected override Task ProcessAsync(LuceneIndexRebuildDeploymentStep step, DeploymentPlanResult result)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace OrchardCore.Search.Lucene.Deployment;

public class LuceneIndexResetDeploymentSource
public sealed class LuceneIndexResetDeploymentSource
: DeploymentSourceBase<LuceneIndexResetDeploymentStep>
{
protected override Task ProcessAsync(LuceneIndexResetDeploymentStep step, DeploymentPlanResult result)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace OrchardCore.Search.Lucene.Deployment;

public class LuceneSettingsDeploymentSource
public sealed class LuceneSettingsDeploymentSource
: DeploymentSourceBase<LuceneSettingsDeploymentStep>
{
private readonly LuceneIndexingService _luceneIndexingService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace OrchardCore.Search.Lucene;

public class LuceneIndexInitializerService : ModularTenantEvents
public sealed class LuceneIndexInitializerService : ModularTenantEvents
{
private readonly ShellSettings _shellSettings;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace OrchardCore.Search.Deployment;

public class SearchSettingsDeploymentSource
public sealed class SearchSettingsDeploymentSource
: DeploymentSourceBase<SearchSettingsDeploymentStep>
{
private readonly ISiteService _siteService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace OrchardCore.Settings.Deployment;

public class SiteSettingsDeploymentSource
public sealed class SiteSettingsDeploymentSource
: DeploymentSourceBase<SiteSettingsDeploymentStep>
{
private readonly ISiteService _siteService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace OrchardCore.Shortcodes.Deployment;

public class AllShortcodeTemplatesDeploymentSource
public sealed class AllShortcodeTemplatesDeploymentSource
: DeploymentSourceBase<AllShortcodeTemplatesDeploymentStep>
{
private readonly ShortcodeTemplatesManager _templatesManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace OrchardCore.Templates.Deployment;

public class AllAdminTemplatesDeploymentSource
public sealed class AllAdminTemplatesDeploymentSource
: DeploymentSourceBase<AllAdminTemplatesDeploymentStep>
{
private readonly AdminTemplatesManager _templatesManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace OrchardCore.Templates.Deployment;

public class AllTemplatesDeploymentSource
public sealed class AllTemplatesDeploymentSource
: DeploymentSourceBase<AllTemplatesDeploymentStep>
{
private readonly TemplatesManager _templatesManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace OrchardCore.Tenants.Deployment;

public class AllFeatureProfilesDeploymentSource
public sealed class AllFeatureProfilesDeploymentSource
: DeploymentSourceBase<AllFeatureProfilesDeploymentStep>
{
private readonly FeatureProfilesManager _featureProfilesManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace OrchardCore.Themes.Deployment;

public class ThemesDeploymentSource
public sealed class ThemesDeploymentSource
: DeploymentSourceBase<ThemesDeploymentStep>
{
private readonly ISiteThemeService _siteThemeService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace OrchardCore.Users.Deployment;

public class AllUsersDeploymentSource
public sealed class AllUsersDeploymentSource
: DeploymentSourceBase<AllUsersDeploymentStep>
{
private readonly ISession _session;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace OrchardCore.Users.Deployment;

public class CustomUserSettingsDeploymentSource
public sealed class CustomUserSettingsDeploymentSource
: DeploymentSourceBase<CustomUserSettingsDeploymentStep>
{
private readonly CustomUserSettingsService _customUserSettingsService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace OrchardCore.Workflows.Deployment;

public class AllWorkflowTypeDeploymentSource
public sealed class AllWorkflowTypeDeploymentSource
: DeploymentSourceBase<AllWorkflowTypeDeploymentStep>
{
private readonly IWorkflowTypeStore _workflowTypeStore;
Expand Down
Loading