11// Licensed to the .NET Foundation under one or more agreements.
22// The .NET Foundation licenses this file to you under the MIT license.
33
4+ using Microsoft . AspNetCore ;
45using Microsoft . AspNetCore . Http . Json ;
56using Microsoft . AspNetCore . OpenApi ;
67using Microsoft . Extensions . ApiDescriptions ;
@@ -20,8 +21,8 @@ public static class OpenApiServiceCollectionExtensions
2021 /// <param name="services">The <see cref="IServiceCollection"/> to register services onto.</param>
2122 /// <param name="documentName">The name of the OpenAPI document associated with registered services.</param>
2223 /// <example>
23- /// This method is commonly used to add OpenAPI services to the service collection of a
24- /// <see cref="WebApplicationBuilder"/>, as shown in the following example:
24+ /// This method is commonly used to add OpenAPI services to the <see cref="WebApplicationBuilder.Services"/>
25+ /// of a <see cref="WebApplicationBuilder"/>, as shown in the following example:
2526 /// <code>
2627 /// var builder = WebApplication.CreateBuilder(args);
2728 /// builder.Services.AddOpenApi("MyWebApi");
@@ -41,8 +42,8 @@ public static IServiceCollection AddOpenApi(this IServiceCollection services, st
4142 /// <param name="documentName">The name of the OpenAPI document associated with registered services.</param>
4243 /// <param name="configureOptions">A delegate used to configure the target <see cref="OpenApiOptions"/>.</param>
4344 /// <example>
44- /// This method is commonly used to add OpenAPI services to the service collection of a
45- /// <see cref="WebApplicationBuilder"/>, as shown in the following example:
45+ /// This method is commonly used to add OpenAPI services to the <see cref="WebApplicationBuilder.Services"/>
46+ /// of a <see cref="WebApplicationBuilder"/>, as shown in the following example:
4647 /// <code>
4748 /// var builder = WebApplication.CreateBuilder(args);
4849 /// builder.Services.AddOpenApi("MyWebApi", options => {
@@ -71,8 +72,8 @@ public static IServiceCollection AddOpenApi(this IServiceCollection services, st
7172 /// <param name="services">The <see cref="IServiceCollection"/> to register services onto.</param>
7273 /// <param name="configureOptions">A delegate used to configure the target <see cref="OpenApiOptions"/>.</param>
7374 /// <example>
74- /// This method is commonly used to add OpenAPI services to the service collection of a
75- /// <see cref="WebApplicationBuilder"/>, as shown in the following example:
75+ /// This method is commonly used to add OpenAPI services to the <see cref="WebApplicationBuilder.Services"/>
76+ /// of a <see cref="WebApplicationBuilder"/>, as shown in the following example:
7677 /// <code>
7778 /// var builder = WebApplication.CreateBuilder(args);
7879 /// builder.Services.AddOpenApi(options => {
@@ -89,8 +90,8 @@ public static IServiceCollection AddOpenApi(this IServiceCollection services, Ac
8990 /// </summary>
9091 /// <param name="services">The <see cref="IServiceCollection"/> to register services onto.</param>
9192 /// <example>
92- /// This method is commonly used to add OpenAPI services to the service collection of a
93- /// <see cref="WebApplicationBuilder"/>, as shown in the following example:
93+ /// This method is commonly used to add OpenAPI services to the <see cref="WebApplicationBuilder.Services"/>
94+ /// of a <see cref="WebApplicationBuilder"/>, as shown in the following example:
9495 /// <code>
9596 /// var builder = WebApplication.CreateBuilder(args);
9697 /// builder.Services.AddOpenApi();
0 commit comments