Skip to content

Commit

Permalink
Ran csharpier & reactored the projects into how they should be organized
Browse files Browse the repository at this point in the history
  • Loading branch information
dgmjr committed Oct 1, 2023
1 parent 6fa0965 commit 877c9e7
Show file tree
Hide file tree
Showing 57 changed files with 734 additions and 1,327 deletions.
File renamed without changes.
32 changes: 32 additions & 0 deletions Dgmjr.MediatR.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!--
* MediatR.csproj
*
* Created: 2022-12-30-05:36:32
* Modified: 2022-12-30-05:36:32
*
* Author: David G. Moore, Jr. <[email protected]>
*
* Copyright © 2022-2023 David G. Moore, Jr., All Rights Reserved
* License: MIT (https://opensource.org/licenses/MIT)
-->

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<IsAtRoot>true</IsAtRoot>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="./src/Abstractions/Dgmjr.MediatR.Abstractions.csproj" />
<ProjectReference Include="./src/Commands.Abstractions/Dgmjr.MediatR.Commands.Abstractions.csproj" />
<ProjectReference Include="./src/Commands/Dgmjr.MediatR.Commands.csproj" />
<ProjectReference Include="./src/Notifications.Abstractions/Dgmjr.MediatR.Notifications.Abstractions.csproj" />
<ProjectReference Include="./src/Notifications/Dgmjr.MediatR.Notifications.csproj" />
<ProjectReference Include="./src/Handlers.Abstractions/Dgmjr.MediatR.Handlers.Abstractions.csproj" />
<ProjectReference Include="./src/Handlers/Dgmjr.MediatR.Handlers.csproj" />
<ProjectReference Include="./src/Queries.Abstractions/Dgmjr.MediatR.Queries.Abstractions.csproj" />
<ProjectReference Include="./src/Queries/Dgmjr.MediatR.Queries.csproj" />
</ItemGroup>
<ItemGroup>
<Compile Remove="./src/**/*.cs" />
</ItemGroup>
</Project>
23 changes: 0 additions & 23 deletions MediatR.csproj

This file was deleted.

13 changes: 0 additions & 13 deletions src/Abstractions/Dgmjr.MediatR.Abstractions.sln

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!--
* Dgmjr.MediatR.Abstractions.csproj
*
*
* Created: 2022-12-21-09:49:12
* Modified: 2022-12-21-09:49:12
*
*
* Author: <[email protected]>
*
*
* Copyright © 2022-2023 , All Rights Reserved
* License: MIT (https://opensource.org/licenses/MIT)
-->
Expand All @@ -18,4 +18,7 @@
<PackageReference Include="MediatR" />
<PackageReference Include="Dgmjr.Abstractions" />
</ItemGroup>
<ItemGroup>
<Compile Include="../System.Runtime.CompilerServices/*.cs" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!--
* Dgmjr.MediatR.Abstractions.csproj
*
* Created: 2022-12-21-09:49:12
* Modified: 2022-12-21-09:49:12
*
* Author: David G. Moore, Jr. <[email protected]>
*
* Copyright © 2022-2023 David G. Moore, Jr., All Rights Reserved
* License: MIT (https://opensource.org/licenses/MIT)
-->

<Project>
<ItemGroup>
<Using Include="MediatR" />
<Using Include="Dgmjr.MediatR.Commands.Abstractions" />
</ItemGroup>
</Project>
18 changes: 18 additions & 0 deletions src/Commands.Abstractions/Dgmjr.MediatR.Commands.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!--
* Dgmjr.MediatR.Commands.props
*
* Created: 2023-10-01-11:19:22
* Modified: 2023-10-01-11:19:22
*
* Author: David G. Moore, Jr. <[email protected]>
*
* Copyright © 2022 - 2023 David G. Moore, Jr., All Rights Reserved
* License: MIT (https://opensource.org/licenses/MIT)
-->

<Project>
<ItemGroup>
<Using Include="Dgmjr.MediatR.Commands.Abstractions" />
<Using Include="Dgmjr.MediatR.Commands" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
* Copyright © 2022-2023 David G. Moore, Jr., All Rights Reserved
* License: MIT (https://opensource.org/licenses/MIT)
*/
namespace Dgmjr.MediatR.Abstractions;
namespace Dgmjr.MediatR.Commands.Abstractions;

public interface ICommand<TResponse> : IRequest<TResponse> { }
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* License: MIT (https://opensource.org/licenses/MIT)
*/

namespace Dgmjr.MediatR.Abstractions;
namespace Dgmjr.MediatR.Commands.Abstractions;

public interface ICreateCommand<TId, TCreateDto, TDto> : ICommand<TDto>
where TId : IComparable, IEquatable<TId> { }
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* License: MIT (https://opensource.org/licenses/MIT)
*/

namespace Dgmjr.MediatR.Abstractions;
namespace Dgmjr.MediatR.Commands.Abstractions;

public interface IDeleteCommand<TId, TDto> : IDeleteCommand<TId>
where TId : IComparable, IEquatable<TId> { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* License: MIT (https://opensource.org/licenses/MIT)
*/

namespace Dgmjr.MediatR.Abstractions;
namespace Dgmjr.MediatR.Commands.Abstractions;

public interface IPatchCommand<TId, TPatchDto, TDto> : ICommand<TDto>
where TId : IComparable, IEquatable<TId> { }
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* License: MIT (https://opensource.org/licenses/MIT)
*/

namespace Dgmjr.MediatR.Abstractions;
namespace Dgmjr.MediatR.Commands.Abstractions;

using Dgmjr.Abstractions;

Expand Down
File renamed without changes.
File renamed without changes.
20 changes: 17 additions & 3 deletions src/Commands/Dgmjr.MediatR.Commands.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
<!--
* Dgmjr.MediatR.Commands.csproj
*
*
* Created: 2022-12-21-10:11:19
* Modified: 2022-12-21-10:11:19
*
*
* Author: David G. Moore, Jr. <[email protected]>
*
*
* Copyright © 2022-2023 David G. Moore, Jr., All Rights Reserved
* License: MIT (https://opensource.org/licenses/MIT)
-->
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<Description>This package contains the MediatR command record structs.</Description>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.JsonPatch" />
<PackageReference Include="Dgmjr.Abstractions" />
<ProjectReference Include="../Commands.Abstractions/Dgmjr.MediatR.Commands.Abstractions.csproj" />
</ItemGroup>
<ItemGroup>
<Compile Include="../System.Runtime.CompilerServices/*.cs" />
</ItemGroup>
</Project>
18 changes: 18 additions & 0 deletions src/Commands/Dgmjr.MediatR.Commands.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!--
* Dgmjr.MediatR.Commands.props
*
* Created: 2023-10-01-11:19:22
* Modified: 2023-10-01-11:19:22
*
* Author: David G. Moore, Jr. <[email protected]>
*
* Copyright © 2022 - 2023 David G. Moore, Jr., All Rights Reserved
* License: MIT (https://opensource.org/licenses/MIT)
-->

<Project>
<ItemGroup>
<Using Include="Dgmjr.MediatR.Commands.Abstractions" />
<Using Include="Dgmjr.MediatR.Commands" />
</ItemGroup>
</Project>
70 changes: 70 additions & 0 deletions src/Commands/Dgmjr.MediatR.Commands.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
Microsoft Visual Studio Solution File, Format Version 12.00
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{B283EBC2-E01F-412D-9339-FD56EF114549}"
ProjectSection(SolutionItems) = preProject
..\..\..\..\Packages\Versions.props = ..\..\..\..\Packages\Versions.props
..\..\..\..\Packages\Versions.Local.json = ..\..\..\..\Packages\Versions.Local.json
..\..\..\..\Packages\Versions.Local.props = ..\..\..\..\Packages\Versions.Local.props
..\..\..\..\Packages\Packages.pkgs = ..\..\..\..\Packages\Packages.pkgs
..\..\..\..\Packages\Packages\AnyOf.pkgs = ..\..\..\..\Packages\Packages\AnyOf.pkgs
..\..\..\..\Packages\Packages\APIVersioning.pkgs = ..\..\..\..\Packages\Packages\APIVersioning.pkgs
..\..\..\..\Packages\Packages\AutoMapper.pkgs = ..\..\..\..\Packages\Packages\AutoMapper.pkgs
..\..\..\..\Packages\Packages\Azure.pkgs = ..\..\..\..\Packages\Packages\Azure.pkgs
..\..\..\..\Packages\Packages\AzureFunctions.pkgs = ..\..\..\..\Packages\Packages\AzureFunctions.pkgs
..\..\..\..\Packages\Packages\DDD.pkgs = ..\..\..\..\Packages\Packages\DDD.pkgs
..\..\..\..\Packages\Packages\GlobalBuild.pkgs = ..\..\..\..\Packages\Packages\GlobalBuild.pkgs
..\..\..\..\Packages\Packages\Images.pkgs = ..\..\..\..\Packages\Packages\Images.pkgs
..\..\..\..\Packages\Packages\McMaster.CommandLineUtils.pkgs = ..\..\..\..\Packages\Packages\McMaster.CommandLineUtils.pkgs
..\..\..\..\Packages\Packages\MediatR.pkgs = ..\..\..\..\Packages\Packages\MediatR.pkgs
..\..\..\..\Packages\Packages\Microsoft.AspNetCore.pkgs = ..\..\..\..\Packages\Packages\Microsoft.AspNetCore.pkgs
..\..\..\..\Packages\Packages\Microsoft.EntityFrameworkCore.pkgs = ..\..\..\..\Packages\Packages\Microsoft.EntityFrameworkCore.pkgs
..\..\..\..\Packages\Packages\Microsoft.Extensions.pkgs = ..\..\..\..\Packages\Packages\Microsoft.Extensions.pkgs
..\..\..\..\Packages\Packages\Microsoft.Identity.pkgs = ..\..\..\..\Packages\Packages\Microsoft.Identity.pkgs
..\..\..\..\Packages\Packages\Microsoft.VisualStudio.Shell.Interop.pkgs = ..\..\..\..\Packages\Packages\Microsoft.VisualStudio.Shell.Interop.pkgs
..\..\..\..\Packages\Packages\Miscellany.pkgs = ..\..\..\..\Packages\Packages\Miscellany.pkgs
..\..\..\..\Packages\Packages\MSBuild.pkgs = ..\..\..\..\Packages\Packages\MSBuild.pkgs
..\..\..\..\Packages\Packages\MSBuildProjectCreator.pkgs = ..\..\..\..\Packages\Packages\MSBuildProjectCreator.pkgs
..\..\..\..\Packages\Packages\MSBuildSdks.pkgs = ..\..\..\..\Packages\Packages\MSBuildSdks.pkgs
..\..\..\..\Packages\Packages\Newtonsoft.Json.pkgs = ..\..\..\..\Packages\Packages\Newtonsoft.Json.pkgs
..\..\..\..\Packages\Packages\NuGet.pkgs = ..\..\..\..\Packages\Packages\NuGet.pkgs
..\..\..\..\Packages\Packages\Powershell.pkgs = ..\..\..\..\Packages\Packages\Powershell.pkgs
..\..\..\..\Packages\Packages\Roslyn.pkgs = ..\..\..\..\Packages\Packages\Roslyn.pkgs
..\..\..\..\Packages\Packages\Serilog.pkgs = ..\..\..\..\Packages\Packages\Serilog.pkgs
..\..\..\..\Packages\Packages\SlnGen.pkgs = ..\..\..\..\Packages\Packages\SlnGen.pkgs
..\..\..\..\Packages\Packages\Swashbuckle.pkgs = ..\..\..\..\Packages\Packages\Swashbuckle.pkgs
..\..\..\..\Packages\Packages\System.pkgs = ..\..\..\..\Packages\Packages\System.pkgs
..\..\..\..\Packages\Packages\Telegram.pkgs = ..\..\..\..\Packages\Packages\Telegram.pkgs
..\..\..\..\Packages\Packages\Testing.EfCore.pkgs = ..\..\..\..\Packages\Packages\Testing.EfCore.pkgs
..\..\..\..\Packages\Packages\Testing.pkgs = ..\..\..\..\Packages\Packages\Testing.pkgs
..\..\..\..\Packages\Packages\ThisAssembly.pkgs = ..\..\..\..\Packages\Packages\ThisAssembly.pkgs
..\..\..\..\Packages\Packages\Validation.pkgs = ..\..\..\..\Packages\Packages\Validation.pkgs
..\..\..\..\Packages\Packages\XmlDocMd.pkgs = ..\..\..\..\Packages\Packages\XmlDocMd.pkgs
..\..\..\..\Packages\Versions\AspNetCoreIdentity.props = ..\..\..\..\Packages\Versions\AspNetCoreIdentity.props
..\..\..\..\Packages\Versions\AutoMapper.props = ..\..\..\..\Packages\Versions\AutoMapper.props
..\..\..\..\Packages\Versions\CoreIntegratedLibs.props = ..\..\..\..\Packages\Versions\CoreIntegratedLibs.props
..\..\..\..\Packages\Versions\EFCore.props = ..\..\..\..\Packages\Versions\EFCore.props
..\..\..\..\Packages\Versions\JsonPatch.props = ..\..\..\..\Packages\Versions\JsonPatch.props
..\..\..\..\Packages\Versions\MediatR.props = ..\..\..\..\Packages\Versions\MediatR.props
..\..\..\..\Packages\Versions\Microsoft.Build.props = ..\..\..\..\Packages\Versions\Microsoft.Build.props
..\..\..\..\Packages\Versions\Microsoft.CodeAnalysis.props = ..\..\..\..\Packages\Versions\Microsoft.CodeAnalysis.props
..\..\..\..\Packages\Versions\Microsoft.Extensions.Logging.props = ..\..\..\..\Packages\Versions\Microsoft.Extensions.Logging.props
..\..\..\..\Packages\Versions\PowerShell.props = ..\..\..\..\Packages\Versions\PowerShell.props
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Local|Any CPU = Local|Any CPU
Debug|Any CPU = Debug|Any CPU
Testing|Any CPU = Testing|Any CPU
Staging|Any CPU = Staging|Any CPU
Production|Any CPU = Production|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {D959D175-1D41-42BC-9D6E-46007DECFA1D}
EndGlobalSection
EndGlobal
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

namespace Dgmjr.MediatR.Commands;

using Dgmjr.Abstractions;

public record struct UpdateCommand<TModel, TId, TUpdateDto, TDto>(TUpdateDto Update)
: IUpdateCommand<TModel, TId, TUpdateDto, TDto>
where TModel : class, IIdentifiable<TId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!--
* Dgmjr.MediatR.Abstractions.csproj
*
* Created: 2022-12-21-09:49:12
* Modified: 2022-12-21-09:49:12
*
* Author: <[email protected]>
*
* Copyright © 2022-2023 , All Rights Reserved
* License: MIT (https://opensource.org/licenses/MIT)
-->

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MediatR" />
<PackageReference Include="Dgmjr.Abstractions" />
<ProjectReference Include="../Commands.Abstractions/Dgmjr.MediatR.Commands.Abstractions.csproj" />
<ProjectReference Include="../Queries.Abstractions/Dgmjr.MediatR.Queries.Abstractions.csproj" />
</ItemGroup>
<ItemGroup>
<Compile Include="../System.Runtime.CompilerServices/*.cs" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!--
* Dgmjr.MediatR.Abstractions.csproj
*
* Created: 2022-12-21-09:49:12
* Modified: 2022-12-21-09:49:12
*
* Author: David G. Moore, Jr. <[email protected]>
*
* Copyright © 2022-2023 David G. Moore, Jr., All Rights Reserved
* License: MIT (https://opensource.org/licenses/MIT)
-->

<Project>
<ItemGroup>
<Using Include="MediatR" />
<Using Include="Dgmjr.MediatR.Handlers.Abstractions" />
<Using Include="Dgmjr.MediatR.Commands.Abstractions" />
<Using Include="Dgmjr.MediatR.Queries.Abstractions" />
</ItemGroup>
</Project>
Loading

0 comments on commit 877c9e7

Please sign in to comment.