Skip to content

Commit

Permalink
feat: add in message memory queue
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikoo-Asadnejad committed Mar 20, 2024
1 parent 00523cc commit d6037db
Show file tree
Hide file tree
Showing 74 changed files with 2,964 additions and 112 deletions.
2 changes: 1 addition & 1 deletion Src/Product.API/obj/Product.API.csproj.nuget.g.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/Users/macbook/.nuget/packages/</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/Users/macbook/.nuget/packages/</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.4.0</NuGetToolVersion>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.8.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="/Users/macbook/.nuget/packages/" />
Expand Down
2 changes: 1 addition & 1 deletion Src/Product.API/obj/rider.project.restore.info
Original file line number Diff line number Diff line change
@@ -1 +1 @@
17088716062710207
17109439871600411
1 change: 1 addition & 0 deletions Src/Product.Application/Product.Application.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<ItemGroup>
<PackageReference Include="FluentValidation" Version="11.9.0" />
<PackageReference Include="MediatR" Version="12.1.1" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="9.0.0-preview.2.24128.5" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using MediatR;

namespace Product.Application.Product.Commands;
namespace Product.Application.Product.Commands.CreateProduct;

public class CreateProductCommand : IRequest
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using FluentValidation;
using MediatR;

namespace Product.Application.Product.Commands;
namespace Product.Application.Product.Commands.CreateProduct;

public sealed class CreateProductCommandHandler : IRequestHandler<CreateProductCommand>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using FluentValidation;

namespace Product.Application.Product.Commands;
namespace Product.Application.Product.Commands.CreateProduct;

public class CreateProductCommandValidator : AbstractValidator<CreateProductCommand>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
using System.ComponentModel.DataAnnotations;
using System.Net;
using FluentValidation;
using FluentValidation.Results;
using MediatR;
using ValidationException = FluentValidation.ValidationException;
using ValidationResult = FluentValidation.Results.ValidationResult;

namespace Product.Application.Shared;
namespace Product.Application.Shared.Behaviors;

public sealed class ValidationBehavior<TRequest,TResponse>
: IPipelineBehavior<TRequest , TResponse> where TRequest : IRequest
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
"MediatR": {
"target": "Package",
"version": "[12.1.1, )"
},
"Microsoft.Extensions.Hosting.Abstractions": {
"target": "Package",
"version": "[9.0.0-preview.2.24128.5, )"
}
},
"imports": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/Users/macbook/.nuget/packages/</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/Users/macbook/.nuget/packages/</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.4.0</NuGetToolVersion>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.8.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="/Users/macbook/.nuget/packages/" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)system.diagnostics.diagnosticsource/9.0.0-preview.2.24128.5/buildTransitive/netcoreapp2.0/System.Diagnostics.DiagnosticSource.targets" Condition="Exists('$(NuGetPackageRoot)system.diagnostics.diagnosticsource/9.0.0-preview.2.24128.5/buildTransitive/netcoreapp2.0/System.Diagnostics.DiagnosticSource.targets')" />
<Import Project="$(NuGetPackageRoot)microsoft.extensions.primitives/9.0.0-preview.2.24128.5/buildTransitive/netcoreapp2.0/Microsoft.Extensions.Primitives.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.primitives/9.0.0-preview.2.24128.5/buildTransitive/netcoreapp2.0/Microsoft.Extensions.Primitives.targets')" />
<Import Project="$(NuGetPackageRoot)microsoft.extensions.dependencyinjection.abstractions/9.0.0-preview.2.24128.5/buildTransitive/netcoreapp2.0/Microsoft.Extensions.DependencyInjection.Abstractions.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.dependencyinjection.abstractions/9.0.0-preview.2.24128.5/buildTransitive/netcoreapp2.0/Microsoft.Extensions.DependencyInjection.Abstractions.targets')" />
<Import Project="$(NuGetPackageRoot)microsoft.extensions.options/9.0.0-preview.2.24128.5/buildTransitive/netcoreapp2.0/Microsoft.Extensions.Options.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.options/9.0.0-preview.2.24128.5/buildTransitive/netcoreapp2.0/Microsoft.Extensions.Options.targets')" />
<Import Project="$(NuGetPackageRoot)microsoft.extensions.logging.abstractions/9.0.0-preview.2.24128.5/buildTransitive/netcoreapp2.0/Microsoft.Extensions.Logging.Abstractions.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.logging.abstractions/9.0.0-preview.2.24128.5/buildTransitive/netcoreapp2.0/Microsoft.Extensions.Logging.Abstractions.targets')" />
<Import Project="$(NuGetPackageRoot)microsoft.extensions.fileproviders.abstractions/9.0.0-preview.2.24128.5/buildTransitive/netcoreapp2.0/Microsoft.Extensions.FileProviders.Abstractions.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.fileproviders.abstractions/9.0.0-preview.2.24128.5/buildTransitive/netcoreapp2.0/Microsoft.Extensions.FileProviders.Abstractions.targets')" />
<Import Project="$(NuGetPackageRoot)microsoft.extensions.diagnostics.abstractions/9.0.0-preview.2.24128.5/buildTransitive/netcoreapp2.0/Microsoft.Extensions.Diagnostics.Abstractions.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.diagnostics.abstractions/9.0.0-preview.2.24128.5/buildTransitive/netcoreapp2.0/Microsoft.Extensions.Diagnostics.Abstractions.targets')" />
<Import Project="$(NuGetPackageRoot)microsoft.extensions.configuration.abstractions/9.0.0-preview.2.24128.5/buildTransitive/netcoreapp2.0/Microsoft.Extensions.Configuration.Abstractions.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.configuration.abstractions/9.0.0-preview.2.24128.5/buildTransitive/netcoreapp2.0/Microsoft.Extensions.Configuration.Abstractions.targets')" />
<Import Project="$(NuGetPackageRoot)microsoft.extensions.hosting.abstractions/9.0.0-preview.2.24128.5/buildTransitive/netcoreapp2.0/Microsoft.Extensions.Hosting.Abstractions.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.hosting.abstractions/9.0.0-preview.2.24128.5/buildTransitive/netcoreapp2.0/Microsoft.Extensions.Hosting.Abstractions.targets')" />
</ImportGroup>
</Project>
Loading

0 comments on commit d6037db

Please sign in to comment.