Browse Source

Resharper warnings fixed

pull/107/head
Sebastian Stehle 8 years ago
parent
commit
97c5e8cca8
  1. 1
      Squidex.ruleset
  2. 2
      src/Squidex.Domain.Apps.Core/ContentExtensions.cs
  3. 2
      src/Squidex.Domain.Apps.Core/Contents/ContentData.cs
  4. 2
      src/Squidex.Domain.Apps.Core/Contents/IdContentData.cs
  5. 3
      src/Squidex.Domain.Apps.Core/Contents/NamedContentData.cs
  6. 2
      src/Squidex.Domain.Apps.Core/LanguagesConfig.cs
  7. 4
      src/Squidex.Domain.Apps.Core/Schemas/DateTimeField.cs
  8. 4
      src/Squidex.Domain.Apps.Core/Schemas/DateTimeFieldProperties.cs
  9. 4
      src/Squidex.Domain.Apps.Core/Schemas/Field.cs
  10. 2
      src/Squidex.Domain.Apps.Core/Schemas/Json/SchemaJsonSerializer.cs
  11. 3
      src/Squidex.Domain.Apps.Core/Schemas/Schema.cs
  12. 2
      src/Squidex.Domain.Apps.Core/Schemas/StringFieldProperties.cs
  13. 3
      src/Squidex.Domain.Apps.Core/Schemas/Validators/PatternValidator.cs
  14. 2
      src/Squidex.Domain.Apps.Core/Schemas/Validators/StringLengthValidator.cs
  15. 2
      src/Squidex.Domain.Apps.Core/Scripting/ContentWrapper/ContentDataObject.cs
  16. 2
      src/Squidex.Domain.Apps.Core/Scripting/ContentWrapper/ContentDataProperty.cs
  17. 2
      src/Squidex.Domain.Apps.Core/Scripting/ContentWrapper/ContentFieldObject.cs
  18. 2
      src/Squidex.Domain.Apps.Core/Scripting/ContentWrapper/ContentFieldProperty.cs
  19. 3
      src/Squidex.Domain.Apps.Core/Scripting/ContentWrapper/JsonMapper.cs
  20. 2
      src/Squidex.Domain.Apps.Core/Scripting/JintScriptEngine.cs
  21. 3
      src/Squidex.Domain.Apps.Events/Schemas/Utils/SchemaEventDispatcher.cs
  22. 3
      src/Squidex.Domain.Apps.Read.MongoDb/Apps/MongoAppEntity.cs
  23. 2
      src/Squidex.Domain.Apps.Read.MongoDb/Assets/MongoAssetRepository.cs
  24. 5
      src/Squidex.Domain.Apps.Read.MongoDb/Contents/MongoContentEntity.cs
  25. 3
      src/Squidex.Domain.Apps.Read.MongoDb/Contents/MongoContentRepository_EventHandling.cs
  26. 3
      src/Squidex.Domain.Apps.Read.MongoDb/Contents/Visitors/ConstantVisitor.cs
  27. 2
      src/Squidex.Domain.Apps.Read.MongoDb/Contents/Visitors/FilterBuilder.cs
  28. 4
      src/Squidex.Domain.Apps.Read.MongoDb/Contents/Visitors/FilterVisitor.cs
  29. 3
      src/Squidex.Domain.Apps.Read.MongoDb/Contents/Visitors/FindExtensions.cs
  30. 3
      src/Squidex.Domain.Apps.Read.MongoDb/Contents/Visitors/PropertyVisitor.cs
  31. 4
      src/Squidex.Domain.Apps.Read.MongoDb/Contents/Visitors/SortBuilder.cs
  32. 2
      src/Squidex.Domain.Apps.Read.MongoDb/History/ParsedHistoryEvent.cs
  33. 3
      src/Squidex.Domain.Apps.Read.MongoDb/Utils/EntityMapper.cs
  34. 2
      src/Squidex.Domain.Apps.Read.MongoDb/Webhooks/MongoWebhookEntity.cs
  35. 2
      src/Squidex.Domain.Apps.Read.MongoDb/Webhooks/MongoWebhookRepository.cs
  36. 2
      src/Squidex.Domain.Apps.Read/Apps/AppHistoryEventsCreator.cs
  37. 2
      src/Squidex.Domain.Apps.Read/Apps/Services/Implementations/CachingAppProvider.cs
  38. 3
      src/Squidex.Domain.Apps.Read/Contents/ContentQueryService.cs
  39. 2
      src/Squidex.Domain.Apps.Read/Contents/GraphQL/CachingGraphQLService.cs
  40. 5
      src/Squidex.Domain.Apps.Read/Contents/GraphQL/GraphQLModel.cs
  41. 2
      src/Squidex.Domain.Apps.Read/Contents/GraphQL/QueryContext.cs
  42. 2
      src/Squidex.Domain.Apps.Read/Contents/GraphQL/Types/ContentDataGraphType.cs
  43. 2
      src/Squidex.Domain.Apps.Read/Contents/GraphQL/Types/ContentQueryGraphType.cs
  44. 2
      src/Squidex.Domain.Apps.Read/History/HistoryEventsCreatorBase.cs
  45. 2
      src/Squidex.Domain.Apps.Read/Schemas/SchemaHistoryEventsCreator.cs
  46. 4
      src/Squidex.Domain.Apps.Read/Schemas/Services/Implementations/CachingSchemaProvider.cs
  47. 4
      src/Squidex.Domain.Apps.Read/Webhooks/WebhookDequeuer.cs
  48. 2
      src/Squidex.Domain.Apps.Read/Webhooks/WebhookSender.cs
  49. 2
      src/Squidex.Domain.Apps.Write/Apps/AppClient.cs
  50. 2
      src/Squidex.Domain.Apps.Write/Apps/AppClients.cs
  51. 2
      src/Squidex.Domain.Apps.Write/Apps/AppCommandMiddleware.cs
  52. 2
      src/Squidex.Domain.Apps.Write/Apps/AppContributors.cs
  53. 2
      src/Squidex.Domain.Apps.Write/Apps/AppDomainObject.cs
  54. 2
      src/Squidex.Domain.Apps.Write/Assets/AssetDomainObject.cs
  55. 2
      src/Squidex.Domain.Apps.Write/Contents/ContentCommandMiddleware.cs
  56. 2
      src/Squidex.Domain.Apps.Write/Webhooks/Commands/WebhookAggregateCommand.cs
  57. 3
      src/Squidex.Domain.Users/UserExtensions.cs
  58. 4
      src/Squidex.Domain.Users/UserManagerExtensions.cs
  59. 3
      src/Squidex.Infrastructure.GetEventStore/CQRS/Events/GetEventStore.cs
  60. 2
      src/Squidex.Infrastructure.GetEventStore/CQRS/Events/GetEventStoreSubscription.cs
  61. 3
      src/Squidex.Infrastructure.MongoDb/CQRS/Events/MongoEventConsumerInfoRepository.cs
  62. 4
      src/Squidex.Infrastructure.MongoDb/CQRS/Events/MongoEventStore.cs
  63. 2
      src/Squidex.Infrastructure.MongoDb/CQRS/Events/PollingSubscription.cs
  64. 2
      src/Squidex.Infrastructure.MongoDb/CQRS/Events/StreamPosition.cs
  65. 2
      src/Squidex.Infrastructure.MongoDb/MongoDb/InstantSerializer.cs
  66. 2
      src/Squidex.Infrastructure.MongoDb/MongoDb/RefTokenSerializer.cs
  67. 2
      src/Squidex.Infrastructure.RabbitMq/CQRS/Events/RabbitMqEventConsumer.cs
  68. 2
      src/Squidex.Infrastructure.Redis/RedisSubscription.cs
  69. 3
      src/Squidex.Infrastructure/CQRS/Commands/AggregateHandler.cs
  70. 1
      src/Squidex.Infrastructure/CQRS/Commands/EntityCreatedResult{T}.cs
  71. 2
      src/Squidex.Infrastructure/CQRS/DomainObjectBase.cs
  72. 13
      src/Squidex.Infrastructure/CQRS/Events/Envelope{T}.cs
  73. 2
      src/Squidex.Infrastructure/CQRS/Events/EventDataFormatter.cs
  74. 2
      src/Squidex.Infrastructure/CQRS/Events/EventReceiver.cs
  75. 3
      src/Squidex.Infrastructure/CollectionExtensions.cs
  76. 2
      src/Squidex.Infrastructure/DomainObjectException.cs
  77. 2
      src/Squidex.Infrastructure/FileExtensions.cs
  78. 2
      src/Squidex.Infrastructure/GravatarHelper.cs
  79. 2
      src/Squidex.Infrastructure/Guard.cs
  80. 2
      src/Squidex.Infrastructure/Http/DumpFormatter.cs
  81. 2
      src/Squidex.Infrastructure/Json/InstantConverter.cs
  82. 2
      src/Squidex.Infrastructure/Language.cs
  83. 2
      src/Squidex.Infrastructure/Log/Adapter/SemanticLogLogger.cs
  84. 2
      src/Squidex.Infrastructure/Log/Internal/AnsiLogConsole.cs
  85. 2
      src/Squidex.Infrastructure/Log/Internal/FileLogProcessor.cs
  86. 2
      src/Squidex.Infrastructure/Log/SemanticLogExtensions.cs
  87. 2
      src/Squidex.Infrastructure/Reflection/SimpleMapper.cs
  88. 3
      src/Squidex.Infrastructure/Timers/CompletionTimer.cs
  89. 3
      src/Squidex.Infrastructure/TypeNameRegistry.cs
  90. 2
      src/Squidex.Infrastructure/ValidationExtensions.cs
  91. 2
      src/Squidex/Config/Domain/AssetStoreModule.cs
  92. 2
      src/Squidex/Config/Domain/EventPublishersModule.cs
  93. 2
      src/Squidex/Config/Domain/InfrastructureModule.cs
  94. 2
      src/Squidex/Config/Domain/ReadModule.cs
  95. 2
      src/Squidex/Config/Domain/WriteModule.cs
  96. 2
      src/Squidex/Config/Identity/GithubIdentityUsage.cs
  97. 2
      src/Squidex/Config/Identity/GoogleHandler.cs
  98. 2
      src/Squidex/Config/Identity/GoogleIdentityUsage.cs
  99. 3
      src/Squidex/Config/Identity/IdentityUsage.cs
  100. 2
      src/Squidex/Config/Identity/MicrosoftHandler.cs

1
Squidex.ruleset

@ -59,5 +59,6 @@
<Rule Id="SA1634" Action="None" /> <Rule Id="SA1634" Action="None" />
<Rule Id="SA1635" Action="None" /> <Rule Id="SA1635" Action="None" />
<Rule Id="SA1652" Action="None" /> <Rule Id="SA1652" Action="None" />
<Rule Id="SA1404" Action="None" />
</Rules> </Rules>
</RuleSet> </RuleSet>

2
src/Squidex.Domain.Apps.Core/ContentExtensions.cs

@ -12,8 +12,6 @@ using Squidex.Domain.Apps.Core.Contents;
using Squidex.Domain.Apps.Core.Schemas; using Squidex.Domain.Apps.Core.Schemas;
using Squidex.Infrastructure; using Squidex.Infrastructure;
// ReSharper disable InvertIf
namespace Squidex.Domain.Apps.Core namespace Squidex.Domain.Apps.Core
{ {
public static class ContentExtensions public static class ContentExtensions

2
src/Squidex.Domain.Apps.Core/Contents/ContentData.cs

@ -13,8 +13,6 @@ using Squidex.Domain.Apps.Core.Schemas;
using Squidex.Infrastructure; using Squidex.Infrastructure;
using Squidex.Infrastructure.Json; using Squidex.Infrastructure.Json;
// ReSharper disable InvertIf
namespace Squidex.Domain.Apps.Core.Contents namespace Squidex.Domain.Apps.Core.Contents
{ {
public abstract class ContentData<T> : Dictionary<T, ContentFieldData>, IEquatable<ContentData<T>> public abstract class ContentData<T> : Dictionary<T, ContentFieldData>, IEquatable<ContentData<T>>

2
src/Squidex.Domain.Apps.Core/Contents/IdContentData.cs

@ -15,8 +15,6 @@ using Squidex.Domain.Apps.Core.Schemas;
using Squidex.Infrastructure; using Squidex.Infrastructure;
using Squidex.Infrastructure.Json; using Squidex.Infrastructure.Json;
// ReSharper disable InvertIf
namespace Squidex.Domain.Apps.Core.Contents namespace Squidex.Domain.Apps.Core.Contents
{ {
public sealed class IdContentData : ContentData<long>, IEquatable<IdContentData> public sealed class IdContentData : ContentData<long>, IEquatable<IdContentData>

3
src/Squidex.Domain.Apps.Core/Contents/NamedContentData.cs

@ -15,9 +15,6 @@ using Squidex.Domain.Apps.Core.Schemas;
using Squidex.Infrastructure; using Squidex.Infrastructure;
using Squidex.Infrastructure.Json; using Squidex.Infrastructure.Json;
// ReSharper disable SuspiciousTypeConversion.Global
// ReSharper disable InvertIf
namespace Squidex.Domain.Apps.Core.Contents namespace Squidex.Domain.Apps.Core.Contents
{ {
public sealed class NamedContentData : ContentData<string>, IEquatable<NamedContentData> public sealed class NamedContentData : ContentData<string>, IEquatable<NamedContentData>

2
src/Squidex.Domain.Apps.Core/LanguagesConfig.cs

@ -13,8 +13,6 @@ using System.Collections.Immutable;
using System.Linq; using System.Linq;
using Squidex.Infrastructure; using Squidex.Infrastructure;
// ReSharper disable InvertIf
namespace Squidex.Domain.Apps.Core namespace Squidex.Domain.Apps.Core
{ {
public sealed class LanguagesConfig : IFieldPartitioning public sealed class LanguagesConfig : IFieldPartitioning

4
src/Squidex.Domain.Apps.Core/Schemas/DateTimeField.cs

@ -16,10 +16,6 @@ using NodaTime.Text;
using Squidex.Domain.Apps.Core.Schemas.Validators; using Squidex.Domain.Apps.Core.Schemas.Validators;
using Squidex.Infrastructure; using Squidex.Infrastructure;
// ReSharper disable InvertIf
// ReSharper disable ConvertIfStatementToConditionalTernaryExpression
// ReSharper disable ConvertIfStatementToSwitchStatement
namespace Squidex.Domain.Apps.Core.Schemas namespace Squidex.Domain.Apps.Core.Schemas
{ {
public sealed class DateTimeField : Field<DateTimeFieldProperties> public sealed class DateTimeField : Field<DateTimeFieldProperties>

4
src/Squidex.Domain.Apps.Core/Schemas/DateTimeFieldProperties.cs

@ -12,10 +12,6 @@ using Newtonsoft.Json.Linq;
using NodaTime; using NodaTime;
using Squidex.Infrastructure; using Squidex.Infrastructure;
// ReSharper disable ConvertIfStatementToSwitchStatement
// ReSharper disable RedundantIfElseBlock
// ReSharper disable InvertIf
namespace Squidex.Domain.Apps.Core.Schemas namespace Squidex.Domain.Apps.Core.Schemas
{ {
[TypeName("DateTime")] [TypeName("DateTime")]

4
src/Squidex.Domain.Apps.Core/Schemas/Field.cs

@ -14,10 +14,6 @@ using NJsonSchema;
using Squidex.Domain.Apps.Core.Schemas.Validators; using Squidex.Domain.Apps.Core.Schemas.Validators;
using Squidex.Infrastructure; using Squidex.Infrastructure;
// ReSharper disable InvertIf
// ReSharper disable ConvertIfStatementToReturnStatement
// ReSharper disable ConvertIfStatementToConditionalTernaryExpression
namespace Squidex.Domain.Apps.Core.Schemas namespace Squidex.Domain.Apps.Core.Schemas
{ {
public abstract class Field : CloneableBase public abstract class Field : CloneableBase

2
src/Squidex.Domain.Apps.Core/Schemas/Json/SchemaJsonSerializer.cs

@ -12,8 +12,6 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Linq; using Newtonsoft.Json.Linq;
using Squidex.Infrastructure; using Squidex.Infrastructure;
// ReSharper disable UseObjectOrCollectionInitializer
namespace Squidex.Domain.Apps.Core.Schemas.Json namespace Squidex.Domain.Apps.Core.Schemas.Json
{ {
public sealed class SchemaJsonSerializer public sealed class SchemaJsonSerializer

3
src/Squidex.Domain.Apps.Core/Schemas/Schema.cs

@ -14,9 +14,6 @@ using Microsoft.OData.Edm;
using NJsonSchema; using NJsonSchema;
using Squidex.Infrastructure; using Squidex.Infrastructure;
// ReSharper disable ConvertIfStatementToConditionalTernaryExpression
// ReSharper disable InvertIf
namespace Squidex.Domain.Apps.Core.Schemas namespace Squidex.Domain.Apps.Core.Schemas
{ {
public sealed class Schema : CloneableBase public sealed class Schema : CloneableBase

2
src/Squidex.Domain.Apps.Core/Schemas/StringFieldProperties.cs

@ -11,8 +11,6 @@ using System.Collections.Immutable;
using Newtonsoft.Json.Linq; using Newtonsoft.Json.Linq;
using Squidex.Infrastructure; using Squidex.Infrastructure;
// ReSharper disable ObjectCreationAsStatement
namespace Squidex.Domain.Apps.Core.Schemas namespace Squidex.Domain.Apps.Core.Schemas
{ {
[TypeName("StringField")] [TypeName("StringField")]

3
src/Squidex.Domain.Apps.Core/Schemas/Validators/PatternValidator.cs

@ -11,9 +11,6 @@ using System.Text.RegularExpressions;
using System.Threading.Tasks; using System.Threading.Tasks;
using Squidex.Infrastructure.Tasks; using Squidex.Infrastructure.Tasks;
// ReSharper disable ConvertIfStatementToConditionalTernaryExpression
// ReSharper disable InvertIf
namespace Squidex.Domain.Apps.Core.Schemas.Validators namespace Squidex.Domain.Apps.Core.Schemas.Validators
{ {
public class PatternValidator : IValidator public class PatternValidator : IValidator

2
src/Squidex.Domain.Apps.Core/Schemas/Validators/StringLengthValidator.cs

@ -10,8 +10,6 @@ using System;
using System.Threading.Tasks; using System.Threading.Tasks;
using Squidex.Infrastructure.Tasks; using Squidex.Infrastructure.Tasks;
// ReSharper disable InvertIf
namespace Squidex.Domain.Apps.Core.Schemas.Validators namespace Squidex.Domain.Apps.Core.Schemas.Validators
{ {
public class StringLengthValidator : IValidator public class StringLengthValidator : IValidator

2
src/Squidex.Domain.Apps.Core/Scripting/ContentWrapper/ContentDataObject.cs

@ -14,8 +14,6 @@ using Jint.Runtime.Descriptors;
using Squidex.Domain.Apps.Core.Contents; using Squidex.Domain.Apps.Core.Contents;
using Squidex.Infrastructure; using Squidex.Infrastructure;
// ReSharper disable InvertIf
namespace Squidex.Domain.Apps.Core.Scripting.ContentWrapper namespace Squidex.Domain.Apps.Core.Scripting.ContentWrapper
{ {
public sealed class ContentDataObject : ObjectInstance public sealed class ContentDataObject : ObjectInstance

2
src/Squidex.Domain.Apps.Core/Scripting/ContentWrapper/ContentDataProperty.cs

@ -11,8 +11,6 @@ using Jint.Runtime;
using Jint.Runtime.Descriptors; using Jint.Runtime.Descriptors;
using Squidex.Domain.Apps.Core.Contents; using Squidex.Domain.Apps.Core.Contents;
// ReSharper disable InvertIf
namespace Squidex.Domain.Apps.Core.Scripting.ContentWrapper namespace Squidex.Domain.Apps.Core.Scripting.ContentWrapper
{ {
public sealed class ContentDataProperty : PropertyDescriptor public sealed class ContentDataProperty : PropertyDescriptor

2
src/Squidex.Domain.Apps.Core/Scripting/ContentWrapper/ContentFieldObject.cs

@ -12,8 +12,6 @@ using Jint.Runtime.Descriptors;
using Squidex.Domain.Apps.Core.Contents; using Squidex.Domain.Apps.Core.Contents;
using Squidex.Infrastructure; using Squidex.Infrastructure;
// ReSharper disable InvertIf
namespace Squidex.Domain.Apps.Core.Scripting.ContentWrapper namespace Squidex.Domain.Apps.Core.Scripting.ContentWrapper
{ {
public sealed class ContentFieldObject : ObjectInstance public sealed class ContentFieldObject : ObjectInstance

2
src/Squidex.Domain.Apps.Core/Scripting/ContentWrapper/ContentFieldProperty.cs

@ -10,8 +10,6 @@ using Jint.Native;
using Jint.Runtime.Descriptors; using Jint.Runtime.Descriptors;
using Newtonsoft.Json.Linq; using Newtonsoft.Json.Linq;
// ReSharper disable InvertIf
namespace Squidex.Domain.Apps.Core.Scripting.ContentWrapper namespace Squidex.Domain.Apps.Core.Scripting.ContentWrapper
{ {
public sealed class ContentFieldProperty : PropertyDescriptor public sealed class ContentFieldProperty : PropertyDescriptor

3
src/Squidex.Domain.Apps.Core/Scripting/ContentWrapper/JsonMapper.cs

@ -12,9 +12,6 @@ using Jint.Native;
using Jint.Native.Object; using Jint.Native.Object;
using Newtonsoft.Json.Linq; using Newtonsoft.Json.Linq;
// ReSharper disable SwitchStatementMissingSomeCases
// ReSharper disable InvertIf
namespace Squidex.Domain.Apps.Core.Scripting.ContentWrapper namespace Squidex.Domain.Apps.Core.Scripting.ContentWrapper
{ {
public static class JsonMapper public static class JsonMapper

2
src/Squidex.Domain.Apps.Core/Scripting/JintScriptEngine.cs

@ -15,8 +15,6 @@ using Squidex.Domain.Apps.Core.Contents;
using Squidex.Domain.Apps.Core.Scripting.ContentWrapper; using Squidex.Domain.Apps.Core.Scripting.ContentWrapper;
using Squidex.Infrastructure; using Squidex.Infrastructure;
// ReSharper disable InvertIf
namespace Squidex.Domain.Apps.Core.Scripting namespace Squidex.Domain.Apps.Core.Scripting
{ {
public sealed class JintScriptEngine : IScriptEngine public sealed class JintScriptEngine : IScriptEngine

3
src/Squidex.Domain.Apps.Events/Schemas/Utils/SchemaEventDispatcher.cs

@ -10,9 +10,6 @@ using System;
using Squidex.Domain.Apps.Core; using Squidex.Domain.Apps.Core;
using Squidex.Domain.Apps.Core.Schemas; using Squidex.Domain.Apps.Core.Schemas;
// ReSharper disable InvertIf
// ReSharper disable UnusedParameter.Global
namespace Squidex.Domain.Apps.Events.Schemas.Utils namespace Squidex.Domain.Apps.Events.Schemas.Utils
{ {
public static class SchemaEventDispatcher public static class SchemaEventDispatcher

3
src/Squidex.Domain.Apps.Read.MongoDb/Apps/MongoAppEntity.cs

@ -15,9 +15,6 @@ using Squidex.Domain.Apps.Read.Apps;
using Squidex.Infrastructure; using Squidex.Infrastructure;
using Squidex.Infrastructure.MongoDb; using Squidex.Infrastructure.MongoDb;
// ReSharper disable InvertIf
// ReSharper disable AutoPropertyCanBeMadeGetOnly.Global
namespace Squidex.Domain.Apps.Read.MongoDb.Apps namespace Squidex.Domain.Apps.Read.MongoDb.Apps
{ {
public sealed class MongoAppEntity : MongoEntity, IAppEntity public sealed class MongoAppEntity : MongoEntity, IAppEntity

2
src/Squidex.Domain.Apps.Read.MongoDb/Assets/MongoAssetRepository.cs

@ -17,8 +17,6 @@ using Squidex.Domain.Apps.Read.Assets.Repositories;
using Squidex.Infrastructure.CQRS.Events; using Squidex.Infrastructure.CQRS.Events;
using Squidex.Infrastructure.MongoDb; using Squidex.Infrastructure.MongoDb;
// ReSharper disable ClassNeverInstantiated.Local
namespace Squidex.Domain.Apps.Read.MongoDb.Assets namespace Squidex.Domain.Apps.Read.MongoDb.Assets
{ {
public partial class MongoAssetRepository : MongoRepositoryBase<MongoAssetEntity>, IAssetRepository, IEventConsumer public partial class MongoAssetRepository : MongoRepositoryBase<MongoAssetEntity>, IAssetRepository, IEventConsumer

5
src/Squidex.Domain.Apps.Read.MongoDb/Contents/MongoContentEntity.cs

@ -22,11 +22,6 @@ using Squidex.Infrastructure;
using Squidex.Infrastructure.MongoDb; using Squidex.Infrastructure.MongoDb;
using JsonConvert = Newtonsoft.Json.JsonConvert; using JsonConvert = Newtonsoft.Json.JsonConvert;
// ReSharper disable CollectionNeverUpdated.Global
// ReSharper disable AutoPropertyCanBeMadeGetOnly.Global
// ReSharper disable ConvertIfStatementToConditionalTernaryExpression
// ReSharper disable InvertIf
namespace Squidex.Domain.Apps.Read.MongoDb.Contents namespace Squidex.Domain.Apps.Read.MongoDb.Contents
{ {
public sealed class MongoContentEntity : IContentEntity, IMongoEntity public sealed class MongoContentEntity : IContentEntity, IMongoEntity

3
src/Squidex.Domain.Apps.Read.MongoDb/Contents/MongoContentRepository_EventHandling.cs

@ -17,9 +17,6 @@ using Squidex.Infrastructure.CQRS.Events;
using Squidex.Infrastructure.Dispatching; using Squidex.Infrastructure.Dispatching;
using Squidex.Infrastructure.Reflection; using Squidex.Infrastructure.Reflection;
// ReSharper disable UnusedParameterGlobal
// ReSharper disable ConvertToLambdaExpression
namespace Squidex.Domain.Apps.Read.MongoDb.Contents namespace Squidex.Domain.Apps.Read.MongoDb.Contents
{ {
public partial class MongoContentRepository public partial class MongoContentRepository

3
src/Squidex.Domain.Apps.Read.MongoDb/Contents/Visitors/ConstantVisitor.cs

@ -12,9 +12,6 @@ using Microsoft.OData.UriParser;
using NodaTime; using NodaTime;
using NodaTime.Text; using NodaTime.Text;
// ReSharper disable ConvertIfStatementToReturnStatement
// ReSharper disable InvertIf
namespace Squidex.Domain.Apps.Read.MongoDb.Contents.Visitors namespace Squidex.Domain.Apps.Read.MongoDb.Contents.Visitors
{ {
public sealed class ConstantVisitor : QueryNodeVisitor<object> public sealed class ConstantVisitor : QueryNodeVisitor<object>

2
src/Squidex.Domain.Apps.Read.MongoDb/Contents/Visitors/FilterBuilder.cs

@ -10,8 +10,6 @@ using Microsoft.OData.UriParser;
using MongoDB.Driver; using MongoDB.Driver;
using Squidex.Domain.Apps.Core.Schemas; using Squidex.Domain.Apps.Core.Schemas;
// ReSharper disable ConvertIfStatementToReturnStatement
namespace Squidex.Domain.Apps.Read.MongoDb.Contents.Visitors namespace Squidex.Domain.Apps.Read.MongoDb.Contents.Visitors
{ {
public static class FilterBuilder public static class FilterBuilder

4
src/Squidex.Domain.Apps.Read.MongoDb/Contents/Visitors/FilterVisitor.cs

@ -13,10 +13,6 @@ using MongoDB.Bson;
using MongoDB.Driver; using MongoDB.Driver;
using Squidex.Domain.Apps.Core.Schemas; using Squidex.Domain.Apps.Core.Schemas;
// ReSharper disable InvertIf
// ReSharper disable SwitchStatementMissingSomeCases
// ReSharper disable ConvertIfStatementToSwitchStatement
namespace Squidex.Domain.Apps.Read.MongoDb.Contents.Visitors namespace Squidex.Domain.Apps.Read.MongoDb.Contents.Visitors
{ {
public class FilterVisitor : QueryNodeVisitor<FilterDefinition<MongoContentEntity>> public class FilterVisitor : QueryNodeVisitor<FilterDefinition<MongoContentEntity>>

3
src/Squidex.Domain.Apps.Read.MongoDb/Contents/Visitors/FindExtensions.cs

@ -13,9 +13,6 @@ using MongoDB.Bson;
using MongoDB.Driver; using MongoDB.Driver;
using Squidex.Domain.Apps.Core.Schemas; using Squidex.Domain.Apps.Core.Schemas;
// ReSharper disable ConvertIfStatementToConditionalTernaryExpression
// ReSharper disable RedundantIfElseBlock
namespace Squidex.Domain.Apps.Read.MongoDb.Contents.Visitors namespace Squidex.Domain.Apps.Read.MongoDb.Contents.Visitors
{ {
public static class FindExtensions public static class FindExtensions

3
src/Squidex.Domain.Apps.Read.MongoDb/Contents/Visitors/PropertyVisitor.cs

@ -13,9 +13,6 @@ using Microsoft.OData.UriParser;
using MongoDB.Driver; using MongoDB.Driver;
using Squidex.Domain.Apps.Core.Schemas; using Squidex.Domain.Apps.Core.Schemas;
// ReSharper disable InvertIf
// ReSharper disable RedundantIfElseBlock
namespace Squidex.Domain.Apps.Read.MongoDb.Contents.Visitors namespace Squidex.Domain.Apps.Read.MongoDb.Contents.Visitors
{ {
public sealed class PropertyVisitor : QueryNodeVisitor<ImmutableList<string>> public sealed class PropertyVisitor : QueryNodeVisitor<ImmutableList<string>>

4
src/Squidex.Domain.Apps.Read.MongoDb/Contents/Visitors/SortBuilder.cs

@ -11,10 +11,6 @@ using Microsoft.OData.UriParser;
using MongoDB.Driver; using MongoDB.Driver;
using Squidex.Domain.Apps.Core.Schemas; using Squidex.Domain.Apps.Core.Schemas;
// ReSharper disable RedundantIfElseBlock
// ReSharper disable ConvertIfStatementToReturnStatement
// ReSharper disable ConvertIfStatementToConditionalTernaryExpression
namespace Squidex.Domain.Apps.Read.MongoDb.Contents.Visitors namespace Squidex.Domain.Apps.Read.MongoDb.Contents.Visitors
{ {
public static class SortBuilder public static class SortBuilder

2
src/Squidex.Domain.Apps.Read.MongoDb/History/ParsedHistoryEvent.cs

@ -12,8 +12,6 @@ using NodaTime;
using Squidex.Domain.Apps.Read.History; using Squidex.Domain.Apps.Read.History;
using Squidex.Infrastructure; using Squidex.Infrastructure;
// ReSharper disable LoopCanBeConvertedToQuery
namespace Squidex.Domain.Apps.Read.MongoDb.History namespace Squidex.Domain.Apps.Read.MongoDb.History
{ {
internal sealed class ParsedHistoryEvent : IHistoryEventEntity internal sealed class ParsedHistoryEvent : IHistoryEventEntity

3
src/Squidex.Domain.Apps.Read.MongoDb/Utils/EntityMapper.cs

@ -10,9 +10,6 @@ using Squidex.Domain.Apps.Events;
using Squidex.Infrastructure.CQRS.Events; using Squidex.Infrastructure.CQRS.Events;
using Squidex.Infrastructure.MongoDb; using Squidex.Infrastructure.MongoDb;
// ReSharper disable ConvertIfStatementToConditionalTernaryExpression
// ReSharper disable SuspiciousTypeConversion.Global
namespace Squidex.Domain.Apps.Read.MongoDb.Utils namespace Squidex.Domain.Apps.Read.MongoDb.Utils
{ {
public static class EntityMapper public static class EntityMapper

2
src/Squidex.Domain.Apps.Read.MongoDb/Webhooks/MongoWebhookEntity.cs

@ -14,8 +14,6 @@ using Squidex.Domain.Apps.Read.Webhooks;
using Squidex.Infrastructure; using Squidex.Infrastructure;
using Squidex.Infrastructure.MongoDb; using Squidex.Infrastructure.MongoDb;
// ReSharper disable CollectionNeverUpdated.Global
namespace Squidex.Domain.Apps.Read.MongoDb.Webhooks namespace Squidex.Domain.Apps.Read.MongoDb.Webhooks
{ {
public class MongoWebhookEntity : MongoEntity, IWebhookEntity public class MongoWebhookEntity : MongoEntity, IWebhookEntity

2
src/Squidex.Domain.Apps.Read.MongoDb/Webhooks/MongoWebhookRepository.cs

@ -18,8 +18,6 @@ using Squidex.Infrastructure;
using Squidex.Infrastructure.CQRS.Events; using Squidex.Infrastructure.CQRS.Events;
using Squidex.Infrastructure.MongoDb; using Squidex.Infrastructure.MongoDb;
// ReSharper disable SwitchStatementMissingSomeCases
namespace Squidex.Domain.Apps.Read.MongoDb.Webhooks namespace Squidex.Domain.Apps.Read.MongoDb.Webhooks
{ {
public partial class MongoWebhookRepository : MongoRepositoryBase<MongoWebhookEntity>, IWebhookRepository, IEventConsumer public partial class MongoWebhookRepository : MongoRepositoryBase<MongoWebhookEntity>, IWebhookRepository, IEventConsumer

2
src/Squidex.Domain.Apps.Read/Apps/AppHistoryEventsCreator.cs

@ -13,8 +13,6 @@ using Squidex.Infrastructure;
using Squidex.Infrastructure.CQRS.Events; using Squidex.Infrastructure.CQRS.Events;
using Squidex.Infrastructure.Dispatching; using Squidex.Infrastructure.Dispatching;
// ReSharper disable UnusedParameter.Global
namespace Squidex.Domain.Apps.Read.Apps namespace Squidex.Domain.Apps.Read.Apps
{ {
public class AppHistoryEventsCreator : HistoryEventsCreatorBase public class AppHistoryEventsCreator : HistoryEventsCreatorBase

2
src/Squidex.Domain.Apps.Read/Apps/Services/Implementations/CachingAppProvider.cs

@ -18,8 +18,6 @@ using Squidex.Infrastructure.Caching;
using Squidex.Infrastructure.CQRS.Events; using Squidex.Infrastructure.CQRS.Events;
using Squidex.Infrastructure.Tasks; using Squidex.Infrastructure.Tasks;
// ReSharper disable InvertIf
namespace Squidex.Domain.Apps.Read.Apps.Services.Implementations namespace Squidex.Domain.Apps.Read.Apps.Services.Implementations
{ {
public class CachingAppProvider : CachingProviderBase, IAppProvider, IEventConsumer public class CachingAppProvider : CachingProviderBase, IAppProvider, IEventConsumer

3
src/Squidex.Domain.Apps.Read/Contents/ContentQueryService.cs

@ -25,9 +25,6 @@ using Squidex.Infrastructure;
using Squidex.Infrastructure.Reflection; using Squidex.Infrastructure.Reflection;
using Squidex.Infrastructure.Security; using Squidex.Infrastructure.Security;
// ReSharper disable InvertIf
// ReSharper disable UnusedAutoPropertyAccessor.Local
namespace Squidex.Domain.Apps.Read.Contents namespace Squidex.Domain.Apps.Read.Contents
{ {
public sealed class ContentQueryService : IContentQueryService public sealed class ContentQueryService : IContentQueryService

2
src/Squidex.Domain.Apps.Read/Contents/GraphQL/CachingGraphQLService.cs

@ -20,8 +20,6 @@ using Squidex.Infrastructure;
using Squidex.Infrastructure.CQRS.Events; using Squidex.Infrastructure.CQRS.Events;
using Squidex.Infrastructure.Tasks; using Squidex.Infrastructure.Tasks;
// ReSharper disable InvertIf
namespace Squidex.Domain.Apps.Read.Contents.GraphQL namespace Squidex.Domain.Apps.Read.Contents.GraphQL
{ {
public sealed class CachingGraphQLService : CachingProviderBase, IGraphQLService, IEventConsumer public sealed class CachingGraphQLService : CachingProviderBase, IGraphQLService, IEventConsumer

5
src/Squidex.Domain.Apps.Read/Contents/GraphQL/GraphQLModel.cs

@ -23,11 +23,6 @@ using Squidex.Domain.Apps.Read.Schemas;
using Squidex.Infrastructure; using Squidex.Infrastructure;
using GraphQLSchema = GraphQL.Types.Schema; using GraphQLSchema = GraphQL.Types.Schema;
// ReSharper disable PrivateFieldCanBeConvertedToLocalVariable
// ReSharper disable ConvertClosureToMethodGroup
// ReSharper disable InvertIf
// ReSharper disable ParameterHidesMember
namespace Squidex.Domain.Apps.Read.Contents.GraphQL namespace Squidex.Domain.Apps.Read.Contents.GraphQL
{ {
public sealed class GraphQLModel : IGraphQLContext public sealed class GraphQLModel : IGraphQLContext

2
src/Squidex.Domain.Apps.Read/Contents/GraphQL/QueryContext.cs

@ -18,8 +18,6 @@ using Squidex.Domain.Apps.Read.Assets;
using Squidex.Domain.Apps.Read.Assets.Repositories; using Squidex.Domain.Apps.Read.Assets.Repositories;
using Squidex.Infrastructure; using Squidex.Infrastructure;
// ReSharper disable InvertIf
namespace Squidex.Domain.Apps.Read.Contents.GraphQL namespace Squidex.Domain.Apps.Read.Contents.GraphQL
{ {
public sealed class QueryContext public sealed class QueryContext

2
src/Squidex.Domain.Apps.Read/Contents/GraphQL/Types/ContentDataGraphType.cs

@ -13,8 +13,6 @@ using Squidex.Domain.Apps.Core.Contents;
using Squidex.Infrastructure; using Squidex.Infrastructure;
using Schema = Squidex.Domain.Apps.Core.Schemas.Schema; using Schema = Squidex.Domain.Apps.Core.Schemas.Schema;
// ReSharper disable InvertIf
namespace Squidex.Domain.Apps.Read.Contents.GraphQL.Types namespace Squidex.Domain.Apps.Read.Contents.GraphQL.Types
{ {
public sealed class ContentDataGraphType : ObjectGraphType<NamedContentData> public sealed class ContentDataGraphType : ObjectGraphType<NamedContentData>

2
src/Squidex.Domain.Apps.Read/Contents/GraphQL/Types/ContentQueryGraphType.cs

@ -14,8 +14,6 @@ using GraphQL.Types;
using Squidex.Domain.Apps.Read.Schemas; using Squidex.Domain.Apps.Read.Schemas;
using Squidex.Infrastructure; using Squidex.Infrastructure;
// ReSharper disable ImpureMethodCallOnReadonlyValueField
namespace Squidex.Domain.Apps.Read.Contents.GraphQL.Types namespace Squidex.Domain.Apps.Read.Contents.GraphQL.Types
{ {
public sealed class ContentQueryGraphType : ObjectGraphType public sealed class ContentQueryGraphType : ObjectGraphType

2
src/Squidex.Domain.Apps.Read/History/HistoryEventsCreatorBase.cs

@ -11,8 +11,6 @@ using System.Threading.Tasks;
using Squidex.Infrastructure; using Squidex.Infrastructure;
using Squidex.Infrastructure.CQRS.Events; using Squidex.Infrastructure.CQRS.Events;
// ReSharper disable ConvertIfStatementToReturnStatement
namespace Squidex.Domain.Apps.Read.History namespace Squidex.Domain.Apps.Read.History
{ {
public abstract class HistoryEventsCreatorBase : IHistoryEventsCreator public abstract class HistoryEventsCreatorBase : IHistoryEventsCreator

2
src/Squidex.Domain.Apps.Read/Schemas/SchemaHistoryEventsCreator.cs

@ -13,8 +13,6 @@ using Squidex.Domain.Apps.Read.History;
using Squidex.Infrastructure; using Squidex.Infrastructure;
using Squidex.Infrastructure.CQRS.Events; using Squidex.Infrastructure.CQRS.Events;
// ReSharper disable InvertIf
namespace Squidex.Domain.Apps.Read.Schemas namespace Squidex.Domain.Apps.Read.Schemas
{ {
public sealed class SchemaHistoryEventsCreator : HistoryEventsCreatorBase public sealed class SchemaHistoryEventsCreator : HistoryEventsCreatorBase

4
src/Squidex.Domain.Apps.Read/Schemas/Services/Implementations/CachingSchemaProvider.cs

@ -17,10 +17,6 @@ using Squidex.Infrastructure.Caching;
using Squidex.Infrastructure.CQRS.Events; using Squidex.Infrastructure.CQRS.Events;
using Squidex.Infrastructure.Tasks; using Squidex.Infrastructure.Tasks;
// ReSharper disable ConvertIfStatementToSwitchStatement
// ReSharper disable ConvertIfStatementToConditionalTernaryExpression
// ReSharper disable InvertIf
namespace Squidex.Domain.Apps.Read.Schemas.Services.Implementations namespace Squidex.Domain.Apps.Read.Schemas.Services.Implementations
{ {
public class CachingSchemaProvider : CachingProviderBase, ISchemaProvider, IEventConsumer public class CachingSchemaProvider : CachingProviderBase, ISchemaProvider, IEventConsumer

4
src/Squidex.Domain.Apps.Read/Webhooks/WebhookDequeuer.cs

@ -16,10 +16,6 @@ using Squidex.Infrastructure;
using Squidex.Infrastructure.Log; using Squidex.Infrastructure.Log;
using Squidex.Infrastructure.Timers; using Squidex.Infrastructure.Timers;
// ReSharper disable SwitchStatementMissingSomeCases
// ReSharper disable MethodSupportsCancellation
// ReSharper disable InvertIf
namespace Squidex.Domain.Apps.Read.Webhooks namespace Squidex.Domain.Apps.Read.Webhooks
{ {
public sealed class WebhookDequeuer : DisposableObjectBase, IExternalSystem public sealed class WebhookDequeuer : DisposableObjectBase, IExternalSystem

2
src/Squidex.Domain.Apps.Read/Webhooks/WebhookSender.cs

@ -13,8 +13,6 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Squidex.Infrastructure.Http; using Squidex.Infrastructure.Http;
// ReSharper disable SuggestVarOrType_SimpleTypes
namespace Squidex.Domain.Apps.Read.Webhooks namespace Squidex.Domain.Apps.Read.Webhooks
{ {
public class WebhookSender public class WebhookSender

2
src/Squidex.Domain.Apps.Write/Apps/AppClient.cs

@ -9,8 +9,6 @@
using System; using System;
using Squidex.Infrastructure; using Squidex.Infrastructure;
// ReSharper disable InvertIf
namespace Squidex.Domain.Apps.Write.Apps namespace Squidex.Domain.Apps.Write.Apps
{ {
public sealed class AppClient public sealed class AppClient

2
src/Squidex.Domain.Apps.Write/Apps/AppClients.cs

@ -10,8 +10,6 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using Squidex.Infrastructure; using Squidex.Infrastructure;
// ReSharper disable InvertIf
namespace Squidex.Domain.Apps.Write.Apps namespace Squidex.Domain.Apps.Write.Apps
{ {
public class AppClients public class AppClients

2
src/Squidex.Domain.Apps.Write/Apps/AppCommandMiddleware.cs

@ -16,8 +16,6 @@ using Squidex.Infrastructure.CQRS.Commands;
using Squidex.Infrastructure.Dispatching; using Squidex.Infrastructure.Dispatching;
using Squidex.Shared.Users; using Squidex.Shared.Users;
// ReSharper disable InvertIf
namespace Squidex.Domain.Apps.Write.Apps namespace Squidex.Domain.Apps.Write.Apps
{ {
public class AppCommandMiddleware : ICommandMiddleware public class AppCommandMiddleware : ICommandMiddleware

2
src/Squidex.Domain.Apps.Write/Apps/AppContributors.cs

@ -12,8 +12,6 @@ using System.Linq;
using Squidex.Domain.Apps.Core.Apps; using Squidex.Domain.Apps.Core.Apps;
using Squidex.Infrastructure; using Squidex.Infrastructure;
// ReSharper disable InvertIf
namespace Squidex.Domain.Apps.Write.Apps namespace Squidex.Domain.Apps.Write.Apps
{ {
public class AppContributors public class AppContributors

2
src/Squidex.Domain.Apps.Write/Apps/AppDomainObject.cs

@ -18,8 +18,6 @@ using Squidex.Infrastructure.CQRS.Events;
using Squidex.Infrastructure.Dispatching; using Squidex.Infrastructure.Dispatching;
using Squidex.Infrastructure.Reflection; using Squidex.Infrastructure.Reflection;
// ReSharper disable InvertIf
namespace Squidex.Domain.Apps.Write.Apps namespace Squidex.Domain.Apps.Write.Apps
{ {
public class AppDomainObject : DomainObjectBase public class AppDomainObject : DomainObjectBase

2
src/Squidex.Domain.Apps.Write/Assets/AssetDomainObject.cs

@ -15,8 +15,6 @@ using Squidex.Infrastructure.CQRS.Events;
using Squidex.Infrastructure.Dispatching; using Squidex.Infrastructure.Dispatching;
using Squidex.Infrastructure.Reflection; using Squidex.Infrastructure.Reflection;
// ReSharper disable UnusedParameter.Local
namespace Squidex.Domain.Apps.Write.Assets namespace Squidex.Domain.Apps.Write.Assets
{ {
public class AssetDomainObject : DomainObjectBase public class AssetDomainObject : DomainObjectBase

2
src/Squidex.Domain.Apps.Write/Contents/ContentCommandMiddleware.cs

@ -25,8 +25,6 @@ using Squidex.Infrastructure;
using Squidex.Infrastructure.CQRS.Commands; using Squidex.Infrastructure.CQRS.Commands;
using Squidex.Infrastructure.Dispatching; using Squidex.Infrastructure.Dispatching;
// ReSharper disable ConvertToLambdaExpression
namespace Squidex.Domain.Apps.Write.Contents namespace Squidex.Domain.Apps.Write.Contents
{ {
public class ContentCommandMiddleware : ICommandMiddleware public class ContentCommandMiddleware : ICommandMiddleware

2
src/Squidex.Domain.Apps.Write/Webhooks/Commands/WebhookAggregateCommand.cs

@ -9,8 +9,6 @@
using System; using System;
using Squidex.Infrastructure.CQRS.Commands; using Squidex.Infrastructure.CQRS.Commands;
// ReSharper disable MemberCanBeProtected.Global
namespace Squidex.Domain.Apps.Write.Webhooks.Commands namespace Squidex.Domain.Apps.Write.Webhooks.Commands
{ {
public abstract class WebhookAggregateCommand : AppCommand, IAggregateCommand public abstract class WebhookAggregateCommand : AppCommand, IAggregateCommand

3
src/Squidex.Domain.Users/UserExtensions.cs

@ -12,9 +12,6 @@ using Squidex.Infrastructure;
using Squidex.Shared.Identity; using Squidex.Shared.Identity;
using Squidex.Shared.Users; using Squidex.Shared.Users;
// ReSharper disable PossibleNullReferenceException
// ReSharper disable InvertIf
namespace Squidex.Domain.Users namespace Squidex.Domain.Users
{ {
public static class UserExtensions public static class UserExtensions

4
src/Squidex.Domain.Users/UserManagerExtensions.cs

@ -14,10 +14,6 @@ using Microsoft.AspNetCore.Identity;
using Squidex.Infrastructure; using Squidex.Infrastructure;
using Squidex.Shared.Users; using Squidex.Shared.Users;
// ReSharper disable ImplicitlyCapturedClosure
// ReSharper disable InvertIf
// ReSharper disable ReturnTypeCanBeEnumerable.Local
namespace Squidex.Domain.Users namespace Squidex.Domain.Users
{ {
public static class UserManagerExtensions public static class UserManagerExtensions

3
src/Squidex.Infrastructure.GetEventStore/CQRS/Events/GetEventStore.cs

@ -12,9 +12,6 @@ using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using EventStore.ClientAPI; using EventStore.ClientAPI;
// ReSharper disable ConvertIfStatementToSwitchStatement
// ReSharper disable InvertIf
namespace Squidex.Infrastructure.CQRS.Events namespace Squidex.Infrastructure.CQRS.Events
{ {
public sealed class GetEventStore : IEventStore, IExternalSystem public sealed class GetEventStore : IEventStore, IExternalSystem

2
src/Squidex.Infrastructure.GetEventStore/CQRS/Events/GetEventStoreSubscription.cs

@ -18,8 +18,6 @@ using EventStore.ClientAPI;
using EventStore.ClientAPI.Exceptions; using EventStore.ClientAPI.Exceptions;
using EventStore.ClientAPI.Projections; using EventStore.ClientAPI.Projections;
// ReSharper disable InvertIf
namespace Squidex.Infrastructure.CQRS.Events namespace Squidex.Infrastructure.CQRS.Events
{ {
internal sealed class GetEventStoreSubscription : DisposableObjectBase, IEventSubscription internal sealed class GetEventStoreSubscription : DisposableObjectBase, IEventSubscription

3
src/Squidex.Infrastructure.MongoDb/CQRS/Events/MongoEventConsumerInfoRepository.cs

@ -13,9 +13,6 @@ using MongoDB.Bson;
using MongoDB.Driver; using MongoDB.Driver;
using Squidex.Infrastructure.MongoDb; using Squidex.Infrastructure.MongoDb;
// ReSharper disable ConvertIfStatementToReturnStatement
// ReSharper disable RedundantIfElseBlock
namespace Squidex.Infrastructure.CQRS.Events namespace Squidex.Infrastructure.CQRS.Events
{ {
public sealed class MongoEventConsumerInfoRepository : MongoRepositoryBase<MongoEventConsumerInfo>, IEventConsumerInfoRepository public sealed class MongoEventConsumerInfoRepository : MongoRepositoryBase<MongoEventConsumerInfo>, IEventConsumerInfoRepository

4
src/Squidex.Infrastructure.MongoDb/CQRS/Events/MongoEventStore.cs

@ -17,10 +17,6 @@ using MongoDB.Driver;
using Squidex.Infrastructure.MongoDb; using Squidex.Infrastructure.MongoDb;
using Squidex.Infrastructure.Tasks; using Squidex.Infrastructure.Tasks;
// ReSharper disable RedundantIfElseBlock
// ReSharper disable InvertIf
// ReSharper disable ConvertIfStatementToConditionalTernaryExpression
namespace Squidex.Infrastructure.CQRS.Events namespace Squidex.Infrastructure.CQRS.Events
{ {
public class MongoEventStore : MongoRepositoryBase<MongoEventCommit>, IEventStore public class MongoEventStore : MongoRepositoryBase<MongoEventCommit>, IEventStore

2
src/Squidex.Infrastructure.MongoDb/CQRS/Events/PollingSubscription.cs

@ -11,8 +11,6 @@ using System.Threading.Tasks;
using Squidex.Infrastructure.Tasks; using Squidex.Infrastructure.Tasks;
using Squidex.Infrastructure.Timers; using Squidex.Infrastructure.Timers;
// ReSharper disable InvertIf
namespace Squidex.Infrastructure.CQRS.Events namespace Squidex.Infrastructure.CQRS.Events
{ {
public sealed class PollingSubscription : DisposableObjectBase, IEventSubscription public sealed class PollingSubscription : DisposableObjectBase, IEventSubscription

2
src/Squidex.Infrastructure.MongoDb/CQRS/Events/StreamPosition.cs

@ -6,8 +6,6 @@
// All rights reserved. // All rights reserved.
// ========================================================================== // ==========================================================================
// ReSharper disable InvertIf
using MongoDB.Bson; using MongoDB.Bson;
namespace Squidex.Infrastructure.CQRS.Events namespace Squidex.Infrastructure.CQRS.Events

2
src/Squidex.Infrastructure.MongoDb/MongoDb/InstantSerializer.cs

@ -11,8 +11,6 @@ using MongoDB.Bson.Serialization;
using MongoDB.Bson.Serialization.Serializers; using MongoDB.Bson.Serialization.Serializers;
using NodaTime; using NodaTime;
// ReSharper disable InvertIf
namespace Squidex.Infrastructure.MongoDb namespace Squidex.Infrastructure.MongoDb
{ {
public sealed class InstantSerializer : SerializerBase<Instant>, IBsonPolymorphicSerializer public sealed class InstantSerializer : SerializerBase<Instant>, IBsonPolymorphicSerializer

2
src/Squidex.Infrastructure.MongoDb/MongoDb/RefTokenSerializer.cs

@ -10,8 +10,6 @@ using System;
using MongoDB.Bson.Serialization; using MongoDB.Bson.Serialization;
using MongoDB.Bson.Serialization.Serializers; using MongoDB.Bson.Serialization.Serializers;
// ReSharper disable InvertIf
namespace Squidex.Infrastructure.MongoDb namespace Squidex.Infrastructure.MongoDb
{ {
public class RefTokenSerializer : SerializerBase<RefToken> public class RefTokenSerializer : SerializerBase<RefToken>

2
src/Squidex.Infrastructure.RabbitMq/CQRS/Events/RabbitMqEventConsumer.cs

@ -13,8 +13,6 @@ using Newtonsoft.Json;
using RabbitMQ.Client; using RabbitMQ.Client;
using Squidex.Infrastructure.Tasks; using Squidex.Infrastructure.Tasks;
// ReSharper disable InvertIf
namespace Squidex.Infrastructure.CQRS.Events namespace Squidex.Infrastructure.CQRS.Events
{ {
public sealed class RabbitMqEventConsumer : DisposableObjectBase, IExternalSystem, IEventConsumer public sealed class RabbitMqEventConsumer : DisposableObjectBase, IExternalSystem, IEventConsumer

2
src/Squidex.Infrastructure.Redis/RedisSubscription.cs

@ -12,8 +12,6 @@ using System.Reactive.Subjects;
using Squidex.Infrastructure.Log; using Squidex.Infrastructure.Log;
using StackExchange.Redis; using StackExchange.Redis;
// ReSharper disable InvertIf
namespace Squidex.Infrastructure namespace Squidex.Infrastructure
{ {
internal sealed class RedisSubscription internal sealed class RedisSubscription

3
src/Squidex.Infrastructure/CQRS/Commands/AggregateHandler.cs

@ -10,9 +10,6 @@ using System;
using System.Threading.Tasks; using System.Threading.Tasks;
using Squidex.Infrastructure.CQRS.Events; using Squidex.Infrastructure.CQRS.Events;
// ReSharper disable ConvertIfStatementToConditionalTernaryExpression
// ReSharper disable InvertIf
namespace Squidex.Infrastructure.CQRS.Commands namespace Squidex.Infrastructure.CQRS.Commands
{ {
public sealed class AggregateHandler : IAggregateHandler public sealed class AggregateHandler : IAggregateHandler

1
src/Squidex.Infrastructure/CQRS/Commands/EntityCreatedResult{T}.cs

@ -6,7 +6,6 @@
// All rights reserved. // All rights reserved.
// ========================================================================== // ==========================================================================
#pragma warning disable SA1649 // File name must match first type name
namespace Squidex.Infrastructure.CQRS.Commands namespace Squidex.Infrastructure.CQRS.Commands
{ {
public sealed class EntityCreatedResult<T> : EntitySavedResult public sealed class EntityCreatedResult<T> : EntitySavedResult

2
src/Squidex.Infrastructure/CQRS/DomainObjectBase.cs

@ -10,8 +10,6 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using Squidex.Infrastructure.CQRS.Events; using Squidex.Infrastructure.CQRS.Events;
#pragma warning disable SA1107 // Code must not contain multiple statements on one line
namespace Squidex.Infrastructure.CQRS namespace Squidex.Infrastructure.CQRS
{ {
public abstract class DomainObjectBase : IAggregate, IEquatable<IAggregate> public abstract class DomainObjectBase : IAggregate, IEquatable<IAggregate>

13
src/Squidex.Infrastructure/CQRS/Events/Envelope{T}.cs

@ -6,35 +6,34 @@
// All rights reserved. // All rights reserved.
// ========================================================================== // ==========================================================================
#pragma warning disable SA1649 // File name must match first type name
namespace Squidex.Infrastructure.CQRS.Events namespace Squidex.Infrastructure.CQRS.Events
{ {
public class Envelope<TPayload> where TPayload : class public class Envelope<T> where T : class
{ {
private readonly EnvelopeHeaders headers; private readonly EnvelopeHeaders headers;
private readonly TPayload payload; private readonly T payload;
public EnvelopeHeaders Headers public EnvelopeHeaders Headers
{ {
get { return headers; } get { return headers; }
} }
public TPayload Payload public T Payload
{ {
get { return payload; } get { return payload; }
} }
public Envelope(TPayload payload) public Envelope(T payload)
: this(payload, new EnvelopeHeaders()) : this(payload, new EnvelopeHeaders())
{ {
} }
public Envelope(TPayload payload, PropertiesBag bag) public Envelope(T payload, PropertiesBag bag)
: this(payload, new EnvelopeHeaders(bag)) : this(payload, new EnvelopeHeaders(bag))
{ {
} }
public Envelope(TPayload payload, EnvelopeHeaders headers) public Envelope(T payload, EnvelopeHeaders headers)
{ {
Guard.NotNull(payload, nameof(payload)); Guard.NotNull(payload, nameof(payload));
Guard.NotNull(headers, nameof(headers)); Guard.NotNull(headers, nameof(headers));

2
src/Squidex.Infrastructure/CQRS/Events/EventDataFormatter.cs

@ -9,8 +9,6 @@
using System; using System;
using Newtonsoft.Json; using Newtonsoft.Json;
// ReSharper disable ClassWithVirtualMembersNeverInherited.Global
namespace Squidex.Infrastructure.CQRS.Events namespace Squidex.Infrastructure.CQRS.Events
{ {
public class EventDataFormatter public class EventDataFormatter

2
src/Squidex.Infrastructure/CQRS/Events/EventReceiver.cs

@ -11,8 +11,6 @@ using System.Threading.Tasks;
using Squidex.Infrastructure.Log; using Squidex.Infrastructure.Log;
using Squidex.Infrastructure.Timers; using Squidex.Infrastructure.Timers;
// ReSharper disable InvertIf
namespace Squidex.Infrastructure.CQRS.Events namespace Squidex.Infrastructure.CQRS.Events
{ {
public sealed class EventReceiver : DisposableObjectBase public sealed class EventReceiver : DisposableObjectBase

3
src/Squidex.Infrastructure/CollectionExtensions.cs

@ -10,9 +10,6 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
// ReSharper disable InvertIf
// ReSharper disable LoopCanBeConvertedToQuery
namespace Squidex.Infrastructure namespace Squidex.Infrastructure
{ {
public static class CollectionExtensions public static class CollectionExtensions

2
src/Squidex.Infrastructure/DomainObjectException.cs

@ -8,8 +8,6 @@
using System; using System;
// ReSharper disable SuggestBaseTypeForParameter
namespace Squidex.Infrastructure namespace Squidex.Infrastructure
{ {
public class DomainObjectException : Exception public class DomainObjectException : Exception

2
src/Squidex.Infrastructure/FileExtensions.cs

@ -8,8 +8,6 @@
using System.IO; using System.IO;
// ReSharper disable InvertIf
namespace Squidex.Infrastructure namespace Squidex.Infrastructure
{ {
public static class FileExtensions public static class FileExtensions

2
src/Squidex.Infrastructure/GravatarHelper.cs

@ -9,8 +9,6 @@
using System.Security.Cryptography; using System.Security.Cryptography;
using System.Text; using System.Text;
// ReSharper disable ForCanBeConvertedToForeach
namespace Squidex.Infrastructure namespace Squidex.Infrastructure
{ {
public static class GravatarHelper public static class GravatarHelper

2
src/Squidex.Infrastructure/Guard.cs

@ -13,8 +13,6 @@ using System.IO;
using System.Linq; using System.Linq;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
// ReSharper disable InvertIf
namespace Squidex.Infrastructure namespace Squidex.Infrastructure
{ {
public static class Guard public static class Guard

2
src/Squidex.Infrastructure/Http/DumpFormatter.cs

@ -12,8 +12,6 @@ using System.Net.Http;
using System.Net.Http.Headers; using System.Net.Http.Headers;
using System.Text; using System.Text;
// ReSharper disable InvertIf
namespace Squidex.Infrastructure.Http namespace Squidex.Infrastructure.Http
{ {
public static class DumpFormatter public static class DumpFormatter

2
src/Squidex.Infrastructure/Json/InstantConverter.cs

@ -11,8 +11,6 @@ using Newtonsoft.Json;
using NodaTime; using NodaTime;
using NodaTime.Text; using NodaTime.Text;
// ReSharper disable ConvertIfStatementToSwitchStatement
namespace Squidex.Infrastructure.Json namespace Squidex.Infrastructure.Json
{ {
public sealed class InstantConverter : JsonConverter public sealed class InstantConverter : JsonConverter

2
src/Squidex.Infrastructure/Language.cs

@ -10,8 +10,6 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
// ReSharper disable ConvertIfStatementToReturnStatement
namespace Squidex.Infrastructure namespace Squidex.Infrastructure
{ {
public sealed partial class Language public sealed partial class Language

2
src/Squidex.Infrastructure/Log/Adapter/SemanticLogLogger.cs

@ -9,8 +9,6 @@
using System; using System;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
// ReSharper disable SwitchStatementMissingSomeCases
namespace Squidex.Infrastructure.Log.Adapter namespace Squidex.Infrastructure.Log.Adapter
{ {
internal sealed class SemanticLogLogger : ILogger internal sealed class SemanticLogLogger : ILogger

2
src/Squidex.Infrastructure/Log/Internal/AnsiLogConsole.cs

@ -8,8 +8,6 @@
using System; using System;
// ReSharper disable SwitchStatementMissingSomeCases
namespace Squidex.Infrastructure.Log.Internal namespace Squidex.Infrastructure.Log.Internal
{ {
public class AnsiLogConsole : IConsole public class AnsiLogConsole : IConsole

2
src/Squidex.Infrastructure/Log/Internal/FileLogProcessor.cs

@ -12,8 +12,6 @@ using System.IO;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
// ReSharper disable InvertIf
namespace Squidex.Infrastructure.Log.Internal namespace Squidex.Infrastructure.Log.Internal
{ {
public class FileLogProcessor : DisposableObjectBase public class FileLogProcessor : DisposableObjectBase

2
src/Squidex.Infrastructure/Log/SemanticLogExtensions.cs

@ -9,8 +9,6 @@
using System; using System;
using System.Diagnostics; using System.Diagnostics;
// ReSharper disable InvertIf
namespace Squidex.Infrastructure.Log namespace Squidex.Infrastructure.Log
{ {
public static class SemanticLogExtensions public static class SemanticLogExtensions

2
src/Squidex.Infrastructure/Reflection/SimpleMapper.cs

@ -11,8 +11,6 @@ using System.Collections.Generic;
using System.Globalization; using System.Globalization;
using System.Linq; using System.Linq;
// ReSharper disable StaticMemberInGenericType
namespace Squidex.Infrastructure.Reflection namespace Squidex.Infrastructure.Reflection
{ {
public static class SimpleMapper public static class SimpleMapper

3
src/Squidex.Infrastructure/Timers/CompletionTimer.cs

@ -10,9 +10,6 @@ using System;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
// ReSharper disable RedundantJumpStatement
// ReSharper disable InvertIf
namespace Squidex.Infrastructure.Timers namespace Squidex.Infrastructure.Timers
{ {
public sealed class CompletionTimer public sealed class CompletionTimer

3
src/Squidex.Infrastructure/TypeNameRegistry.cs

@ -10,9 +10,6 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Reflection; using System.Reflection;
// ReSharper disable PossibleNullReferenceException
// ReSharper disable InvertIf
namespace Squidex.Infrastructure namespace Squidex.Infrastructure
{ {
public sealed class TypeNameRegistry public sealed class TypeNameRegistry

2
src/Squidex.Infrastructure/ValidationExtensions.cs

@ -11,8 +11,6 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
// ReSharper disable ObjectCreationAsStatement
namespace Squidex.Infrastructure namespace Squidex.Infrastructure
{ {
public static class ValidationExtensions public static class ValidationExtensions

2
src/Squidex/Config/Domain/AssetStoreModule.cs

@ -13,8 +13,6 @@ using Squidex.Infrastructure;
using Squidex.Infrastructure.Assets; using Squidex.Infrastructure.Assets;
using Squidex.Infrastructure.Log; using Squidex.Infrastructure.Log;
// ReSharper disable InvertIf
namespace Squidex.Config.Domain namespace Squidex.Config.Domain
{ {
public sealed class AssetStoreModule : Module public sealed class AssetStoreModule : Module

2
src/Squidex/Config/Domain/EventPublishersModule.cs

@ -13,8 +13,6 @@ using Newtonsoft.Json;
using Squidex.Infrastructure; using Squidex.Infrastructure;
using Squidex.Infrastructure.CQRS.Events; using Squidex.Infrastructure.CQRS.Events;
// ReSharper disable InvertIf
namespace Squidex.Config.Domain namespace Squidex.Config.Domain
{ {
public sealed class EventPublishersModule : Module public sealed class EventPublishersModule : Module

2
src/Squidex/Config/Domain/InfrastructureModule.cs

@ -27,8 +27,6 @@ using Squidex.Infrastructure.Log;
using Squidex.Infrastructure.UsageTracking; using Squidex.Infrastructure.UsageTracking;
using Squidex.Pipeline; using Squidex.Pipeline;
// ReSharper disable UnusedAutoPropertyAccessor.Local
namespace Squidex.Config.Domain namespace Squidex.Config.Domain
{ {
public sealed class InfrastructureModule : Module public sealed class InfrastructureModule : Module

2
src/Squidex/Config/Domain/ReadModule.cs

@ -28,8 +28,6 @@ using Squidex.Infrastructure.Assets;
using Squidex.Infrastructure.CQRS.Events; using Squidex.Infrastructure.CQRS.Events;
using Squidex.Pipeline; using Squidex.Pipeline;
// ReSharper disable UnusedAutoPropertyAccessor.Local
namespace Squidex.Config.Domain namespace Squidex.Config.Domain
{ {
public sealed class ReadModule : Module public sealed class ReadModule : Module

2
src/Squidex/Config/Domain/WriteModule.cs

@ -18,8 +18,6 @@ using Squidex.Domain.Apps.Write.Webhooks;
using Squidex.Infrastructure.CQRS.Commands; using Squidex.Infrastructure.CQRS.Commands;
using Squidex.Pipeline.CommandMiddlewares; using Squidex.Pipeline.CommandMiddlewares;
// ReSharper disable UnusedAutoPropertyAccessor.Local
namespace Squidex.Config.Domain namespace Squidex.Config.Domain
{ {
public class WriteModule : Module public class WriteModule : Module

2
src/Squidex/Config/Identity/GithubIdentityUsage.cs

@ -11,8 +11,6 @@ using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options; using Microsoft.Extensions.Options;
// ReSharper disable InvertIf
namespace Squidex.Config.Identity namespace Squidex.Config.Identity
{ {
public static class GitHubIdentityUsage public static class GitHubIdentityUsage

2
src/Squidex/Config/Identity/GoogleHandler.cs

@ -13,8 +13,6 @@ using Microsoft.AspNetCore.Authentication.OAuth;
using Squidex.Infrastructure.Tasks; using Squidex.Infrastructure.Tasks;
using Squidex.Shared.Identity; using Squidex.Shared.Identity;
// ReSharper disable InvertIf
namespace Squidex.Config.Identity namespace Squidex.Config.Identity
{ {
public sealed class GoogleHandler : OAuthEvents public sealed class GoogleHandler : OAuthEvents

2
src/Squidex/Config/Identity/GoogleIdentityUsage.cs

@ -10,8 +10,6 @@ using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options; using Microsoft.Extensions.Options;
// ReSharper disable InvertIf
namespace Squidex.Config.Identity namespace Squidex.Config.Identity
{ {
public static class GoogleIdentityUsage public static class GoogleIdentityUsage

3
src/Squidex/Config/Identity/IdentityUsage.cs

@ -19,9 +19,6 @@ using Squidex.Infrastructure.Log;
using Squidex.Shared.Identity; using Squidex.Shared.Identity;
using Squidex.Shared.Users; using Squidex.Shared.Users;
// ReSharper disable ConvertIfStatementToConditionalTernaryExpression
// ReSharper disable InvertIf
namespace Squidex.Config.Identity namespace Squidex.Config.Identity
{ {
public static class IdentityUsage public static class IdentityUsage

2
src/Squidex/Config/Identity/MicrosoftHandler.cs

@ -11,8 +11,6 @@ using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication.OAuth; using Microsoft.AspNetCore.Authentication.OAuth;
using Squidex.Shared.Identity; using Squidex.Shared.Identity;
// ReSharper disable InvertIf
namespace Squidex.Config.Identity namespace Squidex.Config.Identity
{ {
public sealed class MicrosoftHandler : OAuthEvents public sealed class MicrosoftHandler : OAuthEvents

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save