public static T Handle <T>(this IMessageDispatchInterceptor interceptor, T message) where T : IMessage => (T)interceptor.Handle(new List <IMessage> { message }).Invoke(0, message);
public IDisposable RegisterDispatchInterceptor(IMessageDispatchInterceptor dispatchInterceptor) { _dispatchInterceptors.TryAdd(dispatchInterceptor, null); return(Disposable.Create(() => _dispatchInterceptors.TryRemove(dispatchInterceptor, out _))); }
public override IDisposable RegisterHandlerInterceptor(IMessageDispatchInterceptor handlerInterceptor) { throw new NotImplementedException(); }
public abstract IDisposable RegisterHandlerInterceptor(IMessageDispatchInterceptor handlerInterceptor);
public CommandGatewayFactory RegisterDispatchInterceptor( IMessageDispatchInterceptor dispatchInterceptor) { _dispatchInterceptors.Add(dispatchInterceptor); return(this); }