Skip to content

Commit c4f176a

Browse files
committed
Cleanup of code
1 parent 2552857 commit c4f176a

File tree

247 files changed

+704
-991
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

247 files changed

+704
-991
lines changed

AuthPermissions.AspNetCore/AccessTenantData/IAccessTenantDataCookie.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2022 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
1+
// Copyright (c) 2023 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
22
// Licensed under MIT license. See License.txt in the project root for license information.
33

44
using AuthPermissions.AspNetCore.AccessTenantData.Services;

AuthPermissions.AspNetCore/AccessTenantData/ILinkToTenantDataService.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
// Copyright (c) 2022 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
1+
// Copyright (c) 2023 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
22
// Licensed under MIT license. See License.txt in the project root for license information.
33

4-
using System.Threading.Tasks;
54
using AuthPermissions.AspNetCore.AccessTenantData.Services;
65
using AuthPermissions.BaseCode.CommonCode;
76
using StatusGeneric;

AuthPermissions.AspNetCore/AccessTenantData/Services/AccessTenantDataCookie.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
// Copyright (c) 2022 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
1+
// Copyright (c) 2023 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
22
// Licensed under MIT license. See License.txt in the project root for license information.
33

4-
using System;
54
using Microsoft.AspNetCore.Http;
65

76
namespace AuthPermissions.AspNetCore.AccessTenantData.Services;
@@ -11,11 +10,10 @@ namespace AuthPermissions.AspNetCore.AccessTenantData.Services;
1110
/// </summary>
1211
public class AccessTenantDataCookie : IAccessTenantDataCookie
1312
{
13+
private const string CookieName = nameof(AccessTenantDataCookie);
1414
private readonly IRequestCookieCollection _cookiesIn;
1515
private readonly IResponseCookies _cookiesOut;
1616

17-
private const string CookieName = nameof(AccessTenantDataCookie);
18-
1917
/// <summary>
2018
/// Takes in the <see cref="IHttpContextAccessor"/> to get the cookie in / out parts
2119
/// </summary>

AuthPermissions.AspNetCore/AccessTenantData/Services/LinkToTenantDataService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2022 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
1+
// Copyright (c) 2023 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
22
// Licensed under MIT license. See License.txt in the project root for license information.
33

44
using AuthPermissions.AdminCode;
@@ -20,11 +20,11 @@ namespace AuthPermissions.AspNetCore.AccessTenantData.Services;
2020
public class LinkToTenantDataService : ILinkToTenantDataService
2121
{
2222
private readonly AuthPermissionsDbContext _context;
23-
private readonly AuthPermissionsOptions _options;
2423
private readonly IAccessTenantDataCookie _cookieAccessor;
2524

2625
private readonly IEncryptDecryptService _encryptorService;
2726
private readonly IDefaultLocalizer _localizeDefault;
27+
private readonly AuthPermissionsOptions _options;
2828

2929
/// <summary>
3030
/// Ctor

AuthPermissions.AspNetCore/GetDataKeyCode/GetDataKeyFromAppAndHierarchicalUsersAccessTenantData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2021 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
1+
// Copyright (c) 2023 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
22
// Licensed under MIT license. See License.txt in the project root for license information.
33

44
using AuthPermissions.AspNetCore.AccessTenantData;

AuthPermissions.AspNetCore/GetDataKeyCode/GetDataKeyFromAppUserAccessTenantData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2021 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
1+
// Copyright (c) 2023 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
22
// Licensed under MIT license. See License.txt in the project root for license information.
33

44
using AuthPermissions.AspNetCore.AccessTenantData;

AuthPermissions.AspNetCore/GetDataKeyCode/GetDataKeyFromUserNormal.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2021 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
1+
// Copyright (c) 2023 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
22
// Licensed under MIT license. See License.txt in the project root for license information.
33

44
using AuthPermissions.BaseCode.CommonCode;

AuthPermissions.AspNetCore/GetDataKeyCode/GetShardingDataAppAndHierarchicalUsersAccessTenantData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2022 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
1+
// Copyright (c) 2023 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
22
// Licensed under MIT license. See License.txt in the project root for license information.
33

44
using AuthPermissions.AspNetCore.AccessTenantData;

AuthPermissions.AspNetCore/GetDataKeyCode/GetShardingDataUserAccessTenantData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2022 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
1+
// Copyright (c) 2023 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
22
// Licensed under MIT license. See License.txt in the project root for license information.
33

44
using AuthPermissions.AspNetCore.AccessTenantData;

AuthPermissions.AspNetCore/GetDataKeyCode/GetShardingDataUserNormal.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2022 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
1+
// Copyright (c) 2023 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
22
// Licensed under MIT license. See License.txt in the project root for license information.
33

44
using AuthPermissions.AspNetCore.ShardingServices;

0 commit comments

Comments
 (0)