Skip to content

Commit 2143f1f

Browse files
committed
fix and cleanup samples
1 parent de410a3 commit 2143f1f

6 files changed

Lines changed: 11 additions & 21 deletions

File tree

Directory.Packages.props

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@
77
<RuntimeVersion Condition="'$(TargetFramework)' == 'net7.0'">7.0.14</RuntimeVersion>
88
<RuntimeVersion Condition="'$(TargetFramework)' == 'net8.0'">8.0.0</RuntimeVersion>
99
</PropertyGroup>
10+
<ItemGroup>
11+
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly" Version="$(RuntimeVersion)" />
12+
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="$(RuntimeVersion)" />
13+
<PackageVersion Include="Microsoft.JSInterop" Version="$(RuntimeVersion)" />
14+
</ItemGroup>
1015
<ItemGroup>
1116
<PackageVersion Include="BenchmarkDotNet" Version="0.13.10" />
1217
<PackageVersion Include="Blazored.LocalStorage" Version="4.4.0" />
1318
<PackageVersion Include="EnumExtensions.System.Text.Json" Version="1.1.0" />
1419
<PackageVersion Include="FluentAssertions" Version="6.12.0" />
15-
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.0" />
16-
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.0" />
1720
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.7.0" />
1821
<PackageVersion Include="Microsoft.Extensions.Configuration.Abstractions" Version="6.0.0" />
1922
<PackageVersion Include="Microsoft.Extensions.Configuration.Binder" Version="6.0.0" />
@@ -26,15 +29,14 @@
2629
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.0" />
2730
<PackageVersion Include="Microsoft.Extensions.Options" Version="6.0.0" />
2831
<PackageVersion Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="6.0.0" />
29-
<PackageVersion Include="Microsoft.JSInterop" Version="$(RuntimeVersion)" />
3032
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
3133
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
3234
<PackageVersion Include="Polly" Version="8.2.0" />
3335
<PackageVersion Include="Serilog.Extensions.Hosting" Version="8.0.0" />
3436
<PackageVersion Include="Serilog.Extensions.Logging" Version="8.0.0" />
3537
<PackageVersion Include="Serilog.Sinks.Console" Version="5.0.0" />
3638
<PackageVersion Include="Serilog.Sinks.XUnit" Version="3.0.5" />
37-
<PackageVersion Include="System.Text.Json" Version="8.0.0" />
39+
<PackageVersion Include="System.Text.Json" Version="7.0.0" />
3840
<PackageVersion Include="Testcontainers" Version="3.6.0" />
3941
<PackageVersion Include="Xunit.DependencyInjection" Version="8.7.1" />
4042
<PackageVersion Include="Xunit.DependencyInjection.Logging" Version="8.1.0" />
@@ -50,4 +52,4 @@
5052
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
5153
</PackageVersion>
5254
</ItemGroup>
53-
</Project>
55+
</Project>

samples/MessageReceiverService/MessageReceiverService.csproj

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,4 @@
1717
</Content>
1818
</ItemGroup>
1919

20-
<ItemGroup>
21-
<None Include="_contracts\GiverV2.abi.json">
22-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
23-
</None>
24-
</ItemGroup>
25-
2620
</Project>

samples/MessageSenderService/MessageSenderService.csproj

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,4 @@
1717
</Content>
1818
</ItemGroup>
1919

20-
<ItemGroup>
21-
<None Include="_contracts\GiverV2.abi.json">
22-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
23-
</None>
24-
</ItemGroup>
25-
2620
</Project>

samples/TestingExample/Accounts/CalculatorExternal.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ public async Task<long> GetSum(CancellationToken cancellationToken = default) {
3838

3939
ResultOfDecodeAccountData data = await _client.Abi.DecodeAccountData(new ParamsOfDecodeAccountData {
4040
Abi = await GetAbi(cancellationToken),
41-
Data = parse.Parsed.Get<string>("data")
41+
Data = parse.Parsed!.Get<string>("data")
4242
}, cancellationToken);
4343

44-
return long.Parse(data.Data.Get<string>("sum"));
44+
return long.Parse(data.Data!.Get<string>("sum"));
4545
}
4646

4747
public async Task<ResultOfProcessMessage> Deploy(CancellationToken cancellationToken = default) {

samples/TestingExample/CalculatorInternalTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
using EverscaleNet.Abstract;
22
using EverscaleNet.Client.Models;
33
using EverscaleNet.Models;
4+
using Polly;
5+
using Polly.Retry;
46

57
namespace TestingExample;
68

samples/TestingExample/GlobalUsings.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
global using Microsoft.Extensions.Hosting;
1515
global using Microsoft.Extensions.Logging;
1616
global using Microsoft.Extensions.Options;
17-
global using Polly;
18-
global using Polly.Retry;
1917
global using Serilog;
2018
global using Serilog.Extensions.Logging;
2119
global using TestingExample.Accounts;

0 commit comments

Comments
 (0)