Skip to content

Commit

Permalink
update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
dj-nitehawk committed Feb 29, 2024
1 parent eb87e88 commit ba11477
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions Src/Library/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,21 @@ FastEndpoints needs sponsorship to [sustain the project](https://github.com/Fast

<details><summary>Keyed service injection support</summary>

//todo: update docs + write description here
[Keyed services](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/dependency-injection?view=aspnetcore-8.0#keyed-services) introduced in .NET 8 can be injected like so:
```csharp
//property injection
[KeyedService("KeyName")]
public IHelloWorldService HelloService { get; set; }

//constructor injection
public MyEndpoint([FromKeyedServices("KeyName")]IHelloWorldService helloScv)
{
...
}

//manual resolving
Resolve<IHelloWorldService>("KeyName");
```

</details>

Expand All @@ -28,7 +42,7 @@ sealed class MyRequest : PlainTextRequest
}
```

NOTE: Only supports .Net 8 and typed header classes from `Microsoft.Net.Http.Headers` namespace.
NOTE: Only supported on .Net 8+ and typed header classes from `Microsoft.Net.Http.Headers` namespace.

</details>

Expand Down Expand Up @@ -159,7 +173,7 @@ The following swagger spec was generated before:
]
```

Non-nullable reference types are not correctly generated as non-nullable.
Non-nullable reference types are now correctly generated as non-nullable.

</details>

Expand Down

0 comments on commit ba11477

Please sign in to comment.