Skip to content

Commit

Permalink
Create Email.MessagBus project.
Browse files Browse the repository at this point in the history
  • Loading branch information
a-sharifov committed Feb 2, 2024
1 parent d16e70e commit d134f13
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Email.MessageBus/Email.MessageBus.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<Folder Include="Handlers\Events\" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\crs\CommonComponents\Contracts\Contracts.csproj" />
<ProjectReference Include="..\crs\CommonComponents\EventBus\EventBus.MassTransit\EventBus.MassTransit.csproj" />
</ItemGroup>

</Project>
3 changes: 3 additions & 0 deletions Email.MessageBus/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
global using EventBus.MassTransit.Handlers;
global using Contracts.Services.Identity.Commands;
global using MassTransit;
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace Email.MessageBus.Handlers.Commands;

public sealed class UserCreatedConfirmationEmailSendCommandHandler
: IntegrationCommandHandler<UserCreatedConfirmationEmailSendCommand>
{
public override Task Handle(ConsumeContext<UserCreatedConfirmationEmailSendCommand> context)
{
throw new NotImplementedException();
}
}
7 changes: 7 additions & 0 deletions Eshop.sln
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Contracts", "crs\CommonComp
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Identity.MessageBus", "crs\Services\Identity\Identity.MessageBus\Identity.MessageBus.csproj", "{9767E75F-8186-4BBE-A81A-E18B1F4687D8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Email.MessageBus", "Email.MessageBus\Email.MessageBus.csproj", "{9D125B77-F05C-40F7-A42A-5B957C48203E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -193,6 +195,10 @@ Global
{9767E75F-8186-4BBE-A81A-E18B1F4687D8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9767E75F-8186-4BBE-A81A-E18B1F4687D8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9767E75F-8186-4BBE-A81A-E18B1F4687D8}.Release|Any CPU.Build.0 = Release|Any CPU
{9D125B77-F05C-40F7-A42A-5B957C48203E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9D125B77-F05C-40F7-A42A-5B957C48203E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9D125B77-F05C-40F7-A42A-5B957C48203E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9D125B77-F05C-40F7-A42A-5B957C48203E}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -234,6 +240,7 @@ Global
{2739BCFE-F0A1-41E4-87CD-66959E1BB75B} = {18B99957-5BAF-4D5D-BC24-27EB1B42DB1B}
{A367D824-7EB8-4448-A7DC-27BF76576B01} = {18B99957-5BAF-4D5D-BC24-27EB1B42DB1B}
{9767E75F-8186-4BBE-A81A-E18B1F4687D8} = {1B13E7AE-01B6-4092-9DD0-1D53F6906791}
{9D125B77-F05C-40F7-A42A-5B957C48203E} = {7CFB86E0-426D-4822-A84E-D2BC5987D187}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {383EFC19-58A6-4418-98E0-23BD0341BA42}
Expand Down
4 changes: 4 additions & 0 deletions crs/Services/Email/Email.Application/Email.Application.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<Folder Include="Emails\Queries\" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
namespace Email.Application.Emails.Commands.SendConfirmationUserMessage;

public sealed record SendConfirmationUserMessageCommand(Guid UserId, string ReturnUrl);
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
namespace Email.Application.Emails.Commands.SendConfirmationUserMessage;

public sealed record SendConfirmationUserMessageCommandHandler(Guid userId);
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<Folder Include="Handlers\Commands\" />
<Folder Include="Handlers\Events\" />
</ItemGroup>

</Project>

0 comments on commit d134f13

Please sign in to comment.