diff --git a/Email.MessageBus/Email.MessageBus.csproj b/Email.MessageBus/Email.MessageBus.csproj new file mode 100644 index 0000000..4758760 --- /dev/null +++ b/Email.MessageBus/Email.MessageBus.csproj @@ -0,0 +1,18 @@ + + + + net8.0 + enable + enable + + + + + + + + + + + + diff --git a/Email.MessageBus/GlobalUsings.cs b/Email.MessageBus/GlobalUsings.cs new file mode 100644 index 0000000..5b4d468 --- /dev/null +++ b/Email.MessageBus/GlobalUsings.cs @@ -0,0 +1,3 @@ +global using EventBus.MassTransit.Handlers; +global using Contracts.Services.Identity.Commands; +global using MassTransit; \ No newline at end of file diff --git a/Email.MessageBus/Handlers/Commands/UserCreatedConfirmationEmailSendCommandHandler.cs b/Email.MessageBus/Handlers/Commands/UserCreatedConfirmationEmailSendCommandHandler.cs new file mode 100644 index 0000000..fdd1746 --- /dev/null +++ b/Email.MessageBus/Handlers/Commands/UserCreatedConfirmationEmailSendCommandHandler.cs @@ -0,0 +1,10 @@ +namespace Email.MessageBus.Handlers.Commands; + +public sealed class UserCreatedConfirmationEmailSendCommandHandler + : IntegrationCommandHandler +{ + public override Task Handle(ConsumeContext context) + { + throw new NotImplementedException(); + } +} diff --git a/Eshop.sln b/Eshop.sln index 8c207cd..e4ca15a 100644 --- a/Eshop.sln +++ b/Eshop.sln @@ -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 @@ -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 @@ -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} diff --git a/crs/CommonComponents/Contracts/Services/Identity/Commands/UserCreatedConfirmationEmailSentCommand.cs b/crs/CommonComponents/Contracts/Services/Identity/Commands/UserCreatedConfirmationEmailSendCommand.cs similarity index 100% rename from crs/CommonComponents/Contracts/Services/Identity/Commands/UserCreatedConfirmationEmailSentCommand.cs rename to crs/CommonComponents/Contracts/Services/Identity/Commands/UserCreatedConfirmationEmailSendCommand.cs diff --git a/crs/Services/Email/Email.Application/Email.Application.csproj b/crs/Services/Email/Email.Application/Email.Application.csproj index bfecdf3..f80eba6 100644 --- a/crs/Services/Email/Email.Application/Email.Application.csproj +++ b/crs/Services/Email/Email.Application/Email.Application.csproj @@ -5,4 +5,8 @@ enable enable + + + + diff --git a/crs/Services/Email/Email.Application/Emails/Commands/SendConfirmationUserMessage/SendConfirmationUserMessageCommand.cs b/crs/Services/Email/Email.Application/Emails/Commands/SendConfirmationUserMessage/SendConfirmationUserMessageCommand.cs new file mode 100644 index 0000000..065c0db --- /dev/null +++ b/crs/Services/Email/Email.Application/Emails/Commands/SendConfirmationUserMessage/SendConfirmationUserMessageCommand.cs @@ -0,0 +1,3 @@ +namespace Email.Application.Emails.Commands.SendConfirmationUserMessage; + +public sealed record SendConfirmationUserMessageCommand(Guid UserId, string ReturnUrl); diff --git a/crs/Services/Email/Email.Application/Emails/Commands/SendConfirmationUserMessage/SendConfirmationUserMessageCommandHandler.cs b/crs/Services/Email/Email.Application/Emails/Commands/SendConfirmationUserMessage/SendConfirmationUserMessageCommandHandler.cs new file mode 100644 index 0000000..82855cf --- /dev/null +++ b/crs/Services/Email/Email.Application/Emails/Commands/SendConfirmationUserMessage/SendConfirmationUserMessageCommandHandler.cs @@ -0,0 +1,3 @@ +namespace Email.Application.Emails.Commands.SendConfirmationUserMessage; + +public sealed record SendConfirmationUserMessageCommandHandler(Guid userId); diff --git a/crs/Services/Identity/Identity.MessageBus/Identity.MessageBus.csproj b/crs/Services/Identity/Identity.MessageBus/Identity.MessageBus.csproj index fa71b7a..8d4c53b 100644 --- a/crs/Services/Identity/Identity.MessageBus/Identity.MessageBus.csproj +++ b/crs/Services/Identity/Identity.MessageBus/Identity.MessageBus.csproj @@ -6,4 +6,9 @@ enable + + + + +