Azure / Azure/azure-functions-dotnet-worker

Function metadata available in middleware/FunctionContext

Open
#2,290 3 comments 0 reactions 0 assignees View on GitHub
area: core enhancement
Dominant language
C#
Stars
466
Forks
215
Avg merge
3d 10h
Merged PRs (30d)
7

Description

### Description

Hello, can I access custom metadata about a function method in middleware? For example, I may want middleware to run on most functions but make an exception for some. For this, I was thinking of adding an attribute to the function method and reading this in the middleware (or “UseWhen”). However I can’t see how this is possible. Are there any other approaches? I can’t base it on trigger type or input type.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the middleware, FunctionContext, and UseWhen entry points named in the issue, then trace how function-method information reaches middleware. Done means the project has a clearly supported way to inspect custom function metadata for middleware decisions, with the behavior and limitations documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.