Example short usage patterns have been added. Example abbreviations applicable to the whole project

This commit is contained in:
veysel mutlu 2021-09-11 10:10:09 +03:00
parent 7abd85796e
commit 4bfa1c03df
3 changed files with 3 additions and 8 deletions

View File

@ -9,10 +9,7 @@ namespace Microsoft.eShopOnContainers.Services.Identity.API.Devspaces
public class DevspacesRedirectUriValidator : IRedirectUriValidator public class DevspacesRedirectUriValidator : IRedirectUriValidator
{ {
private readonly ILogger _logger; private readonly ILogger _logger;
public DevspacesRedirectUriValidator(ILogger<DevspacesRedirectUriValidator> logger) public DevspacesRedirectUriValidator(ILogger<DevspacesRedirectUriValidator> logger) => (_logger) = (logger);
{
_logger = logger;
}
public Task<bool> IsPostLogoutRedirectUriValidAsync(string requestedUri, Client client) public Task<bool> IsPostLogoutRedirectUriValidAsync(string requestedUri, Client client)
{ {

View File

@ -63,8 +63,4 @@
</None> </None>
</ItemGroup> </ItemGroup>
<ItemGroup>
<Folder Include="Extensions\" />
</ItemGroup>
</Project> </Project>

View File

@ -21,6 +21,8 @@ namespace Microsoft.eShopOnContainers.Services.Identity.API.Services
_userManager = userManager; _userManager = userManager;
} }
//New Method ArgumentNullException.ThrowIfNull (obj) Added to .NET 6
//https://davidshergilashvili.space/2021/09/08/new-method-argumentnullexception-throwifnull-obj-added-to-net-6/
async public Task GetProfileDataAsync(ProfileDataRequestContext context) async public Task GetProfileDataAsync(ProfileDataRequestContext context)
{ {
var subject = context.Subject ?? throw new ArgumentNullException(nameof(context.Subject)); var subject = context.Subject ?? throw new ArgumentNullException(nameof(context.Subject));