Skip to content

Commit 44fc7df

Browse files
committed
Fix link to Keyed Services documentation.
1 parent ce10e20 commit 44fc7df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: docs/content/diagnostics/metrics.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ builder.Services.AddMySqlDataSource(builder.Configuration.GetConnectionString("D
7373

7474
### Keyed Services
7575

76-
Use the `AddKeyedMySqlDataSource` method to register a `MySqlDataSource` as a [keyed service](https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-8#keyed-di-services).
76+
Use the `AddKeyedMySqlDataSource` method to register a `MySqlDataSource` as a [keyed service](https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-8/runtime#keyed-di-services).
7777
If the service key is a string, it will automatically be used as the `MySqlDataSource` name.
7878

7979
```csharp

Diff for: src/MySqlConnector.DependencyInjection/docs/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ builder.Services.AddMySqlDataSource("Server=server;User ID=test;Password=test;Da
5151

5252
## Keyed Services
5353

54-
Use the `AddKeyedMySqlDataSource` method to register a `MySqlDataSource` as a [keyed service](https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-8#keyed-di-services).
54+
Use the `AddKeyedMySqlDataSource` method to register a `MySqlDataSource` as a [keyed service](https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-8/runtime#keyed-di-services).
5555
This is useful if you have multiple connection strings or need to connect to multiple databases.
5656
If the service key is a string, it will automatically be used as the `MySqlDataSource` name;
5757
to customize this, call the `AddKeyedMySqlDataSource(object?, string, Action<MySqlDataSourceBuilder>)` overload and call `MySqlDataSourceBuilder.UseName`.

0 commit comments

Comments
 (0)