public static void ConfigurePulsar(this IEndpoints endpoints, IPulsarClientBuilder pulsarClientBuilder) { endpoints.ConfigurePulsar(_ => { _.PulsarClient = pulsarClientBuilder.Build(); }); }
/// <summary> /// Register a custom exception handler that will be invoked before the default exception handler. /// </summary> public static IPulsarClientBuilder ExceptionHandler(this IPulsarClientBuilder builder, Func <ExceptionContext, ValueTask> exceptionHandler) { builder.ExceptionHandler(new FuncExceptionHandler(exceptionHandler)); return(builder); }
/// <summary> /// Register a custom exception handler that will be invoked before the default exception handler. /// </summary> public static IPulsarClientBuilder ExceptionHandler(this IPulsarClientBuilder builder, Action <ExceptionContext> exceptionHandler) { builder.ExceptionHandler(new ActionExceptionHandler(exceptionHandler)); return(builder); }