You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/JsonApiDotNetCore/Extensions/ApplicationBuilderExtensions.cs
+16-18Lines changed: 16 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -6,29 +6,26 @@
6
6
usingMicrosoft.Extensions.DependencyInjection;
7
7
usingMicrosoft.Extensions.Logging;
8
8
9
-
namespaceJsonApiDotNetCore.Extensions
9
+
namespaceJsonApiDotNetCore
10
10
{
11
-
// ReSharper disable once InconsistentNaming
12
-
publicstaticclassIApplicationBuilderExtensions
11
+
publicstaticclassApplicationBuilderExtensions
13
12
{
14
13
/// <summary>
15
-
/// Runs several internal JsonApiDotNetCore services to ensure proper configuration and registers required middlewares.
16
-
/// The <paramref name="skipRegisterMiddleware"/> can be used to skip any middleware registration, in which case the developer
17
-
/// is responsible for registering middleware that are required for JsonApiDotNetCore.
14
+
/// Validates the resource graph and optionally registers the JsonApiDotNetCore middleware.
18
15
/// </summary>
19
-
/// <param name="app"></param>
20
-
/// <param name="skipRegisterMiddleware">Indicates if JsonApiDotNetCore should skip middleware registration. This enables a user to take full control of middleware registration.</param>
21
-
/// <param name="useAuthentication">Indicates if .NET Core authentication middleware should be registered. Ignored when <paramref name="skipRegisterMiddleware"/> is set to true.</param>
22
-
/// <param name="useAuthorization">Indicates if .NET Core authentication middleware should be registered. Ignored when <paramref name="skipRegisterMiddleware"/> is set to true.</param>
16
+
/// <remarks>
17
+
/// The <paramref name="skipRegisterMiddleware"/> can be used to skip any middleware registration, in which case the developer
18
+
/// is responsible for registering required middleware.
19
+
/// </remarks>
20
+
/// <param name="skipRegisterMiddleware">Indicates to not register any middleware. This enables callers to take full control of middleware registration order.</param>
21
+
/// <param name="useAuthentication">Indicates if 'app.UseAuthentication()' should be called. Ignored when <paramref name="skipRegisterMiddleware"/> is set to true.</param>
22
+
/// <param name="useAuthorization">Indicates if 'app.UseAuthorization()' should be called. Ignored when <paramref name="skipRegisterMiddleware"/> is set to true.</param>
23
23
/// <example>
24
-
/// This example illustrate which required middlewares should be registered when using the <paramref name="skipRegisterMiddleware"/> option.
24
+
/// The next example illustrates how to manually register middleware.
0 commit comments