Show / Hide Table of Contents

Class ServerTimingMiddlewareExtensions

The Microsoft.Azure.Functions.Worker.IFunctionsWorkerApplicationBuilder extensions for adding ServerTimingMiddleware to the worker execution pipeline.

Inheritance
System.Object
ServerTimingMiddlewareExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Microsoft.Extensions.Hosting
Assembly: Lib.Azure.Functions.Worker.ServerTiming.dll
Syntax
public static class ServerTimingMiddlewareExtensions

Methods

UseServerTiming(IFunctionsWorkerApplicationBuilder)

Configures the Microsoft.Azure.Functions.Worker.IFunctionsWorkerApplicationBuilder to use ServerTimingMiddleware in the worker execution pipeline.

Declaration
public static IFunctionsWorkerApplicationBuilder UseServerTiming(this IFunctionsWorkerApplicationBuilder builder)
Parameters
Type Name Description
Microsoft.Azure.Functions.Worker.IFunctionsWorkerApplicationBuilder builder

The Microsoft.Azure.Functions.Worker.IFunctionsWorkerApplicationBuilder to configure.

Returns
Type Description
Microsoft.Azure.Functions.Worker.IFunctionsWorkerApplicationBuilder

The same instance of the Microsoft.Azure.Functions.Worker.IFunctionsWorkerApplicationBuilder for chaining.

UseServerTiming(IFunctionsWorkerApplicationBuilder, ServerTimingOptions)

Configures the Microsoft.Azure.Functions.Worker.IFunctionsWorkerApplicationBuilder to use ServerTimingMiddleware in the worker execution pipeline.

Declaration
public static IFunctionsWorkerApplicationBuilder UseServerTiming(this IFunctionsWorkerApplicationBuilder builder, ServerTimingOptions options)
Parameters
Type Name Description
Microsoft.Azure.Functions.Worker.IFunctionsWorkerApplicationBuilder builder

The Microsoft.Azure.Functions.Worker.IFunctionsWorkerApplicationBuilder to configure.

ServerTimingOptions options

The ServerTimingOptions to configure the middleware.

Returns
Type Description
Microsoft.Azure.Functions.Worker.IFunctionsWorkerApplicationBuilder

The same instance of the Microsoft.Azure.Functions.Worker.IFunctionsWorkerApplicationBuilder for chaining.

Back to top Copyright © 2017 - 2023 Tomasz Pęczek