Skip to content

Commit

Permalink
(#437) identity: update message broker
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintAngeLs committed Oct 27, 2024
1 parent 7b06984 commit 697f57d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ public static IParalaxBuilder AddInfrastructure(this IParalaxBuilder builder)
.AddConsul()
.AddFabio()
.AddExceptionToMessageMapper<ExceptionToMessageMapper>()
.AddRabbitMq()
.AddRabbitMq(plugins: p => p.AddJaegerRabbitMqPlugin())
.AddMessageOutbox(o => o.AddMongo())
.AddMongo()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,9 @@
<ProjectReference Include="..\MiniSpace.Services.Identity.Application\MiniSpace.Services.Identity.Application.csproj" />
</ItemGroup>

<!-- <ItemGroup>
<ProjectReference Include="../../../Paralax/src/Paralax.MessageBrokers.RabbitMQ/src/Paralax.MessageBrokers.RabbitMQ/Paralax.MessageBrokers.RabbitMQ.csproj" />
<ProjectReference Include="../../../Paralax/src/Paralax.MessageBrokers/src/Paralax.MessageBrokers/Paralax.MessageBrokers.csproj" />
</ItemGroup> -->

</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using Paralax.CQRS.Events;
using Paralax.MessageBrokers;
Expand All @@ -11,9 +10,7 @@
using Microsoft.Extensions.Logging;
using OpenTracing;
using MiniSpace.Services.Identity.Application.Services;
using System.Diagnostics.CodeAnalysis;

[assembly: InternalsVisibleTo("MiniSpace.Services.Identity.Infrastructure.UnitTests")]
namespace MiniSpace.Services.Identity.Infrastructure.Services
{
internal sealed class MessageBroker : IMessageBroker
Expand Down Expand Up @@ -88,4 +85,4 @@ await _busPublisher.PublishAsync(@event, messageId, correlationId, spanContext,
}
}
}
}
}

0 comments on commit 697f57d

Please sign in to comment.