OPC # 0001: Extract OPC into standalone repo
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using ControlPlane.Api.Services;
|
||||
using ControlPlane.Core.Messages;
|
||||
using MassTransit;
|
||||
|
||||
namespace ControlPlane.Api.Consumers;
|
||||
|
||||
public sealed class ProvisioningProgressConsumer(SseEventBus bus) : IConsumer<ProvisioningProgressEvent>
|
||||
{
|
||||
public Task Consume(ConsumeContext<ProvisioningProgressEvent> context)
|
||||
{
|
||||
bus.Publish(context.Message);
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user