A configuration object for HealthCheckMiddleware
コード例 #1
0
 public HealthCheckMiddleware(OwinMiddleware next, HealthCheckMiddlewareConfig config)
     : this(next, config.HealthChecks, config.Timeout)
 {
 }
コード例 #2
0
 /// <summary>
 /// Inserts a <see cref="HealthCheckMiddleware"/> into the current <see cref="IAppBuilder"/> pipeline
 /// </summary>
 /// <param name="appBuilder">The current <see cref="IAppBuilder"/> pipeline</param>
 /// <param name="config">A <see cref="HealthCheckMiddlewareConfig"/> containing configuration options for the middleware</param>
 /// <returns>A <see cref="IAppBuilder"/></returns>
 public static IAppBuilder UseHealthCheck(this IAppBuilder appBuilder, HealthCheckMiddlewareConfig config)
     => appBuilder.Use<HealthCheckMiddleware>(config);
コード例 #3
0
 /// <summary>
 /// Inserts a <see cref="HealthCheckMiddleware"/> into the current <see cref="IAppBuilder"/> pipeline
 /// </summary>
 /// <param name="appBuilder">The current <see cref="IAppBuilder"/> pipeline</param>
 /// <param name="config">A <see cref="HealthCheckMiddlewareConfig"/> containing configuration options for the middleware</param>
 /// <returns>A <see cref="IAppBuilder"/></returns>
 public static IAppBuilder UseHealthCheck(this IAppBuilder appBuilder, string route, HealthCheckMiddlewareConfig config)
     => appBuilder.Map(route, x => x.Use<HealthCheckMiddleware>(config));
 public HealthCheckMiddleware(OwinMiddleware next, HealthCheckMiddlewareConfig config)
     : this(next, config.HealthChecks, config.Timeout)
 {
 }
 /// <summary>
 /// Inserts a <see cref="HealthCheckMiddleware"/> into the current <see cref="IAppBuilder"/> pipeline
 /// </summary>
 /// <param name="appBuilder">The current <see cref="IAppBuilder"/> pipeline</param>
 /// <param name="config">A <see cref="HealthCheckMiddlewareConfig"/> containing configuration options for the middleware</param>
 /// <returns>A <see cref="IAppBuilder"/></returns>
 public static IAppBuilder UseHealthCheck(this IAppBuilder appBuilder, HealthCheckMiddlewareConfig config)
 => appBuilder.Use <HealthCheckMiddleware>(config);
 /// <summary>
 /// Inserts a <see cref="HealthCheckMiddleware"/> into the current <see cref="IAppBuilder"/> pipeline
 /// </summary>
 /// <param name="appBuilder">The current <see cref="IAppBuilder"/> pipeline</param>
 /// <param name="config">A <see cref="HealthCheckMiddlewareConfig"/> containing configuration options for the middleware</param>
 /// <returns>A <see cref="IAppBuilder"/></returns>
 public static IAppBuilder UseHealthCheck(this IAppBuilder appBuilder, string route, HealthCheckMiddlewareConfig config)
 => appBuilder.Map(route, x => x.Use <HealthCheckMiddleware>(config));