public static void ConfigurePulsar(this IEndpoints endpoints, IPulsarClientBuilder pulsarClientBuilder)
 {
     endpoints.ConfigurePulsar(_ =>
     {
         _.PulsarClient = pulsarClientBuilder.Build();
     });
 }
Ejemplo n.º 2
0
 /// <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);
 }
Ejemplo n.º 3
0
 /// <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);
 }