-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
41a45c4
commit 743cfe6
Showing
202 changed files
with
3,715 additions
and
662 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ apidoc | |
appveyor | ||
assignees | ||
astextplain | ||
Async | ||
atm | ||
Autofac | ||
backmerge | ||
|
7 changes: 7 additions & 0 deletions
7
example/RapidField.SolidInstruments.Example.Domain.AccessControl/AssemblyAttributes.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()] |
30 changes: 30 additions & 0 deletions
30
example/RapidField.SolidInstruments.Example.Domain.AccessControl/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
35 changes: 35 additions & 0 deletions
35
...mple.Domain.AccessControl/RapidField.SolidInstruments.Example.Domain.AccessControl.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
129 changes: 129 additions & 0 deletions
129
...ield.SolidInstruments.Example.Domain/Commands/ModelState/User/CreateDomainModelCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
} | ||
} |
Oops, something went wrong.