Skip to content

Instantly share code, notes, and snippets.

View sayeed1999's full-sized avatar

Md. Sayeed Rahman sayeed1999

  • Bangladesh
View GitHub Profile
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active November 18, 2024 06:38
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@dolphinspired
dolphinspired / FunctionContextAccessor.md
Last active October 31, 2024 14:33
FunctionContextAccessor example

IFunctionContextAccessor Implementation

This is a brief tutorial on how to create a dependency-injectable FunctionContext accessor for Azure Functions running on the dotnet-isolated runtime (.NET 5 and up). This will work very similarly to IHttpContextAccessor - it will allow you to access details about the current Function invocation and pass arbitrary values between injected services that are scoped to this invocation.

  1. Create your interface. You must include both get and set on this interface.
public interface IFunctionContextAccessor
{
 FunctionContext FunctionContext { get; set; }