App Metrics Fork me on GitHub
Show / Hide Table of Contents

Class AspNetMetricsAppBuilderExtensions

Inheritance
System.Object
AspNetMetricsAppBuilderExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace:Microsoft.AspNetCore.Builder
Assembly:cs.temp.dll.dll
Syntax
public static class AspNetMetricsAppBuilderExtensions

Methods

UseMetrics(IApplicationBuilder)

Adds App Metrics Middleware to the Microsoft.AspNetCore.Builder.IApplicationBuilder request execution pipeline.

Declaration
public static IApplicationBuilder UseMetrics(this IApplicationBuilder app)
Parameters
Type Name Description
IApplicationBuilder app

The Microsoft.AspNetCore.Builder.IApplicationBuilder.

Returns
Type Description
IApplicationBuilder

A reference to this instance after the operation has completed.

Exceptions
Type Condition
System.ArgumentNullException

Microsoft.AspNetCore.Builder.IApplicationBuilder cannot be null

UseMetricsReporting(IApplicationBuilder, IApplicationLifetime)

Runs the configured App Metrics Reporting options once the application has started.

Declaration
public static IApplicationBuilder UseMetricsReporting(this IApplicationBuilder app, IApplicationLifetime lifetime)
Parameters
Type Name Description
IApplicationBuilder app

The Microsoft.AspNetCore.Builder.IApplicationBuilder.

IApplicationLifetime lifetime

The Microsoft.AspNetCore.Hosting.IApplicationLifetime.

Returns
Type Description
IApplicationBuilder

A reference to this instance after the operation has completed.

Exceptions
Type Condition
System.ArgumentNullException

Microsoft.AspNetCore.Builder.IApplicationBuilder & Microsoft.AspNetCore.Hosting.IApplicationLifetime cannot be null

Back to top Copyright © 2017 Allan Hardy
Generated by DocFX