Instead to register EventHandlers we register Func<EventHandlers> which solves scope problems (having transient/scoped objects owned by singletons)
12 lines
235 B
C#
12 lines
235 B
C#
using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace EventBus.Tests
|
|
{
|
|
public class TestIntegrationEvent : IntegrationEvent
|
|
{
|
|
}
|
|
}
|