Skip to content

Commit 5972e5f

Browse files
committed
implicit usings enabled
1 parent a891ee5 commit 5972e5f

12 files changed

+2
-20
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ public void ConfigureServices(IServiceCollection services)
300300
## Release Notes
301301
| Version |           Notes |
302302
|---------|-------|
303-
|9.0.0 | <ul><li>net9.0 support added</li><li>Sample project for net9.0 added</li><li>Readme updated</li></ul> |
303+
|9.0.0 | <ul><li>net9.0 support added</li><li>Sample project for net9.0 added</li><li>Readme updated</li><li>Nullable reference types enabled</li><li>Language version set to latest</li><li>Implicit usings enabled</li></ul> |
304304
|8.0.0 | <ul><li>net8.0 support added</li><li>Sample project for net8.0 added</li><li>BasicSamplesClient.http file added for testing sample projects</li><li>Readme updated</li></ul> |
305305
|7.0.0 | <ul><li>net7.0 support added</li><li>Information log on handler is changed to Debug log when Authorization header is not found on the request</li><li>Added package validations</li><li>Sample project for net7.0 added</li><li>Readme updated</li><li>Readme added to package</li></ul> |
306306
|6.0.1 | <ul><li>net6.0 support added</li><li>Information log on handler is changed to Debug log when IgnoreAuthenticationIfAllowAnonymous is enabled [#9](https://github.com/mihirdilip/aspnetcore-authentication-basic/issues/9)</li><li>Sample project added</li><li>Readme updated</li><li>Copyright year updated on License</li></ul> |

src/AspNetCore.Authentication.Basic/AspNetCore.Authentication.Basic.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<NeutralLanguage />
2121
<LangVersion>latest</LangVersion>
2222
<Nullable>enable</Nullable>
23-
<!--<ImplicitUsings>enable</ImplicitUsings>-->
23+
<ImplicitUsings>enable</ImplicitUsings>
2424
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
2525
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
2626
<PackageReadmeFile>README.md</PackageReadmeFile>

src/AspNetCore.Authentication.Basic/BasicExtensions.cs

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using Microsoft.Extensions.DependencyInjection;
66
using Microsoft.Extensions.DependencyInjection.Extensions;
77
using Microsoft.Extensions.Options;
8-
using System;
98

109
namespace AspNetCore.Authentication.Basic
1110
{

src/AspNetCore.Authentication.Basic/BasicHandler.cs

-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@
77
using Microsoft.Extensions.Logging;
88
using Microsoft.Extensions.Options;
99
using Microsoft.Net.Http.Headers;
10-
using System;
1110
using System.Net.Http.Headers;
1211
using System.Text;
1312
using System.Text.Encodings.Web;
14-
using System.Threading.Tasks;
1513

1614
namespace AspNetCore.Authentication.Basic
1715
{

src/AspNetCore.Authentication.Basic/BasicOptions.cs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Licensed under the MIT License. See License.txt in the project root for license information.
33

44
using Microsoft.AspNetCore.Authentication;
5-
using System;
65

76
namespace AspNetCore.Authentication.Basic
87
{

src/AspNetCore.Authentication.Basic/BasicPostConfigureOptions.cs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Licensed under the MIT License. See License.txt in the project root for license information.
33

44
using Microsoft.Extensions.Options;
5-
using System;
65

76
namespace AspNetCore.Authentication.Basic
87
{

src/AspNetCore.Authentication.Basic/BasicUtils.cs

-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// Copyright (c) Mihir Dilip. All rights reserved.
22
// Licensed under the MIT License. See License.txt in the project root for license information.
33

4-
using System;
5-
using System.Collections.Generic;
6-
using System.Linq;
74
using System.Security.Claims;
85

96
namespace AspNetCore.Authentication.Basic

src/AspNetCore.Authentication.Basic/Events/BasicAuthenticationFailedContext.cs

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
using Microsoft.AspNetCore.Authentication;
55
using Microsoft.AspNetCore.Http;
6-
using System;
76

87
namespace AspNetCore.Authentication.Basic
98
{

src/AspNetCore.Authentication.Basic/Events/BasicAuthenticationSucceededContext.cs

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
using Microsoft.AspNetCore.Authentication;
55
using Microsoft.AspNetCore.Http;
6-
using System;
7-
using System.Collections.Generic;
86
using System.Security.Claims;
97

108
namespace AspNetCore.Authentication.Basic

src/AspNetCore.Authentication.Basic/Events/BasicEvents.cs

-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// Copyright (c) Mihir Dilip. All rights reserved.
22
// Licensed under the MIT License. See License.txt in the project root for license information.
33

4-
using System;
5-
using System.Threading.Tasks;
6-
74
namespace AspNetCore.Authentication.Basic
85
{
96
/// <summary>

src/AspNetCore.Authentication.Basic/Events/BasicValidateCredentialsContext.cs

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
using Microsoft.AspNetCore.Authentication;
55
using Microsoft.AspNetCore.Http;
6-
using System;
7-
using System.Collections.Generic;
86
using System.Security.Claims;
97

108
namespace AspNetCore.Authentication.Basic

src/AspNetCore.Authentication.Basic/IBasicUserValidationService.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) Mihir Dilip. All rights reserved.
22
// Licensed under the MIT License. See License.txt in the project root for license information.
33

4-
using System.Threading.Tasks;
5-
64
namespace AspNetCore.Authentication.Basic
75
{
86
/// <summary>

0 commit comments

Comments
 (0)