31 lines
776 B
C#
31 lines
776 B
C#
using Autofac;
|
|
using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions;
|
|
using Ordering.SignalrHub.IntegrationEvents;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Reflection;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Ordering.SignalrHub.AutofacModules
|
|
{
|
|
public class ApplicationModule
|
|
: Autofac.Module
|
|
{
|
|
|
|
public string QueriesConnectionString { get; }
|
|
|
|
public ApplicationModule()
|
|
{
|
|
}
|
|
|
|
protected override void Load(ContainerBuilder builder)
|
|
{
|
|
|
|
builder.RegisterAssemblyTypes(typeof(OrderStatusChangedToAwaitingValidationIntegrationEvent).GetTypeInfo().Assembly)
|
|
.AsClosedTypesOf(typeof(IIntegrationEventHandler<>));
|
|
|
|
}
|
|
}
|
|
}
|