Add project files.

This commit is contained in:
Daniel Clark
2022-11-01 15:26:08 +00:00
parent daa7b59f22
commit 7e4f880821
408 changed files with 16863 additions and 0 deletions
@@ -0,0 +1,22 @@
namespace TheXamlGuy.Framework.Core
{
public interface IEventBuilderConfiguration
{
}
public interface IEventBuilderConfiguration<TEvent> : IEventBuilderConfiguration where TEvent : class
{
IReadOnlyCollection<IEventDescriptor> Descriptors { get; }
Action<IServiceProvider, TEvent>? Factory { get; }
Action<TEvent>? Next { get; }
IEventBuilderConfiguration<TEvent> WithHandler<THandlerEvent>() where THandlerEvent : class;
IEventBuilderConfiguration<TEvent> WithHandler<THandlerEvent>(Func<TEvent, THandlerEvent> factoryDelegate) where THandlerEvent : class;
IEventBuilderConfiguration<TEvent> WithHandler<THandlerEvent>(Func<IServiceProvider, TEvent, THandlerEvent> factoryDelegate) where THandlerEvent : class;
}
}