Skip to content

Commit

Permalink
Move the MvcBuilderExtensions, MvcCoreBuilderExtensions, etc, try bes…
Browse files Browse the repository at this point in the history
…t to make the namespace for each CS file same as the folder name
  • Loading branch information
xuzhg committed Jul 3, 2021
1 parent cdd28f3 commit a03a0f9
Show file tree
Hide file tree
Showing 11 changed files with 118 additions and 133 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@

namespace Microsoft.AspNetCore.OData.Extensions
{

/// <summary>
/// The extension methods for the <see cref="ControllerModel"/>.
/// </summary>
public static class ControllerModelExtensions
{

/// <summary>
/// Test whether the controller is not suitable for OData controller.
/// </summary>
Expand Down Expand Up @@ -63,7 +61,5 @@ public static T GetAttribute<T>(this ControllerModel controller)

return controller.Attributes.OfType<T>().FirstOrDefault();
}

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@

namespace Microsoft.AspNetCore.OData.Extensions
{

/// <summary>
/// Provides extension methods for the <see cref="HttpContext"/>.
/// </summary>
public static class HttpContextExtensions
{

/// <summary>
/// Return the <see cref="IODataFeature"/> from the <see cref="HttpContext"/>.
/// </summary>
Expand Down Expand Up @@ -73,7 +71,5 @@ public static ODataOptions ODataOptions(this HttpContext httpContext)

return httpContext.RequestServices?.GetService<IOptions<ODataOptions>>()?.Value;
}

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@

namespace Microsoft.AspNetCore.OData.Extensions
{

/// <summary>
/// Provides extension methods for the <see cref="HttpRequest"/>.
/// </summary>
public static class HttpRequestExtensions
{

/// <summary>
/// Returns the <see cref="IODataFeature"/> from the DI container.
/// </summary>
Expand Down
234 changes: 117 additions & 117 deletions src/Microsoft.AspNetCore.OData/Microsoft.AspNetCore.OData.xml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Microsoft.AspNetCore.OData/ODataMvcOptionsSetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class ODataMvcOptionsSetup : IConfigureOptions<MvcOptions>
/// <summary>
/// Configure the default <see cref="MvcOptions"/>
/// </summary>
/// <param name="options"></param>
/// <param name="options">The <see cref="MvcOptions"/> to configure.</param>
public void Configure(MvcOptions options)
{
if (options == null)
Expand Down
4 changes: 0 additions & 4 deletions src/Microsoft.AspNetCore.OData/ODataOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@

namespace Microsoft.AspNetCore.OData
{

///
/// <summary>
/// Contains the detail configurations of a given OData request.
/// </summary>
/// <remarks>Caution: The properties in this class should not be <see langword="null"/>.</remarks>
public class ODataOptions
{

#region Settings
/// <summary>
/// Gets or sets the <see cref="ODataUrlKeyDelimiter"/> to use while parsing, specifically
Expand Down Expand Up @@ -299,7 +297,5 @@ private IServiceProvider BuildRouteContainer(IEdmModel model, Action<IServiceCol

return builder.BuildContainer();
}

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.ApplicationModels;
using Microsoft.AspNetCore.OData.Abstracts;
using Microsoft.AspNetCore.OData.Query;
using Microsoft.AspNetCore.OData.Routing;
using Microsoft.AspNetCore.OData.Routing.Parser;
Expand Down

0 comments on commit a03a0f9

Please sign in to comment.