Updated Dependencies and Resolved Breaking Changes:

* Fixed NullReferenceException: Addressed a crash in JwtSecurityTokenHandler under .NET 9 caused by internal changes in cryptographic primitives and claim handling.
* Migrated JWT Handling: Updated Jwt.CreateToken to use JsonWebTokenHandler with SecurityTokenDescriptor.
The method now returns a string directly (formerly JwtSecurityToken).
* Configured AddJwtBearer with UseSecurityTokenValidators = false to ensure end-to-end consistency using JsonWebTokenHandler.
* Updated AutoMapper: Adjusted the instantiation signature to include a null logger following the upgrade from v13 to v15 (required to patch a CodeQL security vulnerability). Resolved high-severity DoS vulnerability GHSA-rvv3-g6hj-g44x (uncontrolled recursion) and fixed the new instantiation signature requiring a null logger.
This commit is contained in:
richard-churchman
2026-03-30 11:08:32 +02:00
parent 766a277e64
commit 1b9777fa71
100 changed files with 225 additions and 129 deletions
+27 -23
View File
@@ -2,40 +2,44 @@
*
* This file is part of Jube™ software.
*
* Jube™ is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License
* Jube™ is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License
* as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
* Jube™ is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
* Jube™ is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
* You should have received a copy of the GNU Affero General Public License along with Jube™. If not,
* You should have received a copy of the GNU Affero General Public License along with Jube™. If not,
* see <https://www.gnu.org/licenses/>.
*/
using System;
using System.Collections.Generic;
using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using System.Text;
using Microsoft.IdentityModel.Tokens;
namespace Jube.App.Code
{
using System;
using System.Collections.Generic;
using System.Security.Claims;
using System.Text;
using Microsoft.IdentityModel.JsonWebTokens;
using Microsoft.IdentityModel.Tokens;
public static class Jwt
{
public static JwtSecurityToken CreateToken(string userName,string jwtKey,string jwtIssuer, string jwtAudience)
public static string CreateToken(string userName, string jwtKey, string jwtIssuer, string jwtAudience)
{
var authSigningKey = new
SymmetricSecurityKey(Encoding.UTF8.GetBytes(jwtKey));
var claims = new List<Claim> {new(ClaimTypes.Name, userName)};
var descriptor = new SecurityTokenDescriptor
{
Subject = new ClaimsIdentity(new List<Claim>
{
new Claim(ClaimTypes.Name, userName)
}),
Expires = DateTime.UtcNow.AddMinutes(15),
Issuer = jwtIssuer,
Audience = jwtAudience,
SigningCredentials = new SigningCredentials(
new SymmetricSecurityKey(Encoding.UTF8.GetBytes(jwtKey)),
SecurityAlgorithms.HmacSha256
)
};
return new JwtSecurityToken(
jwtIssuer,
jwtAudience,
expires: DateTime.UtcNow.AddMinutes(15),
claims: claims,
signingCredentials: new SigningCredentials(authSigningKey, SecurityAlgorithms.HmacSha256)
);
return new JsonWebTokenHandler().CreateToken(descriptor);
}
}
}
}
@@ -14,7 +14,6 @@
namespace Jube.App.Controllers.Authentication
{
using System;
using System.IdentityModel.Tokens.Jwt;
using System.Net;
using System.Threading;
using System.Threading.Tasks;
@@ -110,8 +109,8 @@ namespace Jube.App.Controllers.Authentication
var authenticationDto = new AuthenticationResponseDto
{
Token = new JwtSecurityTokenHandler().WriteToken(token),
Expiration = expiration
Token = token,
Expiration = DateTime.UtcNow.AddMinutes(15)
};
var cookieOptions = new CookieOptions
@@ -122,6 +121,7 @@ namespace Jube.App.Controllers.Authentication
Response.Cookies.Append("authentication",
authenticationDto.Token, cookieOptions);
return authenticationDto;
}
@@ -14,7 +14,6 @@
namespace Jube.App.Controllers.Authentication
{
using System;
using System.IdentityModel.Tokens.Jwt;
using System.Net;
using System.Threading;
using System.Threading.Tasks;
@@ -107,7 +106,7 @@ namespace Jube.App.Controllers.Authentication
var authenticationDto = new AuthenticationResponseDto
{
Token = new JwtSecurityTokenHandler().WriteToken(token),
Token = token,
Expiration = expiration
};
@@ -37,6 +37,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Validators;
@@ -73,7 +74,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<Case, CaseDto>();
cfg.CreateMap<CaseDto, Case>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repositoryCase = new CaseRepository(dbContext, userName);
@@ -29,6 +29,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
[Route("api/[controller]")]
[Produces("application/json")]
@@ -58,7 +59,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<CaseFile, CaseFileDto>();
cfg.CreateMap<CaseFileDto, CaseFile>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new CaseFileRepository(dbContext, userName);
@@ -33,6 +33,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Validators;
@@ -72,7 +73,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<CaseNote, CaseNoteDto>();
cfg.CreateMap<CaseNoteDto, CaseNote>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repositoryCaseNote = new CaseNoteRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<CaseWorkflowAction, CaseWorkflowActionDto>();
cfg.CreateMap<CaseWorkflowActionDto, CaseWorkflowAction>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new CaseWorkflowActionRepository(dbContext, userName);
@@ -30,6 +30,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -61,7 +62,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<CaseWorkflowActionRole, CaseWorkflowActionRoleDto>();
cfg.CreateMap<CaseWorkflowActionRoleDto, CaseWorkflowActionRole>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new CaseWorkflowActionRoleRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<CaseWorkflow, CaseWorkflowDto>();
cfg.CreateMap<CaseWorkflowDto, CaseWorkflow>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new CaseWorkflowRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<CaseWorkflowDisplay, CaseWorkflowDisplayDto>();
cfg.CreateMap<CaseWorkflowDisplayDto, CaseWorkflowDisplay>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new CaseWorkflowDisplayRepository(dbContext, userName);
@@ -29,6 +29,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -60,7 +61,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<CaseWorkflowDisplayRole, CaseWorkflowDisplayRoleDto>();
cfg.CreateMap<CaseWorkflowDisplayRoleDto, CaseWorkflowDisplayRole>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new CaseWorkflowDisplayRoleRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<CaseWorkflowFilter, CaseWorkflowFilterDto>();
cfg.CreateMap<CaseWorkflowFilterDto, CaseWorkflowFilter>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new CaseWorkflowFilterRepository(dbContext, userName);
@@ -29,6 +29,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -60,7 +61,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<CaseWorkflowFilterRole, CaseWorkflowFilterRoleDto>();
cfg.CreateMap<CaseWorkflowFilterRoleDto, CaseWorkflowFilterRole>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new CaseWorkflowFilterRoleRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<CaseWorkflowForm, CaseWorkflowFormDto>();
cfg.CreateMap<CaseWorkflowFormDto, CaseWorkflowForm>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new CaseWorkflowFormRepository(dbContext, userName);
@@ -35,6 +35,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Validators;
@@ -72,7 +73,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<CaseWorkflowFormEntry, CaseWorkflowFormEntryDto>();
cfg.CreateMap<CaseWorkflowFormEntryDto, CaseWorkflowFormEntry>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repositoryCaseWorkflowFormEntry = new CaseWorkflowFormEntryRepository(dbContext, userName);
@@ -28,6 +28,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
[Route("api/[controller]")]
[Produces("application/json")]
@@ -57,7 +58,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<CaseWorkflowFormEntryValue, CaseWorkflowFormEntryValueDto>();
cfg.CreateMap<CaseWorkflowFormEntryValueDto, CaseWorkflowFormEntryValue>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new CaseWorkflowFormEntryValueRepository(dbContext, userName);
@@ -29,6 +29,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -60,7 +61,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<CaseWorkflowFormRole, CaseWorkflowFormRoleDto>();
cfg.CreateMap<CaseWorkflowFormRoleDto, CaseWorkflowFormRole>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new CaseWorkflowFormRoleRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<CaseWorkflowMacro, CaseWorkflowMacroDto>();
cfg.CreateMap<CaseWorkflowMacroDto, CaseWorkflowMacro>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new CaseWorkflowMacroRepository(dbContext, userName);
@@ -29,6 +29,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -60,7 +61,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<CaseWorkflowMacroRole, CaseWorkflowMacroRoleDto>();
cfg.CreateMap<CaseWorkflowMacroRoleDto, CaseWorkflowMacroRole>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new CaseWorkflowMacroRoleRepository(dbContext, userName);
@@ -29,6 +29,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -60,7 +61,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<CaseWorkflowRole, CaseWorkflowRoleDto>();
cfg.CreateMap<CaseWorkflowRoleDto, CaseWorkflowRole>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new CaseWorkflowRoleRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<CaseWorkflowStatus, CaseWorkflowStatusDto>();
cfg.CreateMap<CaseWorkflowStatusDto, CaseWorkflowStatus>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new CaseWorkflowStatusRepository(dbContext, userName);
@@ -29,6 +29,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -60,7 +61,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<CaseWorkflowStatusRole, CaseWorkflowStatusRoleDto>();
cfg.CreateMap<CaseWorkflowStatusRoleDto, CaseWorkflowStatusRole>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new CaseWorkflowStatusRoleRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<CaseWorkflowXPath, CaseWorkflowXPathDto>();
cfg.CreateMap<CaseWorkflowXPathDto, CaseWorkflowXPath>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new CaseWorkflowXPathRepository(dbContext, userName);
@@ -29,6 +29,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -60,7 +61,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<CaseWorkflowXPathRole, CaseWorkflowXPathRoleDto>();
cfg.CreateMap<CaseWorkflowXPathRoleDto, CaseWorkflowXPathRole>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new CaseWorkflowXPathRoleRepository(dbContext, userName);
@@ -28,6 +28,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
[Route("api/[controller]")]
[Produces("application/json")]
@@ -57,7 +58,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<EntityAnalysisAsynchronousQueueBalanceDto, EntityAnalysisAsynchronousQueueBalance>();
cfg.CreateMap<EntityAnalysisAsynchronousQueueBalance, EntityAnalysisAsynchronousQueueBalanceDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new EntityAnalysisAsynchronousQueueBalanceRepository(dbContext);
@@ -28,6 +28,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
[Route("api/[controller]")]
[Produces("application/json")]
@@ -57,7 +58,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<EntityAnalysisInlineScriptDto, EntityAnalysisInlineScript>();
cfg.CreateMap<EntityAnalysisInlineScript, EntityAnalysisInlineScriptDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new EntityAnalysisInlineScriptRepository(dbContext);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -64,7 +65,7 @@ namespace Jube.App.Controllers.Repository
EntityAnalysisModelAbstractionCalculation>();
cfg.CreateMap<EntityAnalysisModelAbstractionCalculation,
EntityAnalysisModelAbstractionCalculationDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new EntityAnalysisModelAbstractionCalculationRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<EntityAnalysisModelAbstractionRuleDto, EntityAnalysisModelAbstractionRule>();
cfg.CreateMap<EntityAnalysisModelAbstractionRule, EntityAnalysisModelAbstractionRuleDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new EntityAnalysisModelAbstractionRuleRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<EntityAnalysisModelActivationRuleDto, EntityAnalysisModelActivationRule>();
cfg.CreateMap<EntityAnalysisModelActivationRule, EntityAnalysisModelActivationRuleDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new EntityAnalysisModelActivationRuleRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -64,7 +65,7 @@ namespace Jube.App.Controllers.Repository
EntityAnalysisModelActivationRuleSuppression>();
cfg.CreateMap<EntityAnalysisModelActivationRuleSuppression,
EntityAnalysisModelActivationRuleSuppressionDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new EntityAnalysisModelActivationRuleSuppressionRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<EntityAnalysisModelAdaptationDto, EntityAnalysisModelHttpAdaptation>();
cfg.CreateMap<EntityAnalysisModelHttpAdaptation, EntityAnalysisModelAdaptationDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new EntityAnalysisModelHttpAdaptationRepository(dbContext, userName);
@@ -27,6 +27,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
[Route("api/[controller]")]
[Produces("application/json")]
@@ -57,7 +58,7 @@ namespace Jube.App.Controllers.Repository
GetEntityAnalysisModelAsynchronousQueueBalancesQuery.Dto>();
cfg.CreateMap<GetEntityAnalysisModelAsynchronousQueueBalancesQuery.Dto,
EntityAnalysisModelAsynchronousQueueBalanceDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
}
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<EntityAnalysisModel, EntityAnalysisModelDto>();
cfg.CreateMap<EntityAnalysisModelDto, EntityAnalysisModel>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new EntityAnalysisModelRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<EntityAnalysisModelsDictionaryDto, EntityAnalysisModelDictionary>();
cfg.CreateMap<EntityAnalysisModelDictionary, EntityAnalysisModelsDictionaryDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new EntityAnalysisModelDictionaryRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<EntityAnalysisModelDictionaryKvpDto, EntityAnalysisModelDictionaryKvp>();
cfg.CreateMap<EntityAnalysisModelDictionaryKvp, EntityAnalysisModelDictionaryKvpDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new EntityAnalysisModelDictionaryKvpRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<EntityAnalysisModelGatewayRuleDto, EntityAnalysisModelGatewayRule>();
cfg.CreateMap<EntityAnalysisModelGatewayRule, EntityAnalysisModelGatewayRuleDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new EntityAnalysisModelGatewayRuleRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<EntityAnalysisModelInlineFunctionDto, EntityAnalysisModelInlineFunction>();
cfg.CreateMap<EntityAnalysisModelInlineFunction, EntityAnalysisModelInlineFunctionDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new EntityAnalysisModelInlineFunctionRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<EntityAnalysisModelInlineScriptDto, EntityAnalysisModelInlineScript>();
cfg.CreateMap<EntityAnalysisModelInlineScript, EntityAnalysisModelInlineScriptDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new EntityAnalysisModelInlineScriptRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<EntityAnalysisModelsListDto, EntityAnalysisModelList>();
cfg.CreateMap<EntityAnalysisModelList, EntityAnalysisModelsListDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new EntityAnalysisModelListRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<EntityAnalysisModelListValueDto, EntityAnalysisModelListValue>();
cfg.CreateMap<EntityAnalysisModelListValue, EntityAnalysisModelListValueDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new EntityAnalysisModelListValueRepository(dbContext, userName);
@@ -27,6 +27,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
[Route("api/[controller]")]
[Produces("application/json")]
@@ -57,7 +58,7 @@ namespace Jube.App.Controllers.Repository
GetEntityAnalysisModelProcessingCountersQuery.Dto>();
cfg.CreateMap<GetEntityAnalysisModelProcessingCountersQuery.Dto,
EntityAnalysisModelProcessingCounterDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
}
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<EntityAnalysisModelReprocessingRuleDto, EntityAnalysisModelReprocessingRule>();
cfg.CreateMap<EntityAnalysisModelReprocessingRule, EntityAnalysisModelReprocessingRuleDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new EntityAnalysisModelReprocessingRuleRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -64,7 +65,7 @@ namespace Jube.App.Controllers.Repository
EntityAnalysisModelReprocessingRuleInstance>();
cfg.CreateMap<EntityAnalysisModelReprocessingRuleInstance,
EntityAnalysisModelReprocessingRuleInstanceDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new EntityAnalysisModelReprocessingRuleInstanceRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<EntityAnalysisModelRequestXPathDto, EntityAnalysisModelRequestXpath>();
cfg.CreateMap<EntityAnalysisModelRequestXpath, EntityAnalysisModelRequestXPathDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new EntityAnalysisModelRequestXPathRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<EntityAnalysisModelSanctionDto, EntityAnalysisModelSanction>();
cfg.CreateMap<EntityAnalysisModelSanction, EntityAnalysisModelSanctionDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new EntityAnalysisModelSanctionRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<EntityAnalysisModelSuppressionDto, EntityAnalysisModelSuppression>();
cfg.CreateMap<EntityAnalysisModelSuppression, EntityAnalysisModelSuppressionDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new EntityAnalysisModelSuppressionRepository(dbContext, userName);
@@ -30,6 +30,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -63,7 +64,7 @@ namespace Jube.App.Controllers.Repository
EntityAnalysisModelSynchronisationSchedule>();
cfg.CreateMap<EntityAnalysisModelSynchronisationSchedule,
EntityAnalysisModelSynchronisationScheduleDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new EntityAnalysisModelSynchronisationScheduleRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<EntityAnalysisModelTagDto, EntityAnalysisModelTag>();
cfg.CreateMap<EntityAnalysisModelTag, EntityAnalysisModelTagDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new EntityAnalysisModelTagRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<EntityAnalysisModelTtlCounterDto, EntityAnalysisModelTtlCounter>();
cfg.CreateMap<EntityAnalysisModelTtlCounter, EntityAnalysisModelTtlCounterDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new EntityAnalysisModelTtlCounterRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<ExhaustiveSearchInstanceDto, ExhaustiveSearchInstance>();
cfg.CreateMap<ExhaustiveSearchInstance, ExhaustiveSearchInstanceDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new ExhaustiveSearchInstanceRepository(dbContext, userName);
@@ -28,6 +28,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
[Route("api/[controller]")]
[Produces("application/json")]
@@ -57,7 +58,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<HttpProcessingCounterDto, HttpProcessingCounter>();
cfg.CreateMap<HttpProcessingCounter, HttpProcessingCounterDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new HttpProcessingCounterRepository(dbContext);
@@ -28,6 +28,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
[Route("api/[controller]")]
[Produces("application/json")]
@@ -57,7 +58,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<PermissionSpecificationDto, PermissionSpecification>();
cfg.CreateMap<PermissionSpecification, PermissionSpecificationDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new PermissionSpecificationRepository(dbContext);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<RoleRegistry, RoleRegistryDto>();
cfg.CreateMap<RoleRegistryDto, RoleRegistry>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new RoleRegistryRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<RoleRegistryPermission, RoleRegistryPermissionDto>();
cfg.CreateMap<RoleRegistryPermissionDto, RoleRegistryPermission>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new RoleRegistryPermissionRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<TenantRegistry, TenantRegistryDto>();
cfg.CreateMap<TenantRegistryDto, TenantRegistry>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new TenantRegistryRepository(dbContext, userName);
@@ -30,6 +30,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
[Route("api/[controller]")]
[Produces("application/json")]
@@ -59,7 +60,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<UserInTenantDto, UserInTenant>();
cfg.CreateMap<UserInTenant, UserInTenantDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new UserInTenantRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
using PermissionValidation=Code.PermissionValidation;
@@ -65,7 +66,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<UserRegistryDto, UserRegistry>();
cfg.CreateMap<UserRegistry, UserRegistryDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new UserRegistryRepository(dbContext, userName);
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<VisualisationRegistry, VisualisationRegistryDto>();
cfg.CreateMap<VisualisationRegistryDto, VisualisationRegistry>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new VisualisationRegistryRepository(dbContext, userName);
@@ -32,6 +32,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -63,7 +64,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<VisualisationRegistryDatasourceDto, VisualisationRegistryDatasource>();
cfg.CreateMap<VisualisationRegistryDatasource, VisualisationRegistryDatasourceDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new VisualisationRegistryDatasourceRepository(dbContext, userName);
@@ -29,6 +29,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -60,7 +61,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<VisualisationRegistryDatasourceRole, VisualisationRegistryDatasourceRoleDto>();
cfg.CreateMap<VisualisationRegistryDatasourceRoleDto, VisualisationRegistryDatasourceRole>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new VisualisationRegistryDatasourceRoleRepository(dbContext, userName);
@@ -28,6 +28,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
[Route("api/[controller]")]
[Produces("application/json")]
@@ -58,7 +59,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<VisualisationRegistryDatasourceSeriesDto, VisualisationRegistryDatasourceSeries>();
cfg.CreateMap<VisualisationRegistryDatasourceSeries, VisualisationRegistryDatasourceSeriesDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
}
@@ -31,6 +31,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -62,7 +63,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<VisualisationRegistryParameterDto, VisualisationRegistryParameter>();
cfg.CreateMap<VisualisationRegistryParameter, VisualisationRegistryParameterDto>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new VisualisationRegistryParameterRepository(dbContext, userName);
@@ -29,6 +29,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -60,7 +61,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<VisualisationRegistryParameterRole, VisualisationRegistryParameterRoleDto>();
cfg.CreateMap<VisualisationRegistryParameterRoleDto, VisualisationRegistryParameterRole>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new VisualisationRegistryParameterRoleRepository(dbContext, userName);
@@ -29,6 +29,7 @@ namespace Jube.App.Controllers.Repository
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -60,7 +61,7 @@ namespace Jube.App.Controllers.Repository
{
cfg.CreateMap<VisualisationRegistryRole, VisualisationRegistryRoleDto>();
cfg.CreateMap<VisualisationRegistryRoleDto, VisualisationRegistryRole>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new VisualisationRegistryRoleRepository(dbContext, userName);
@@ -30,6 +30,7 @@ namespace Jube.App.Controllers.Session
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Validators;
[Route("api/[controller]")]
@@ -61,7 +62,7 @@ namespace Jube.App.Controllers.Session
{
cfg.CreateMap<SessionCaseJournal, SessionCaseJournalDto>();
cfg.CreateMap<SessionCaseJournalDto, SessionCaseJournal>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
repository = new SessionCaseJournalRepository(dbContext, userName);
@@ -33,6 +33,7 @@ namespace Jube.App.Controllers.Session
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging.Abstractions;
using Newtonsoft.Json;
using Validators;
@@ -67,7 +68,7 @@ namespace Jube.App.Controllers.Session
{
cfg.CreateMap<SessionCaseSearchCompiledSql, SessionCaseSearchCompiledSqlDto>();
cfg.CreateMap<SessionCaseSearchCompiledSqlDto, SessionCaseSearchCompiledSql>();
});
}, NullLoggerFactory.Instance);
mapper = new Mapper(config);
+1 -1
View File
@@ -21,7 +21,7 @@
<PackageReference Include="linq2db" Version="3.6.0"/>
<PackageReference Include="linq2db.AspNet" Version="3.6.0"/>
<PackageReference Include="log4net" Version="2.0.14"/>
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.6"/>
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="9.0.14"/>
<PackageReference Include="Microsoft.AspNetCore.Authentication.Negotiate" Version="6.0.8"/>
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="9.0.11"/>
<PackageReference Include="Microsoft.AspNetCore.SignalR.Common" Version="6.0.6"/>
+3 -5
View File
@@ -15,7 +15,6 @@ namespace Jube.App
{
using System;
using System.Collections.Concurrent;
using System.IdentityModel.Tokens.Jwt;
using System.Net;
using System.Security.Claims;
using System.Text;
@@ -213,6 +212,7 @@ namespace Jube.App
options.DefaultScheme = JwtBearerDefaults.AuthenticationScheme;
}).AddJwtBearer(options =>
{
options.UseSecurityTokenValidators = false;
options.SaveToken = true;
options.AutomaticRefreshInterval = TimeSpan.FromMinutes(5);
options.RequireHttpsMetadata = false;
@@ -247,12 +247,10 @@ namespace Jube.App
HttpOnly = true
};
var tokenString = new JwtSecurityTokenHandler().WriteToken(token);
context.Response.Headers.Append("authentication",
tokenString);
token);
context.Response.Cookies.Append("authentication", tokenString
context.Response.Cookies.Append("authentication", token
, cookieOptions);
return Task.CompletedTask;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class CaseWorkflowActionRepository
@@ -185,7 +186,7 @@ namespace Jube.Data.Repository
var mapper = new Mapper(new MapperConfiguration(cfg =>
{
cfg.CreateMap<CaseWorkflowAction, CaseWorkflowActionVersion>();
}));
}, NullLoggerFactory.Instance));
var audit = mapper.Map<CaseWorkflowActionVersion>(existing);
audit.CaseWorkflowActionId = existing.Id;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class CaseWorkflowDisplayRepository
@@ -171,7 +172,7 @@ namespace Jube.Data.Repository
var mapper = new Mapper(new MapperConfiguration(cfg =>
{
cfg.CreateMap<CaseWorkflowDisplay, CaseWorkflowDisplayVersion>();
}));
}, NullLoggerFactory.Instance));
var audit = mapper.Map<CaseWorkflowDisplayVersion>(existing);
audit.CaseWorkflowDisplayId = existing.Id;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class CaseWorkflowFilterRepository
@@ -169,7 +170,7 @@ namespace Jube.Data.Repository
var mapper = new Mapper(new MapperConfiguration(cfg =>
{
cfg.CreateMap<CaseWorkflowFilter, CaseWorkflowFilterVersion>();
}));
}, NullLoggerFactory.Instance));
var audit = mapper.Map<CaseWorkflowFilterVersion>(existing);
audit.CaseWorkflowFilterId = existing.Id;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class CaseWorkflowFormRepository
@@ -142,7 +143,7 @@ namespace Jube.Data.Repository
await dbContext.UpdateAsync(model, token: token);
var mapper = new Mapper(new MapperConfiguration(cfg => { cfg.CreateMap<CaseWorkflowForm, CaseWorkflowFormVersion>(); }));
var mapper = new Mapper(new MapperConfiguration(cfg => { cfg.CreateMap<CaseWorkflowForm, CaseWorkflowFormVersion>(); }, NullLoggerFactory.Instance));
var audit = mapper.Map<CaseWorkflowFormVersion>(existing);
audit.CaseWorkflowFormId = existing.Id;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class CaseWorkflowMacroRepository
@@ -178,7 +179,7 @@ namespace Jube.Data.Repository
await dbContext.UpdateAsync(model, token: token);
var mapper = new Mapper(new MapperConfiguration(cfg => { cfg.CreateMap<CaseWorkflowMacro, CaseWorkflowMacroVersion>(); }));
var mapper = new Mapper(new MapperConfiguration(cfg => { cfg.CreateMap<CaseWorkflowMacro, CaseWorkflowMacroVersion>(); }, NullLoggerFactory.Instance));
var audit = mapper.Map<CaseWorkflowMacroVersion>(existing);
audit.CaseWorkflowMacroId = existing.Id;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class CaseWorkflowRepository
@@ -157,7 +158,7 @@ namespace Jube.Data.Repository
await dbContext.UpdateAsync(model, token: token);
var mapper = new Mapper(new MapperConfiguration(cfg => { cfg.CreateMap<CaseWorkflow, CaseWorkflowVersion>(); }));
var mapper = new Mapper(new MapperConfiguration(cfg => { cfg.CreateMap<CaseWorkflow, CaseWorkflowVersion>(); }, NullLoggerFactory.Instance));
var audit = mapper.Map<CaseWorkflowVersion>(existing);
audit.CaseWorkflowId = existing.Id;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class CaseWorkflowStatusRepository
@@ -185,7 +186,7 @@ namespace Jube.Data.Repository
var mapper = new Mapper(new MapperConfiguration(cfg =>
{
cfg.CreateMap<CaseWorkflowStatus, CaseWorkflowStatusVersion>();
}));
}, NullLoggerFactory.Instance));
var audit = mapper.Map<CaseWorkflowStatusVersion>(existing);
audit.CaseWorkflowStatusId = existing.Id;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class CaseWorkflowXPathRepository
@@ -205,7 +206,7 @@ namespace Jube.Data.Repository
await dbContext.UpdateAsync(model, token: token);
var mapper = new Mapper(new MapperConfiguration(cfg => { cfg.CreateMap<CaseWorkflowXPath, CaseWorkflowXPathVersion>(); }));
var mapper = new Mapper(new MapperConfiguration(cfg => { cfg.CreateMap<CaseWorkflowXPath, CaseWorkflowXPathVersion>(); }, NullLoggerFactory.Instance));
var audit = mapper.Map<CaseWorkflowXPathVersion>(existing);
audit.CaseWorkflowXPathId = existing.Id;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class EntityAnalysisModelAbstractionCalculationRepository
@@ -126,7 +127,7 @@ namespace Jube.Data.Repository
{
cfg.CreateMap<EntityAnalysisModelAbstractionCalculation,
EntityAnalysisModelAbstractionCalculationVersion>();
}));
}, NullLoggerFactory.Instance));
var audit = mapper.Map<EntityAnalysisModelAbstractionCalculationVersion>(existing);
audit.EntityAnalysisModelAbstractionCalculationId = existing.Id;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class EntityAnalysisModelAbstractionRuleRepository
@@ -130,7 +131,7 @@ namespace Jube.Data.Repository
var mapper = new Mapper(new MapperConfiguration(cfg =>
{
cfg.CreateMap<EntityAnalysisModelAbstractionRule, EntityAnalysisModelAbstractionRuleVersion>();
}));
}, NullLoggerFactory.Instance));
var audit = mapper.Map<EntityAnalysisModelAbstractionRuleVersion>(existing);
audit.EntityAnalysisModelAbstractionRuleId = existing.Id;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class EntityAnalysisModelActivationRuleRepository
@@ -172,7 +173,7 @@ namespace Jube.Data.Repository
var mapper = new Mapper(new MapperConfiguration(cfg =>
{
cfg.CreateMap<EntityAnalysisModelActivationRule, EntityAnalysisModelActivationRuleVersion>();
}));
}, NullLoggerFactory.Instance));
var audit = mapper.Map<EntityAnalysisModelActivationRuleVersion>(existing);
audit.EntityAnalysisModelActivationRuleId = existing.Id;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class EntityAnalysisModelDictionaryKvpRepository
@@ -121,7 +122,7 @@ namespace Jube.Data.Repository
var mapper = new Mapper(new MapperConfiguration(cfg =>
{
cfg.CreateMap<EntityAnalysisModelDictionaryKvp, EntityAnalysisModelDictionaryKvpVersion>();
}));
}, NullLoggerFactory.Instance));
var audit = mapper.Map<EntityAnalysisModelDictionaryKvpVersion>(existing);
audit.EntityAnalysisModelDictionaryKvpId = existing.Id;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class EntityAnalysisModelDictionaryRepository
@@ -140,7 +141,7 @@ namespace Jube.Data.Repository
var mapper = new Mapper(new MapperConfiguration(cfg =>
{
cfg.CreateMap<EntityAnalysisModelDictionary, EntityAnalysisModelDictionaryVersion>();
}));
}, NullLoggerFactory.Instance));
var audit = mapper.Map<EntityAnalysisModelDictionaryVersion>(existing);
audit.EntityAnalysisModelDictionaryId = existing.Id;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class EntityAnalysisModelGatewayRuleRepository
@@ -128,7 +129,7 @@ namespace Jube.Data.Repository
var mapper = new Mapper(new MapperConfiguration(cfg =>
{
cfg.CreateMap<EntityAnalysisModelGatewayRule, EntityAnalysisModelGatewayRuleVersion>();
}));
}, NullLoggerFactory.Instance));
var audit = mapper.Map<EntityAnalysisModelGatewayRuleVersion>(existing);
audit.EntityAnalysisModelGatewayRuleId = existing.Id;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class EntityAnalysisModelHttpAdaptationRepository
@@ -128,7 +129,7 @@ namespace Jube.Data.Repository
var mapper = new Mapper(new MapperConfiguration(cfg =>
{
cfg.CreateMap<EntityAnalysisModelHttpAdaptation, EntityAnalysisModelHttpAdaptationVersion>();
}));
}, NullLoggerFactory.Instance));
var audit = mapper.Map<EntityAnalysisModelHttpAdaptationVersion>(existing);
audit.EntityAnalysisModelHttpAdaptationId = existing.Id;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class EntityAnalysisModelInlineFunctionRepository
@@ -114,7 +115,7 @@ namespace Jube.Data.Repository
var mapper = new Mapper(new MapperConfiguration(cfg =>
{
cfg.CreateMap<EntityAnalysisModelInlineFunction, EntityAnalysisModelInlineFunctionVersion>();
}));
}, NullLoggerFactory.Instance));
var audit = mapper.Map<EntityAnalysisModelInlineFunctionVersion>(existing);
audit.EntityAnalysisModelInlineFunctionId = existing.Id;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class EntityAnalysisModelInlineScriptRepository
@@ -123,7 +124,7 @@ namespace Jube.Data.Repository
var mapper = new Mapper(new MapperConfiguration(cfg =>
{
cfg.CreateMap<EntityAnalysisModelInlineScript, EntityAnalysisModelInlineScriptVersion>();
}));
}, NullLoggerFactory.Instance));
var audit = mapper.Map<EntityAnalysisModelInlineScriptVersion>(existing);
audit.EntityAnalysisModelInlineScriptId = existing.Id;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class EntityAnalysisModelListRepository
@@ -140,7 +141,7 @@ namespace Jube.Data.Repository
var mapper = new Mapper(new MapperConfiguration(cfg =>
{
cfg.CreateMap<EntityAnalysisModelList, EntityAnalysisModelListVersion>();
}));
}, NullLoggerFactory.Instance));
var audit = mapper.Map<EntityAnalysisModelListVersion>(existing);
audit.EntityAnalysisModelListId = existing.Id;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class EntityAnalysisModelListValueRepository
@@ -112,7 +113,7 @@ namespace Jube.Data.Repository
var mapper = new Mapper(new MapperConfiguration(cfg =>
{
cfg.CreateMap<EntityAnalysisModelListValue, EntityAnalysisModelListValueVersion>();
}));
}, NullLoggerFactory.Instance));
var audit = mapper.Map<EntityAnalysisModelListValueVersion>(existing);
audit.EntityAnalysisModelListValueId = existing.Id;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class EntityAnalysisModelRepository
@@ -107,7 +108,7 @@ namespace Jube.Data.Repository
var mapper = new Mapper(new MapperConfiguration(cfg =>
{
cfg.CreateMap<EntityAnalysisModel, EntityAnalysisModelVersion>();
}));
}, NullLoggerFactory.Instance));
var audit = mapper.Map<EntityAnalysisModelVersion>(existing);
audit.EntityAnalysisModelId = existing.Id;
@@ -22,6 +22,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class EntityAnalysisModelRequestXPathRepository
@@ -200,7 +201,7 @@ namespace Jube.Data.Repository
var mapper = new Mapper(new MapperConfiguration(cfg =>
{
cfg.CreateMap<EntityAnalysisModelRequestXpath, EntityAnalysisModelRequestXpathVersion>();
}));
}, NullLoggerFactory.Instance));
var audit = mapper.Map<EntityAnalysisModelRequestXpathVersion>(existing);
audit.EntityAnalysisModelRequestXpathId = existing.Id;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class EntityAnalysisModelSanctionRepository
@@ -127,7 +128,7 @@ namespace Jube.Data.Repository
var mapper = new Mapper(new MapperConfiguration(cfg =>
{
cfg.CreateMap<EntityAnalysisModelSanction, EntityAnalysisModelSanctionVersion>();
}));
}, NullLoggerFactory.Instance));
var audit = mapper.Map<EntityAnalysisModelSanctionVersion>(existing);
audit.EntityAnalysisModelSanctionId = existing.Id;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class EntityAnalysisModelTagRepository
@@ -125,7 +126,7 @@ namespace Jube.Data.Repository
var mapper = new Mapper(new MapperConfiguration(cfg =>
{
cfg.CreateMap<EntityAnalysisModelTag, EntityAnalysisModelTagVersion>();
}));
}, NullLoggerFactory.Instance));
var audit = mapper.Map<EntityAnalysisModelTagVersion>(existing);
audit.EntityAnalysisModelTagId = existing.Id;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class EntityAnalysisModelTtlCounterRepository
@@ -135,7 +136,7 @@ namespace Jube.Data.Repository
var mapper = new Mapper(new MapperConfiguration(cfg =>
{
cfg.CreateMap<EntityAnalysisModelTtlCounter, EntityAnalysisModelTtlCounterVersion>();
}));
}, NullLoggerFactory.Instance));
var audit = mapper.Map<EntityAnalysisModelTtlCounterVersion>(existing);
audit.EntityAnalysisModelTtlCounterId = existing.Id;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class ExhaustiveSearchInstanceRepository
@@ -128,7 +129,7 @@ namespace Jube.Data.Repository
var mapper = new Mapper(new MapperConfiguration(cfg =>
{
cfg.CreateMap<ExhaustiveSearchInstance, ExhaustiveSearchInstanceVersion>();
}));
}, NullLoggerFactory.Instance));
var audit = mapper.Map<ExhaustiveSearchInstanceVersion>(existing);
audit.ExhaustiveSearchInstanceId = existing.Id;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class RoleRegistryPermissionRepository
@@ -84,7 +85,7 @@ namespace Jube.Data.Repository
var mapper = new Mapper(new MapperConfiguration(cfg =>
{
cfg.CreateMap<RoleRegistryPermission, RoleRegistryPermissionVersion>();
}));
}, NullLoggerFactory.Instance));
var audit = mapper.Map<RoleRegistryPermissionVersion>(existing);
audit.RoleRegistryPermissionId = existing.Id;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class RoleRegistryRepository
@@ -97,7 +98,7 @@ namespace Jube.Data.Repository
await dbContext.UpdateAsync(model, token: token);
var mapper = new Mapper(new MapperConfiguration(cfg => { cfg.CreateMap<RoleRegistry, RoleRegistryVersion>(); }));
var mapper = new Mapper(new MapperConfiguration(cfg => { cfg.CreateMap<RoleRegistry, RoleRegistryVersion>(); }, NullLoggerFactory.Instance));
var audit = mapper.Map<RoleRegistryVersion>(existing);
audit.RoleRegistryId = existing.Id;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class TenantRegistryRepository(DbContext dbContext, string userName)
@@ -79,7 +80,7 @@ namespace Jube.Data.Repository
await dbContext.UpdateAsync(model, token: token);
var mapper = new Mapper(new MapperConfiguration(cfg => { cfg.CreateMap<TenantRegistry, TenantRegistryVersion>(); }));
var mapper = new Mapper(new MapperConfiguration(cfg => { cfg.CreateMap<TenantRegistry, TenantRegistryVersion>(); }, NullLoggerFactory.Instance));
var audit = mapper.Map<TenantRegistryVersion>(existing);
audit.TenantRegistryId = existing.Id;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class UserRegistryRepository
@@ -134,7 +135,7 @@ namespace Jube.Data.Repository
await dbContext.UpdateAsync(model, token: token);
var mapper = new Mapper(new MapperConfiguration(cfg => { cfg.CreateMap<UserRegistry, UserRegistryVersion>(); }));
var mapper = new Mapper(new MapperConfiguration(cfg => { cfg.CreateMap<UserRegistry, UserRegistryVersion>(); }, NullLoggerFactory.Instance));
var audit = mapper.Map<UserRegistryVersion>(existing);
audit.UserRegistryId = existing.Id;
@@ -22,6 +22,7 @@ namespace Jube.Data.Repository
using Context;
using LinqToDB;
using log4net;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
using Reporting;
using Validation;
@@ -215,7 +216,7 @@ namespace Jube.Data.Repository
var mapper = new Mapper(new MapperConfiguration(cfg =>
{
cfg.CreateMap<VisualisationRegistryDatasource, VisualisationRegistryDatasourceVersion>();
}));
}, NullLoggerFactory.Instance));
var audit = mapper.Map<VisualisationRegistryDatasourceVersion>(existing);
audit.VisualisationRegistryDatasourceId = existing.Id;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class VisualisationRegistryParameterRepository
@@ -154,7 +155,7 @@ namespace Jube.Data.Repository
var mapper = new Mapper(new MapperConfiguration(cfg =>
{
cfg.CreateMap<VisualisationRegistryParameter, VisualisationRegistryParameterVersion>();
}));
}, NullLoggerFactory.Instance));
var audit = mapper.Map<VisualisationRegistryParameterVersion>(existing);
audit.VisualisationRegistryParameterId = existing.Id;
@@ -21,6 +21,7 @@ namespace Jube.Data.Repository
using AutoMapper;
using Context;
using LinqToDB;
using Microsoft.Extensions.Logging.Abstractions;
using Poco;
public class VisualisationRegistryRepository
@@ -142,7 +143,7 @@ namespace Jube.Data.Repository
var mapper = new Mapper(new MapperConfiguration(cfg =>
{
cfg.CreateMap<VisualisationRegistry, VisualisationRegistryVersion>();
}));
}, NullLoggerFactory.Instance));
var audit = mapper.Map<VisualisationRegistryVersion>(existing);
audit.VisualisationRegistryId = existing.Id;