- fix warnings vari..
This commit is contained in:
Samuele Locatelli
2024-09-04 07:36:32 +02:00
parent b90603fda7
commit 60d4a802f7
6 changed files with 9 additions and 8 deletions
+2 -2
View File
@@ -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>
+1 -1
View File
@@ -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;
+3 -3
View File
@@ -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)
+1
View File
@@ -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>
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;