12 lines
365 B
C#
12 lines
365 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace FictionArchive.Service.Shared.Services.EventBus;
|
|
|
|
public static class EventBusExtensions
|
|
{
|
|
public static EventBusBuilder<TEventBus> AddEventBus<TEventBus>(this IServiceCollection services)
|
|
where TEventBus : class, IEventBus
|
|
{
|
|
return new EventBusBuilder<TEventBus>(services);
|
|
}
|
|
} |