Правки в соответствие со spellchecker
This commit is contained in:
parent
a6e611ec0d
commit
76192003ba
@ -100,7 +100,7 @@ public static class DependencyInjection
|
|||||||
{
|
{
|
||||||
OnMessageReceived = context =>
|
OnMessageReceived = context =>
|
||||||
{
|
{
|
||||||
var accessToken = context.Request.Headers["Authorization"]
|
var accessToken = context.Request.Headers.Authorization
|
||||||
.ToString()
|
.ToString()
|
||||||
.Replace(JwtBearerDefaults.AuthenticationScheme, string.Empty)
|
.Replace(JwtBearerDefaults.AuthenticationScheme, string.Empty)
|
||||||
.Trim();
|
.Trim();
|
||||||
|
@ -11,13 +11,11 @@ public static class Extensions
|
|||||||
|
|
||||||
var loggedInUserId = principal.FindFirstValue(ClaimTypes.NameIdentifier);
|
var loggedInUserId = principal.FindFirstValue(ClaimTypes.NameIdentifier);
|
||||||
|
|
||||||
if (String.IsNullOrEmpty(loggedInUserId))
|
ArgumentNullException.ThrowIfNullOrEmpty(loggedInUserId, nameof(loggedInUserId));
|
||||||
throw new ArgumentNullException(nameof(loggedInUserId));
|
|
||||||
|
|
||||||
var result = TypeDescriptor.GetConverter(typeof(T)).ConvertFromInvariantString(loggedInUserId);
|
var result = TypeDescriptor.GetConverter(typeof(T)).ConvertFromInvariantString(loggedInUserId);
|
||||||
|
|
||||||
if (result is null)
|
ArgumentNullException.ThrowIfNull(result, nameof(result));
|
||||||
throw new ArgumentNullException(nameof(result));
|
|
||||||
|
|
||||||
return (T)result;
|
return (T)result;
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
using System;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
using System;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
using System;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using System.Collections.Generic;
|
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
using System;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ public static class EFExtensionsSortBy
|
|||||||
var name = propertyInfo.Name.ToLower();
|
var name = propertyInfo.Name.ToLower();
|
||||||
ParameterExpression arg = Expression.Parameter(type, "x");
|
ParameterExpression arg = Expression.Parameter(type, "x");
|
||||||
MemberExpression property = Expression.Property(arg, propertyInfo.Name);
|
MemberExpression property = Expression.Property(arg, propertyInfo.Name);
|
||||||
var selector = Expression.Lambda(property, [ arg ]);
|
var selector = Expression.Lambda(property, [arg]);
|
||||||
var typeAccessor = new TypeAccessor
|
var typeAccessor = new TypeAccessor
|
||||||
{
|
{
|
||||||
KeySelector = selector,
|
KeySelector = selector,
|
||||||
@ -200,7 +200,7 @@ public static class EFExtensionsSortBy
|
|||||||
: orderByAscending;
|
: orderByAscending;
|
||||||
|
|
||||||
var newQuery = (IOrderedQueryable<TSource>)genericMethod
|
var newQuery = (IOrderedQueryable<TSource>)genericMethod
|
||||||
.Invoke(genericMethod, new object[] { query, lambdaExpression })!;
|
.Invoke(genericMethod, [query, lambdaExpression])!;
|
||||||
return newQuery;
|
return newQuery;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -195,7 +195,7 @@ public class ChangeLogRepository : IChangeLogRepository
|
|||||||
return datesOnly;
|
return datesOnly;
|
||||||
}
|
}
|
||||||
|
|
||||||
private ChangeLog CreateEntityFromDto(Guid idAuthor, Guid idDiscriminator, DataWithWellDepthAndSectionDto dto)
|
private static ChangeLog CreateEntityFromDto(Guid idAuthor, Guid idDiscriminator, DataWithWellDepthAndSectionDto dto)
|
||||||
{
|
{
|
||||||
var entity = new ChangeLog()
|
var entity = new ChangeLog()
|
||||||
{
|
{
|
||||||
|
@ -34,7 +34,7 @@ public class TimeSeriesDataCachedRepository<TEntity, TDto> : TimeSeriesDataRepos
|
|||||||
public override async Task<IEnumerable<TDto>> GetGtDate(DateTimeOffset dateBegin, CancellationToken token)
|
public override async Task<IEnumerable<TDto>> GetGtDate(DateTimeOffset dateBegin, CancellationToken token)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (LastData.Count() == 0 || LastData[0].Date > dateBegin)
|
if (LastData.Count == 0 || LastData[0].Date > dateBegin)
|
||||||
{
|
{
|
||||||
var dtos = await base.GetGtDate(dateBegin, token);
|
var dtos = await base.GetGtDate(dateBegin, token);
|
||||||
return dtos;
|
return dtos;
|
||||||
|
@ -70,8 +70,9 @@ minidisplay
|
|||||||
oauth
|
oauth
|
||||||
sbin
|
sbin
|
||||||
прога
|
прога
|
||||||
Persistance
|
|
||||||
yyyyMMdd_HHmmssfff
|
yyyyMMdd_HHmmssfff
|
||||||
Serializers
|
Serializers
|
||||||
keycloak
|
keycloak
|
||||||
Params
|
Params
|
||||||
|
Mapster
|
||||||
|
dest
|
||||||
|
Loading…
Reference in New Issue
Block a user