FunctionContext Class

Definition

Encapsulates the information about a function execution.

public abstract class FunctionContext
type FunctionContext = class
Public MustInherit Class FunctionContext
Inheritance
FunctionContext

Constructors

FunctionContext()

Properties

BindingContext

Gets the binding context for the current function invocation. This context is used to retrieve binding data.

Features

Gets a collection containing the features supported by this context.

FunctionDefinition

Gets the FunctionDefinition that describes the function being executed.

FunctionId

Gets the function ID, typically assigned by the host. This identifier is unique to a function and stable across invocations.

InstanceServices

Gets or sets the IServiceProvider that provides access to this execution's services.

InvocationId

Gets the invocation ID. This identifier is unique to an invocation.

Items

Gets or sets a key/value collection that can be used to share data within the scope of this invocation.

RetryContext

Gets the retry context containing information about retry acvitity for the event that triggered the current function invocation.

TraceContext

Gets the distributed tracing context.

Extension Methods

GetLogger(FunctionContext, String)

Creates a new ILogger instance for the specified FunctionContext.

GetLogger<T>(FunctionContext)

Creates a new ILogger instance using the full name of the given type.

Applies to