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