99using JetBrains . Annotations ;
1010using Microsoft . Extensions . Options ;
1111
12- namespace Microsoft . AspNetCore . Builder {
12+ namespace Microsoft . AspNetCore . Builder
13+ {
1314 /// <summary>
1415 /// Extension methods to add ArcGIS authentication capabilities to an HTTP application pipeline.
1516 /// </summary>
16- public static class ArcGISAuthenticationExtensions {
17+ public static class ArcGISAuthenticationExtensions
18+ {
1719 /// <summary>
1820 /// Adds the <see cref="ArcGISAuthenticationMiddleware"/> middleware to the specified
1921 /// <see cref="IApplicationBuilder"/>, which enables ArcGIS authentication capabilities.
2022 /// </summary>
2123 /// <param name="app">The <see cref="IApplicationBuilder"/> to add the middleware to.</param>
22- /// <param name="options">A <see cref="ArcGISAuthenticationOptions"/> that specifies options for the middleware.</param>
24+ /// <param name="options">A <see cref="ArcGISAuthenticationOptions"/> that specifies options for the middleware.</param>
2325 /// <returns>A reference to this instance after the operation has completed.</returns>
2426 public static IApplicationBuilder UseArcGISAuthentication (
2527 [ NotNull ] this IApplicationBuilder app ,
26- [ NotNull ] ArcGISAuthenticationOptions options ) {
27- if ( app == null ) {
28+ [ NotNull ] ArcGISAuthenticationOptions options )
29+ {
30+ if ( app == null )
31+ {
2832 throw new ArgumentNullException ( nameof ( app ) ) ;
2933 }
3034
31- if ( options == null ) {
35+ if ( options == null )
36+ {
3237 throw new ArgumentNullException ( nameof ( options ) ) ;
3338 }
3439
@@ -44,12 +49,15 @@ public static IApplicationBuilder UseArcGISAuthentication(
4449 /// <returns>A reference to this instance after the operation has completed.</returns>
4550 public static IApplicationBuilder UseArcGISAuthentication (
4651 [ NotNull ] this IApplicationBuilder app ,
47- [ NotNull ] Action < ArcGISAuthenticationOptions > configuration ) {
48- if ( app == null ) {
52+ [ NotNull ] Action < ArcGISAuthenticationOptions > configuration )
53+ {
54+ if ( app == null )
55+ {
4956 throw new ArgumentNullException ( nameof ( app ) ) ;
5057 }
5158
52- if ( configuration == null ) {
59+ if ( configuration == null )
60+ {
5361 throw new ArgumentNullException ( nameof ( configuration ) ) ;
5462 }
5563
0 commit comments