Skip to content

Commit 32038f5

Browse files
committed
shorten links
1 parent 0013682 commit 32038f5

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

aspnetcore/performance/caching/hybrid.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ The `GetOrCreateAsync` method can also take a `HybridCacheEntryOptions` object t
142142

143143
For more information about the options, see the source code:
144144

145-
* [HybridCacheOptions](xref:Microsoft.Extensions.Caching.Hybrid.HybridCacheOptions) class.
146-
* [HybridCacheEntryOptions](xref:Microsoft.Extensions.Caching.Hybrid.HybridCacheEntryOptions) class.
145+
* <xref:Microsoft.Extensions.Caching.Hybrid.HybridCacheOptions> class.
146+
* <xref:Microsoft.Extensions.Caching.Hybrid.HybridCacheEntryOptions> class.
147147

148148
## Limits
149149

@@ -217,7 +217,7 @@ In such cases, inform `HybridCache` that it's safe to reuse instances by:
217217

218218
### Avoid `byte[]` allocations
219219

220-
`HybridCache` also provides optional APIs for `IDistributedCache` implementations, to avoid `byte[]` allocations. This feature is implemented by the preview versions of the `Microsoft.Extensions.Caching.StackExchangeRedis` and `Microsoft.Extensions.Caching.SqlServer` packages. For more information, see [IBufferDistributedCache](xref:Microsoft.Extensions.Caching.Distributed.IBufferDistributedCache)
220+
`HybridCache` also provides optional APIs for `IDistributedCache` implementations, to avoid `byte[]` allocations. This feature is implemented by the preview versions of the `Microsoft.Extensions.Caching.StackExchangeRedis` and `Microsoft.Extensions.Caching.SqlServer` packages. For more information, see <xref:Microsoft.Extensions.Caching.Distributed.IBufferDistributedCache>.
221221
Here are the .NET CLI commands to install the packages:
222222

223223
```dotnetcli

aspnetcore/release-notes/aspnetcore-8.0.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ Metrics have been added for ASP.NET Core hosting, Kestrel, and SignalR. For more
957957

958958
### IExceptionHandler
959959

960-
[IExceptionHandler](xref:Microsoft.AspNetCore.Diagnostics.IExceptionHandler) is a new interface that gives the developer a callback for handling known exceptions in a central location.
960+
<xref:Microsoft.AspNetCore.Diagnostics.IExceptionHandler> is a new interface that gives the developer a callback for handling known exceptions in a central location.
961961

962962
`IExceptionHandler` implementations are registered by calling [`IServiceCollection.AddExceptionHandler<T>`](xref:Microsoft.Extensions.DependencyInjection.ExceptionHandlerServiceCollectionExtensions.AddExceptionHandler%2A). Multiple implementations can be added, and they're called in the order registered. If an exception handler handles a request, it can return `true` to stop processing. If an exception isn't handled by any exception handler, then control falls back to the default behavior and options from the middleware.
963963

aspnetcore/release-notes/aspnetcore-9/includes/openAPI_completion.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ASP.NET Core's OpenAPI support is now more accessible and user-friendly. The Ope
44

55
Recognizing this gap, we have introduced a new completion provider and code fixer. These tools are designed to facilitate the discovery and use of OpenAPI APIs, making it easier for developers to integrate OpenAPI into their projects. The completion provider offers real-time code suggestions, while the code fixer assists in correcting common mistakes and improving API usage. This enhancement is part of our ongoing commitment to improve the developer experience and streamline API-related workflows.
66

7-
When a user types a statement where an OpenAPI-related API is available, the completion provider displays a recommendation for the API. For example, in the following screenshots, completions for [AddOpenApi](xref:Microsoft.Extensions.DependencyInjection.OpenApiServiceCollectionExtensions.AddOpenApi) and [MapOpenApi](xref:Microsoft.AspNetCore.Builder.OpenApiEndpointRouteBuilderExtensions.MapOpenApi) are provided when a user is entering an invocation statement on a supported type, such as [IEndpointConventionBuilder](/dotnet/api/microsoft.aspnetcore.builder.iendpointconventionbuilder):
7+
When a user types a statement where an OpenAPI-related API is available, the completion provider displays a recommendation for the API. For example, in the following screenshots, completions for <xref:Microsoft.Extensions.DependencyInjection.OpenApiServiceCollectionExtensions.AddOpenApi> and <xref:Microsoft.AspNetCore.Builder.OpenApiEndpointRouteBuilderExtensions.MapOpenApi> are provided when a user is entering an invocation statement on a supported type, such as [IEndpointConventionBuilder](/dotnet/api/microsoft.aspnetcore.builder.iendpointconventionbuilder):
88

99
<img width="508" alt="OpenAPI completions" src="https://github.com/dotnet/AspNetCore.Docs/assets/1857993/1ed9fcb9-7ab7-4239-b7c8-d323724e7222">
1010

@@ -78,7 +78,7 @@ class Todo
7878

7979
### Support for schema transformers on OpenAPI documents
8080

81-
Built-in OpenAPI support now ships with support for schema transformers that can be used to modify schemas generated by [System.Text.Json](/dotnet/api/system.text.json) and the OpenAPI implementation. Like document and operation transformers, schema transformers can be registered on the [OpenApiOptions](xref:Microsoft.AspNetCore.OpenApi.OpenApiOptions) object. For example, the following code sample demonstrates using a schema transformer to add an example to a type's schema.
81+
Built-in OpenAPI support now ships with support for schema transformers that can be used to modify schemas generated by [System.Text.Json](/dotnet/api/system.text.json) and the OpenAPI implementation. Like document and operation transformers, schema transformers can be registered on the <xref:Microsoft.AspNetCore.OpenApi.OpenApiOptions> object. For example, the following code sample demonstrates using a schema transformer to add an example to a type's schema.
8282

8383
```csharp
8484
using System.ComponentModel;

aspnetcore/security/anti-request-forgery.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -277,11 +277,11 @@ Call [AddAntiforgery](/dotnet/api/microsoft.extensions.dependencyinjection.antif
277277
The antiforgery middleware:
278278

279279
* Does ***not*** short-circuit the execution of the rest of the request pipeline.
280-
* Sets the [IAntiforgeryValidationFeature](xref:Microsoft.AspNetCore.Antiforgery.IAntiforgeryValidationFeature) in the [HttpContext.Features](xref:Microsoft.AspNetCore.Http.HttpContext.Features) of the current request.
280+
* Sets the <xref:Microsoft.AspNetCore.Antiforgery.IAntiforgeryValidationFeature> in the [HttpContext.Features](xref:Microsoft.AspNetCore.Http.HttpContext.Features) of the current request.
281281

282282
The antiforgery token is only validated if:
283283

284-
* The endpoint contains metadata implementing [IAntiforgeryMetadata](xref:Microsoft.AspNetCore.Antiforgery.IAntiforgeryMetadata) where `RequiresValidation=true`.
284+
* The endpoint contains metadata implementing <xref:Microsoft.AspNetCore.Antiforgery.IAntiforgeryMetadata> where `RequiresValidation=true`.
285285
* The HTTP method associated with the endpoint is a relevant [HTTP method](https://developer.mozilla.org/docs/Web/HTTP/Methods). The relevant methods are all [HTTP methods](https://developer.mozilla.org/docs/Web/HTTP/Methods) except for TRACE, OPTIONS, HEAD, and GET.
286286
* The request is associated with a valid endpoint.
287287

aspnetcore/security/authentication/claims.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Another way to get the user claims is to use the OpenID Connect User Info API. T
4343
4444
:::code language="csharp" source="~/release-notes/aspnetcore-9/samples/PAR/Program.cs" id="snippet_1" highlight="8-99":::
4545

46-
To ensure that authentication only succeeds if PAR is used, use [PushedAuthorizationBehavior.Require](xref:Microsoft.AspNetCore.Authentication.OpenIdConnect.PushedAuthorizationBehavior) instead. This change also introduces a new [OnPushAuthorization](xref:Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectEvents.OnPushAuthorization) event to [OpenIdConnectEvents](/dotnet/api/microsoft.aspnetcore.authentication.openidconnect.openidconnectevents) which can be used to customize the pushed authorization request or handle it manually. See the [API proposal](https://github.com/dotnet/aspnetcore/issues/51686) for more details.
46+
To ensure that authentication only succeeds if PAR is used, use [PushedAuthorizationBehavior.Require](xref:Microsoft.AspNetCore.Authentication.OpenIdConnect.PushedAuthorizationBehavior) instead. This change also introduces a new <xref:Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectEvents.OnPushAuthorization> event to [OpenIdConnectEvents](/dotnet/api/microsoft.aspnetcore.authentication.openidconnect.openidconnectevents) which can be used to customize the pushed authorization request or handle it manually. See the [API proposal](https://github.com/dotnet/aspnetcore/issues/51686) for more details.
4747

4848
:::moniker-end
4949

aspnetcore/security/authentication/mfa.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ Alternatively, logging in using OTP with Identity:
507507

508508
### OIDC and OAuth Parameter Customization
509509

510-
The OAuth and OIDC authentication handlers [`AdditionalAuthorizationParameters`](xref:Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions.AdditionalAuthorizationParameters) option allows customization of authorization message parameters that are usually included as part of the redirect query string:
510+
The OAuth and OIDC authentication handlers <xref:Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions.AdditionalAuthorizationParameters> option allows customization of authorization message parameters that are usually included as part of the redirect query string:
511511

512512
:::code language="csharp" source="~/security/authentication/mfa/samples9/WebAddOpenIdConnect/Program.cs" id="snippet_1" :::
513513

0 commit comments

Comments
 (0)