Closed albert-m-willemsen closed 1 year ago
AddOpenBehavior is limited to: typeof(IPipelineBehavior<,>) at the moment.
typeof(IPipelineBehavior<,>)
public MediatRServiceConfiguration AddOpenBehavior(Type openBehaviorType, ServiceLifetime serviceLifetime = ServiceLifetime.Transient) { var serviceType = typeof(IPipelineBehavior<,>); BehaviorsToRegister.Add(new ServiceDescriptor(serviceType, openBehaviorType, serviceLifetime)); return this; }
Solved it by for now by doing:
config.AddBehavior(typeof(IStreamPipelineBehavior<,>), typeof(TimedLoggingBehaviour<,>));
in the startup.
Yep that is missing for sure! I'll get it added to the next release.
AddOpenBehavior is limited to:
typeof(IPipelineBehavior<,>)
at the moment.Solved it by for now by doing:
in the startup.