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));
/// <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));