-
-
Notifications
You must be signed in to change notification settings - Fork 516
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use C# 10 implicit usings and file scoped namespaces
- Loading branch information
Showing
497 changed files
with
33,524 additions
and
34,469 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
src/Exceptionless.Core/Authentication/IDomainLoginProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
namespace Exceptionless.Core.Authentication { | ||
public interface IDomainLoginProvider { | ||
bool Login(string username, string password); | ||
namespace Exceptionless.Core.Authentication; | ||
|
||
string GetEmailAddressFromUsername(string username); | ||
public interface IDomainLoginProvider { | ||
bool Login(string username, string password); | ||
|
||
string GetUserFullName(string username); | ||
string GetEmailAddressFromUsername(string username); | ||
|
||
string GetUsernameFromEmailAddress(string email); | ||
} | ||
} | ||
string GetUserFullName(string username); | ||
|
||
string GetUsernameFromEmailAddress(string email); | ||
} |
22 changes: 11 additions & 11 deletions
22
src/Exceptionless.Core/Authorization/AuthorizationRoles.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
namespace Exceptionless.Core.Authorization { | ||
public static class AuthorizationRoles { | ||
public const string ClientPolicy = nameof(ClientPolicy); | ||
public const string Client = "client"; | ||
public const string UserPolicy = nameof(UserPolicy); | ||
public const string User = "user"; | ||
public const string GlobalAdminPolicy = nameof(GlobalAdminPolicy); | ||
public const string GlobalAdmin = "global"; | ||
public static readonly string[] AllScopes = { "client", "user", "global" }; | ||
} | ||
} | ||
namespace Exceptionless.Core.Authorization; | ||
|
||
public static class AuthorizationRoles { | ||
public const string ClientPolicy = nameof(ClientPolicy); | ||
public const string Client = "client"; | ||
public const string UserPolicy = nameof(UserPolicy); | ||
public const string User = "user"; | ||
public const string GlobalAdminPolicy = nameof(GlobalAdminPolicy); | ||
public const string GlobalAdmin = "global"; | ||
public static readonly string[] AllScopes = { "client", "user", "global" }; | ||
} |
Oops, something went wrong.