SPEC:
- fix warnings vari..
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
<PackageReference Include="Blazored.LocalStorage" Version="4.5.0" />
|
||||
<PackageReference Include="Blazored.SessionStorage" Version="2.4.0" />
|
||||
<PackageReference Include="EgwCoreLib.Utils" Version="1.5.2408.2710" />
|
||||
<PackageReference Include="MailKit" Version="4.2.0" />
|
||||
<PackageReference Include="MailKit" Version="4.7.1.1" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Http.Connections.Common" Version="6.0.24" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.33" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="6.0.33" />
|
||||
@@ -30,10 +30,10 @@
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="6.0.9" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="6.0.0" />
|
||||
<PackageReference Include="MongoDB.Driver" Version="2.19.0" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
<PackageReference Include="NLog" Version="5.3.3" />
|
||||
<PackageReference Include="StackExchange.Redis" Version="2.8.12" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -76,7 +76,7 @@ namespace MP.SPEC.Components
|
||||
protected async Task getReparto()
|
||||
{
|
||||
string keyStor = "reparto";
|
||||
string localReparto = await localStorage.GetItemAsync<string>(keyStor);
|
||||
string localReparto = await localStorage.GetItemAsync<string>(keyStor) ?? "";
|
||||
if (!string.IsNullOrEmpty(localReparto))
|
||||
{
|
||||
selReparto = localReparto;
|
||||
|
||||
@@ -329,7 +329,7 @@ namespace MP.SPEC.Data
|
||||
// cerco in cache redis...
|
||||
string redKeyArtUsed = $"{Utils.redKeyArtUsed}:{codArticolo}";
|
||||
string redKeyTabCheckArt = Utils.redKeyTabCheckArt;
|
||||
string rawData = redisDb.StringGet(redKeyArtUsed);
|
||||
var rawData = redisDb.StringGet(redKeyArtUsed);
|
||||
if (!string.IsNullOrEmpty(rawData))
|
||||
{
|
||||
bool.TryParse(rawData, out answ);
|
||||
@@ -340,11 +340,11 @@ namespace MP.SPEC.Data
|
||||
try
|
||||
{
|
||||
// cerco in cache se ci sia la tabella con gli articoli impiegati...
|
||||
string rawTable = redisDb.StringGet(redKeyTabCheckArt);
|
||||
var rawTable = redisDb.StringGet(redKeyTabCheckArt);
|
||||
List<string>? artList = new List<string>();
|
||||
if (!string.IsNullOrEmpty(rawTable))
|
||||
{
|
||||
artList = JsonConvert.DeserializeObject<List<string>>(rawTable);
|
||||
artList = JsonConvert.DeserializeObject<List<string>>($"{rawTable}");
|
||||
}
|
||||
// rileggo...
|
||||
if (artList == null || artList.Count == 0)
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.Negotiate" Version="6.0.9" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
<PackageReference Include="NLog.Web.AspNetCore" Version="5.3.12" />
|
||||
<PackageReference Include="StackExchange.Redis" Version="2.8.12" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -90,7 +90,7 @@ namespace MP.SPEC.Pages
|
||||
protected async Task getReparto()
|
||||
{
|
||||
string keyStor = "reparto";
|
||||
string localReparto = await localStorage.GetItemAsync<string>(keyStor);
|
||||
string localReparto = await localStorage.GetItemAsync<string>(keyStor)??"";
|
||||
if (!string.IsNullOrEmpty(localReparto))
|
||||
{
|
||||
selReparto = localReparto;
|
||||
|
||||
@@ -90,7 +90,7 @@ namespace MP.SPEC.Pages
|
||||
protected async Task getReparto()
|
||||
{
|
||||
string keyStor = "reparto";
|
||||
string localReparto = await localStorage.GetItemAsync<string>(keyStor);
|
||||
string localReparto = await localStorage.GetItemAsync<string>(keyStor) ?? "";
|
||||
if (!string.IsNullOrEmpty(localReparto))
|
||||
{
|
||||
selReparto = localReparto;
|
||||
|
||||
Reference in New Issue
Block a user