Class ServerTimingMiddlewareExtensions
The Microsoft.Azure.Functions.Worker.IFunctionsWorkerApplicationBuilder extensions for adding ServerTimingMiddleware to the worker execution pipeline.
Inheritance
Inherited Members
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. |