Class HeapDumpEndpointAppBuilderExtensions
- Namespace
- Steeltoe.Management.EndpointOwin.HeapDump
- Assembly
- Steeltoe.Management.EndpointOwin.dll
public static class HeapDumpEndpointAppBuilderExtensions
- Inheritance
-
HeapDumpEndpointAppBuilderExtensions
- Inherited Members
Methods
UseHeapDumpActuator(IAppBuilder, IConfiguration, string, ILoggerFactory)
Adds actuator endpoint providing Heap Dumps to OWIN pipeline
public static IAppBuilder UseHeapDumpActuator(this IAppBuilder builder, IConfiguration config, string applicationPathOnDisk = null, ILoggerFactory loggerFactory = null)
Parameters
builder
IAppBuilderYour Owin.IAppBuilder
config
IConfigurationIConfiguration for configuring the endpoint
applicationPathOnDisk
stringProvide the path to the app directory if heap dumps are failing due to access restrictions
loggerFactory
ILoggerFactoryILoggerFactory for logging inside the middleware and its components
Returns
- IAppBuilder
Your Owin.IAppBuilder with Heap Dump middleware attached
UseHeapDumpActuator(IAppBuilder, IHeapDumpOptions, IHeapDumper, ILoggerFactory)
Adds OWIN Middleware for providing Heap Dumps to OWIN pipeline
public static IAppBuilder UseHeapDumpActuator(this IAppBuilder builder, IHeapDumpOptions options, IHeapDumper heapDumper, ILoggerFactory loggerFactory = null)
Parameters
builder
IAppBuilderYour Owin.IAppBuilder
options
IHeapDumpOptionsIHeapDumpOptions to configure the endpoint
heapDumper
IHeapDumperHeapDumper or other implementer of IHeapDumper for retrieving a heap dump
loggerFactory
ILoggerFactoryILoggerFactory for logging inside the middleware and its components
Returns
- IAppBuilder
Your Owin.IAppBuilder with Heap Dump middleware attached