Skip to content

Commit

Permalink
#371 Enhance style configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstone committed Aug 15, 2020
1 parent 41a45c4 commit 743cfe6
Show file tree
Hide file tree
Showing 202 changed files with 3,715 additions and 662 deletions.
25 changes: 20 additions & 5 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ dotnet_style_predefined_type_for_locals_parameters_members = false : error
dotnet_style_predefined_type_for_member_access = false : error

# Parentheses preferences
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity : silent
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity : silent
dotnet_style_parentheses_in_other_operators = never_if_unnecessary : silent
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity : silent
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity : suggestion
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity : suggestion
dotnet_style_parentheses_in_other_operators = never_if_unnecessary : suggestion
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity : suggestion

# Modifier preferences
dotnet_style_require_accessibility_modifiers = for_non_interface_members : silent
Expand Down Expand Up @@ -231,4 +231,19 @@ dotnet_diagnostic.CA1027.severity = silent
dotnet_diagnostic.CA1031.severity = silent

# IDE0075: Simplify conditional expression
dotnet_style_prefer_simplified_boolean_expressions = false : none
dotnet_style_prefer_simplified_boolean_expressions = false : none

# PH_S002: Monitor Discouraged Sync Object
dotnet_diagnostic.PH_S002.severity = none

# PH_S005: Fake-Async Methods
dotnet_diagnostic.PH_S005.severity = none

# PH_B007: Non-Atomic Access to Concurrent Collection
dotnet_diagnostic.PH_B007.severity = silent

# PH_P006: Discouraged Monitor Method
dotnet_diagnostic.PH_P006.severity = silent

# PH_P007: Unused Cancellation Token
dotnet_diagnostic.PH_P007.severity = silent
7 changes: 7 additions & 0 deletions RapidField.SolidInstruments.sln
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RapidField.SolidInstruments
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RapidField.SolidInstruments.DataAccess.DotNetNative.Ef", "src\RapidField.SolidInstruments.DataAccess.DotNetNative.Ef\RapidField.SolidInstruments.DataAccess.DotNetNative.Ef.csproj", "{F20759D5-D39D-4C31-8A23-AEAA606776E6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RapidField.SolidInstruments.Example.Domain.AccessControl", "example\RapidField.SolidInstruments.Example.Domain.AccessControl\RapidField.SolidInstruments.Example.Domain.AccessControl.csproj", "{7B185E3A-3A26-4188-9FB4-DED7E4EF5C3D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -613,6 +615,10 @@ Global
{F20759D5-D39D-4C31-8A23-AEAA606776E6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F20759D5-D39D-4C31-8A23-AEAA606776E6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F20759D5-D39D-4C31-8A23-AEAA606776E6}.Release|Any CPU.Build.0 = Release|Any CPU
{7B185E3A-3A26-4188-9FB4-DED7E4EF5C3D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7B185E3A-3A26-4188-9FB4-DED7E4EF5C3D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7B185E3A-3A26-4188-9FB4-DED7E4EF5C3D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7B185E3A-3A26-4188-9FB4-DED7E4EF5C3D}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -686,6 +692,7 @@ Global
{8FFB8E4C-5858-4D18-B8DA-D669EED643AB} = {F58E05BE-9DC6-41B4-8324-C006F6CE7CC7}
{266AC8D7-BDA0-42B0-B473-9025EDEB8DF8} = {F58E05BE-9DC6-41B4-8324-C006F6CE7CC7}
{F20759D5-D39D-4C31-8A23-AEAA606776E6} = {F58E05BE-9DC6-41B4-8324-C006F6CE7CC7}
{7B185E3A-3A26-4188-9FB4-DED7E4EF5C3D} = {BEB60D41-11BB-4C6E-8F5D-1E7990A27C34}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {834FCFB0-DA00-4ABD-9424-6FE1398A9F6E}
Expand Down
1 change: 1 addition & 0 deletions en-US_User.dic
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ apidoc
appveyor
assignees
astextplain
Async
atm
Autofac
backmerge
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// =================================================================================================================================
// Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
// =================================================================================================================================

using System.Runtime.CompilerServices;

[assembly: DisablePrivateReflection()]
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!--
Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
-->

[![Solid Instruments](../../SolidInstruments.Logo.Color.Transparent.500w.png)](../../README.md)
- - -

# RapidField.SolidInstruments.Example.Domain

This document describes the purpose of the [`RapidField.SolidInstruments.Example.Domain.AccessControl`]() project.

## Purpose

This project demonstrates access control domain logic utilizing the **Solid Instruments** [data access](../../src/RapidField.SolidInstruments.DataAccess/README.md) and [messaging](../../src/RapidField.SolidInstruments.Messaging/README.md) constructs.

## License

[![License](https://img.shields.io/github/license/rapidfield/solid-instruments?style=flat&color=lightseagreen&label=license&logo=open-access&logoColor=lightgrey)](../../LICENSE.txt)

**Solid Instruments** is [MIT-licensed](https://en.wikipedia.org/wiki/MIT_License). Review the [license terms](../../LICENSE.txt) for more information.

<br />

- - -

<br />

[![RapidField](../../RapidField.Logo.Color.Black.Transparent.200w.png)](https://www.rapidfield.com)

###### Copyright (c) RapidField LLC. All rights reserved. "RapidField" and "Solid Instruments" are trademarks of RapidField LLC.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
-->
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Authors>Solid Instruments contributors</Authors>
<Company>RapidField</Company>
<Copyright>Copyright (c) RapidField LLC. All rights reserved.</Copyright>
<Product>Solid Instruments</Product>
<Description>This project demonstrates access control domain logic utilizing the Solid Instruments data access and messaging constructs.</Description>
<Version>$(BuildVersion)</Version>
<TargetFramework>netstandard2.1</TargetFramework>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DocumentationFile>bin\Debug\netstandard2.1\RapidField.SolidInstruments.Example.Domain.AccessControl.xml</DocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors />
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DocumentationFile>bin\Release\netstandard2.1\RapidField.SolidInstruments.Example.Domain.AccessControl.xml</DocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors />
</PropertyGroup>
<ItemGroup>
<Content Include="..\..\LICENSE.txt" Link="LICENSE.txt" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\RapidField.SolidInstruments.DataAccess.DotNetNative.Ef\RapidField.SolidInstruments.DataAccess.DotNetNative.Ef.csproj" />
<ProjectReference Include="..\..\src\RapidField.SolidInstruments.InversionOfControl.DotNetNative\RapidField.SolidInstruments.InversionOfControl.DotNetNative.csproj" />
<ProjectReference Include="..\..\src\RapidField.SolidInstruments.Messaging.DotNetNative\RapidField.SolidInstruments.Messaging.DotNetNative.csproj" />
<ProjectReference Include="..\RapidField.SolidInstruments.Example.Domain\RapidField.SolidInstruments.Example.Domain.csproj" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
// =================================================================================================================================
// Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
// =================================================================================================================================

using RapidField.SolidInstruments.EventAuthoring;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.Serialization;
using DomainModel = RapidField.SolidInstruments.Example.Domain.Models.User.DomainModel;
using ReportedEvent = RapidField.SolidInstruments.Example.Domain.Events.ModelState.User.DomainModelCreatedEvent;

namespace RapidField.SolidInstruments.Example.Domain.Commands.ModelState.User
{
/// <summary>
/// Represents a command to create a <see cref="DomainModel" />.
/// </summary>
[DataContract(Name = DataContractName)]
public sealed class CreateDomainModelCommand : CreateDomainModelReportableCommand<DomainModel, ReportedEvent>
{
/// <summary>
/// Initializes a new instance of the <see cref="CreateDomainModelCommand" /> class.
/// </summary>
public CreateDomainModelCommand()
: base()
{
return;
}

/// <summary>
/// Initializes a new instance of the <see cref="CreateDomainModelCommand" /> class.
/// </summary>
/// <param name="correlationIdentifier">
/// A unique identifier that is assigned to related commands.
/// </param>
/// <exception cref="ArgumentOutOfRangeException">
/// <paramref name="correlationIdentifier" /> is equal to <see cref="Guid.Empty" />.
/// </exception>
public CreateDomainModelCommand(Guid correlationIdentifier)
: base(correlationIdentifier)
{
return;
}

/// <summary>
/// Initializes a new instance of the <see cref="CreateDomainModelCommand" /> class.
/// </summary>
/// <param name="model">
/// The desired state of the associated domain model.
/// </param>
/// <exception cref="ArgumentNullException">
/// <paramref name="model" /> is <see langword="null" />.
/// </exception>
public CreateDomainModelCommand(DomainModel model)
: base(model)
{
return;
}

/// <summary>
/// Initializes a new instance of the <see cref="CreateDomainModelCommand" /> class.
/// </summary>
/// <param name="model">
/// The desired state of the associated domain model.
/// </param>
/// <param name="correlationIdentifier">
/// A unique identifier that is assigned to related commands.
/// </param>
/// <exception cref="ArgumentNullException">
/// <paramref name="model" /> is <see langword="null" />.
/// </exception>
/// <exception cref="ArgumentOutOfRangeException">
/// <paramref name="correlationIdentifier" /> is equal to <see cref="Guid.Empty" />.
/// </exception>
public CreateDomainModelCommand(DomainModel model, Guid correlationIdentifier)
: base(model, correlationIdentifier)
{
return;
}

/// <summary>
/// Initializes a new instance of the <see cref="CreateDomainModelCommand" /> class.
/// </summary>
/// <param name="model">
/// The desired state of the associated domain model.
/// </param>
/// <param name="labels">
/// A collection of textual labels that provide categorical and/or contextual information about the command.
/// </param>
/// <exception cref="ArgumentNullException">
/// <paramref name="model" /> is <see langword="null" /> -or- <paramref name="labels" /> is <see langword="null" />.
/// </exception>
public CreateDomainModelCommand(DomainModel model, IEnumerable<String> labels)
: base(model, labels)
{
return;
}

/// <summary>
/// Initializes a new instance of the <see cref="CreateDomainModelCommand" /> class.
/// </summary>
/// <param name="model">
/// The desired state of the associated domain model.
/// </param>
/// <param name="labels">
/// A collection of textual labels that provide categorical and/or contextual information about the command.
/// </param>
/// <param name="correlationIdentifier">
/// A unique identifier that is assigned to related commands.
/// </param>
/// <exception cref="ArgumentNullException">
/// <paramref name="model" /> is <see langword="null" /> -or- <paramref name="labels" /> is <see langword="null" />.
/// </exception>
/// <exception cref="ArgumentOutOfRangeException">
/// <paramref name="correlationIdentifier" /> is equal to <see cref="Guid.Empty" />.
/// </exception>
public CreateDomainModelCommand(DomainModel model, IEnumerable<String> labels, Guid correlationIdentifier)
: base(model, labels, correlationIdentifier)
{
return;
}

/// <summary>
/// Represents the name that is used when representing this type in serialization and transport contexts.
/// </summary>
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private const String DataContractName = "CreateUserEvent";
}
}
Loading

0 comments on commit 743cfe6

Please sign in to comment.