Skip to content

Commit 40a17f6

Browse files
committed
Rename AddEndpointsApiExplorer and fix namespace
1 parent d845f5f commit 40a17f6

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/Mvc/Mvc.ApiExplorer/src/DependencyInjection/EndpointMethodInfoApiExplorerServiceCollectionExtensions.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4+
using Microsoft.AspNetCore.Http;
5+
using Microsoft.AspNetCore.Mvc.ApiExplorer;
46
using Microsoft.AspNetCore.Mvc.Infrastructure;
5-
using Microsoft.Extensions.DependencyInjection;
67
using Microsoft.Extensions.DependencyInjection.Extensions;
78

8-
namespace Microsoft.AspNetCore.Mvc.ApiExplorer.DependencyInjection
9+
namespace Microsoft.Extensions.DependencyInjection
910
{
1011
/// <summary>
11-
///
12+
/// Extensions for configuring ApiExplorer using <see cref="Endpoint.Metadata"/>.
1213
/// </summary>
1314
public static class EndpointMetadataApiExplorerServiceCollectionExtensions
1415
{
1516
/// <summary>
16-
///
17+
/// Configures ApiExplorer using <see cref="Endpoint.Metadata"/>.
1718
/// </summary>
18-
/// <param name="services"></param>
19-
public static void AddEndpointMetadataApiExplorer(this IServiceCollection services)
19+
/// <param name="services">The <see cref="IServiceCollection"/>.</param>
20+
public static void AddEndpointsApiExplorer(this IServiceCollection services)
2021
{
2122
// Try to add default services in case MVC services aren't added.
2223
services.TryAddSingleton<IActionDescriptorCollectionProvider, DefaultActionDescriptorCollectionProvider>();

src/Mvc/Mvc.ApiExplorer/src/PublicAPI.Unshipped.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescriptionGroupCollection.ApiDescriptio
2222
Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescriptionGroupCollection.Items.get -> System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescriptionGroup!>!
2323
Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescriptionGroupCollectionProvider.ApiDescriptionGroupCollectionProvider(Microsoft.AspNetCore.Mvc.Infrastructure.IActionDescriptorCollectionProvider! actionDescriptorCollectionProvider, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.ApiExplorer.IApiDescriptionProvider!>! apiDescriptionProviders) -> void
2424
Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescriptionGroupCollectionProvider.ApiDescriptionGroups.get -> Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescriptionGroupCollection!
25-
Microsoft.AspNetCore.Mvc.ApiExplorer.DependencyInjection.EndpointMetadataApiExplorerServiceCollectionExtensions
26-
static Microsoft.AspNetCore.Mvc.ApiExplorer.DependencyInjection.EndpointMetadataApiExplorerServiceCollectionExtensions.AddEndpointMetadataApiExplorer(this Microsoft.Extensions.DependencyInjection.IServiceCollection! services) -> void
25+
Microsoft.Extensions.DependencyInjection.EndpointMetadataApiExplorerServiceCollectionExtensions
26+
static Microsoft.Extensions.DependencyInjection.EndpointMetadataApiExplorerServiceCollectionExtensions.AddEndpointsApiExplorer(this Microsoft.Extensions.DependencyInjection.IServiceCollection! services) -> void
2727
~Microsoft.AspNetCore.Mvc.ApiExplorer.DefaultApiDescriptionProvider.DefaultApiDescriptionProvider(Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions!>! optionsAccessor, Microsoft.AspNetCore.Routing.IInlineConstraintResolver! constraintResolver, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider! modelMetadataProvider, Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultTypeMapper! mapper, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Routing.RouteOptions!>! routeOptions) -> void
2828
Microsoft.AspNetCore.Mvc.ApiExplorer.DefaultApiDescriptionProvider.OnProvidersExecuted(Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescriptionProviderContext! context) -> void
2929
Microsoft.AspNetCore.Mvc.ApiExplorer.DefaultApiDescriptionProvider.OnProvidersExecuting(Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescriptionProviderContext! context) -> void

0 commit comments

Comments
 (0)