public async Task SendEvent <T>(string topic, T input) { var channel = InProcessPiplineFactory.Get <T>(topic); if (channel != default) { await channel.Pipline.Writer.WriteAsync(input); } }
public bool RegisterEventHandler <T>(string topic, ILifetimeScope lifetimeScope, Func <T, ILifetimeScope, Task> eventHandler) { return(InProcessPiplineFactory.Add(topic, lifetimeScope, eventHandler)); }