From 4ec972054163286c85edbe2c0125562931d0ea6a Mon Sep 17 00:00:00 2001 From: john Date: Fri, 16 May 2025 17:25:06 +0200 Subject: [PATCH] wip --- Femto.Api/Femto.Api.csproj | 4 ++++ Femto.Api/Program.cs | 3 --- Femto.Common/Integration/IIntegrationEventBus.cs | 6 ++++++ 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 Femto.Common/Integration/IIntegrationEventBus.cs diff --git a/Femto.Api/Femto.Api.csproj b/Femto.Api/Femto.Api.csproj index 4625094..fdf0752 100644 --- a/Femto.Api/Femto.Api.csproj +++ b/Femto.Api/Femto.Api.csproj @@ -29,4 +29,8 @@ + + + + diff --git a/Femto.Api/Program.cs b/Femto.Api/Program.cs index 8975f47..7efeeb7 100644 --- a/Femto.Api/Program.cs +++ b/Femto.Api/Program.cs @@ -2,7 +2,6 @@ using System.Text.Json; using System.Text.Json.Serialization; using Femto.Api; using Femto.Api.Auth; -using Femto.Api.Middleware; using Femto.Common; using Femto.Common.Domain; using Femto.Modules.Auth.Application; @@ -10,10 +9,8 @@ using Femto.Modules.Blog.Application; using Femto.Modules.Media.Application; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Diagnostics; -using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Infrastructure; using Microsoft.AspNetCore.WebUtilities; -using Serilog; const string CorsPolicyName = "DefaultCorsPolicy"; diff --git a/Femto.Common/Integration/IIntegrationEventBus.cs b/Femto.Common/Integration/IIntegrationEventBus.cs new file mode 100644 index 0000000..087106c --- /dev/null +++ b/Femto.Common/Integration/IIntegrationEventBus.cs @@ -0,0 +1,6 @@ +namespace Femto.Common.Integration; + +public interface IIntegrationEventBus +{ + void Subscribe() where T : IIntegrationEvent; +} \ No newline at end of file