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
builderIAppBuilderYour Owin.IAppBuilder
configIConfigurationIConfiguration for configuring the endpoint
applicationPathOnDiskstringProvide the path to the app directory if heap dumps are failing due to access restrictions
loggerFactoryILoggerFactoryILoggerFactory 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
builderIAppBuilderYour Owin.IAppBuilder
optionsIHeapDumpOptionsIHeapDumpOptions to configure the endpoint
heapDumperIHeapDumperHeapDumper or other implementer of IHeapDumper for retrieving a heap dump
loggerFactoryILoggerFactoryILoggerFactory for logging inside the middleware and its components
Returns
- IAppBuilder
Your Owin.IAppBuilder with Heap Dump middleware attached