From 5e82c66e7397dc454505a0b4b012faf7040b76b3 Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Tue, 12 Dec 2017 00:06:07 +0100 Subject: [PATCH] Sealed It --- src/Squidex.Domain.Apps.Entities/Apps/AppDomainObject.cs | 2 +- src/Squidex.Domain.Apps.Entities/Assets/AssetDomainObject.cs | 2 +- .../Contents/ContentDomainObject.cs | 2 +- src/Squidex.Domain.Apps.Entities/Rules/RuleDomainObject.cs | 2 +- .../Schemas/SchemaDomainObject.cs | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Squidex.Domain.Apps.Entities/Apps/AppDomainObject.cs b/src/Squidex.Domain.Apps.Entities/Apps/AppDomainObject.cs index fc8ddec2e..d11519917 100644 --- a/src/Squidex.Domain.Apps.Entities/Apps/AppDomainObject.cs +++ b/src/Squidex.Domain.Apps.Entities/Apps/AppDomainObject.cs @@ -19,7 +19,7 @@ using Squidex.Infrastructure.Reflection; namespace Squidex.Domain.Apps.Entities.Apps { - public class AppDomainObject : DomainObjectBase + public sealed class AppDomainObject : DomainObjectBase { public AppDomainObject Create(CreateApp command) { diff --git a/src/Squidex.Domain.Apps.Entities/Assets/AssetDomainObject.cs b/src/Squidex.Domain.Apps.Entities/Assets/AssetDomainObject.cs index b9bd87fb4..ada2fab99 100644 --- a/src/Squidex.Domain.Apps.Entities/Assets/AssetDomainObject.cs +++ b/src/Squidex.Domain.Apps.Entities/Assets/AssetDomainObject.cs @@ -16,7 +16,7 @@ using Squidex.Infrastructure.Reflection; namespace Squidex.Domain.Apps.Entities.Assets { - public class AssetDomainObject : DomainObjectBase + public sealed class AssetDomainObject : DomainObjectBase { public AssetDomainObject Create(CreateAsset command) { diff --git a/src/Squidex.Domain.Apps.Entities/Contents/ContentDomainObject.cs b/src/Squidex.Domain.Apps.Entities/Contents/ContentDomainObject.cs index fe4114a0e..21eabbe51 100644 --- a/src/Squidex.Domain.Apps.Entities/Contents/ContentDomainObject.cs +++ b/src/Squidex.Domain.Apps.Entities/Contents/ContentDomainObject.cs @@ -17,7 +17,7 @@ using Squidex.Infrastructure.Reflection; namespace Squidex.Domain.Apps.Entities.Contents { - public class ContentDomainObject : DomainObjectBase + public sealed class ContentDomainObject : DomainObjectBase { public ContentDomainObject Create(CreateContent command) { diff --git a/src/Squidex.Domain.Apps.Entities/Rules/RuleDomainObject.cs b/src/Squidex.Domain.Apps.Entities/Rules/RuleDomainObject.cs index 7ce3be03d..8b7a94918 100644 --- a/src/Squidex.Domain.Apps.Entities/Rules/RuleDomainObject.cs +++ b/src/Squidex.Domain.Apps.Entities/Rules/RuleDomainObject.cs @@ -16,7 +16,7 @@ using Squidex.Infrastructure.Reflection; namespace Squidex.Domain.Apps.Entities.Rules { - public class RuleDomainObject : DomainObjectBase + public sealed class RuleDomainObject : DomainObjectBase { public void Create(CreateRule command) { diff --git a/src/Squidex.Domain.Apps.Entities/Schemas/SchemaDomainObject.cs b/src/Squidex.Domain.Apps.Entities/Schemas/SchemaDomainObject.cs index 15aa08588..ec377f593 100644 --- a/src/Squidex.Domain.Apps.Entities/Schemas/SchemaDomainObject.cs +++ b/src/Squidex.Domain.Apps.Entities/Schemas/SchemaDomainObject.cs @@ -19,7 +19,7 @@ using Squidex.Infrastructure.Reflection; namespace Squidex.Domain.Apps.Entities.Schemas { - public class SchemaDomainObject : DomainObjectBase + public sealed class SchemaDomainObject : DomainObjectBase { private readonly FieldRegistry registry; @@ -179,7 +179,7 @@ namespace Squidex.Domain.Apps.Entities.Schemas return this; } - protected void RaiseEvent(FieldCommand fieldCommand, FieldEvent @event) + private void RaiseEvent(FieldCommand fieldCommand, FieldEvent @event) { SimpleMapper.Map(fieldCommand, @event);