Skip to content

Commit 347d5c6

Browse files
authored
Merge pull request #10 from skbkontur/a.dobrynin/net6
net6
2 parents f208b75 + 86621f1 commit 347d5c6

File tree

15 files changed

+86
-41
lines changed

15 files changed

+86
-41
lines changed

.config/dotnet-tools.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"isRoot": true,
44
"tools": {
55
"skbkontur.typescript.contractgenerator.cli": {
6-
"version": "2.0.94",
6+
"version": "2.0.105",
77
"commands": [
88
"dotnet-ts-gen"
99
]
@@ -15,7 +15,7 @@
1515
]
1616
},
1717
"jetbrains.resharper.globaltools": {
18-
"version": "2020.3.3",
18+
"version": "2021.2.2",
1919
"commands": [
2020
"jb"
2121
]

.start-all.cmd

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
start .\Cassandra.DistributedTaskQueue.TestExchangeService\bin\net5.0\SkbKontur.Cassandra.DistributedTaskQueue.TestExchangeService.exe --urls http://localhost:4403
2-
start .\Cassandra.DistributedTaskQueue.TestExchangeService\bin\net5.0\SkbKontur.Cassandra.DistributedTaskQueue.TestExchangeService.exe --urls http://localhost:4404
3-
start .\Cassandra.DistributedTaskQueue.TestExchangeService\bin\net5.0\SkbKontur.Cassandra.DistributedTaskQueue.TestExchangeService.exe --urls http://localhost:4405
4-
start .\Cassandra.DistributedTaskQueue.TestExchangeService\bin\net5.0\SkbKontur.Cassandra.DistributedTaskQueue.TestExchangeService.exe --urls http://localhost:4406
5-
start .\Cassandra.DistributedTaskQueue.TestExchangeService\bin\net5.0\SkbKontur.Cassandra.DistributedTaskQueue.TestExchangeService.exe --urls http://localhost:4407
6-
start .\Cassandra.DistributedTaskQueue.Monitoring.TestService\bin\net5.0\SkbKontur.Cassandra.DistributedTaskQueue.Monitoring.TestService.exe --urls http://localhost:4413
1+
start .\Cassandra.DistributedTaskQueue.TestExchangeService\bin\net6.0\SkbKontur.Cassandra.DistributedTaskQueue.TestExchangeService.exe --urls http://localhost:4403
2+
start .\Cassandra.DistributedTaskQueue.TestExchangeService\bin\net6.0\SkbKontur.Cassandra.DistributedTaskQueue.TestExchangeService.exe --urls http://localhost:4404
3+
start .\Cassandra.DistributedTaskQueue.TestExchangeService\bin\net6.0\SkbKontur.Cassandra.DistributedTaskQueue.TestExchangeService.exe --urls http://localhost:4405
4+
start .\Cassandra.DistributedTaskQueue.TestExchangeService\bin\net6.0\SkbKontur.Cassandra.DistributedTaskQueue.TestExchangeService.exe --urls http://localhost:4406
5+
start .\Cassandra.DistributedTaskQueue.TestExchangeService\bin\net6.0\SkbKontur.Cassandra.DistributedTaskQueue.TestExchangeService.exe --urls http://localhost:4407
6+
start .\Cassandra.DistributedTaskQueue.Monitoring.TestService\bin\net6.0\SkbKontur.Cassandra.DistributedTaskQueue.Monitoring.TestService.exe --urls http://localhost:4413

Cassandra.DistributedTaskQueue.Monitoring.TestService/Cassandra.DistributedTaskQueue.Monitoring.TestService.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55
<IsPackable>false</IsPackable>
66
<AssemblyName>SkbKontur.Cassandra.DistributedTaskQueue.Monitoring.TestService</AssemblyName>
77
<RootNamespace>SkbKontur.Cassandra.DistributedTaskQueue.Monitoring.TestService</RootNamespace>
88
<OutputPath>bin\</OutputPath>
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="5.0.4" />
13-
<PackageReference Include="SkbKontur.TypeScript.ContractGenerator" Version="2.0.94" />
12+
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.0" />
13+
<PackageReference Include="SkbKontur.TypeScript.ContractGenerator" Version="2.0.105" />
1414
</ItemGroup>
1515

1616
<ItemGroup>

Cassandra.DistributedTaskQueue.Monitoring.TestService/GroboControllerFactory.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Threading.Tasks;
23

34
using GroboContainer.Core;
45

@@ -32,6 +33,11 @@ public void ReleaseController(ControllerContext context, object controller)
3233
{
3334
}
3435

36+
public ValueTask ReleaseControllerAsync(ControllerContext context, object controller)
37+
{
38+
return default;
39+
}
40+
3541
private static IContainer ConfigureContainer()
3642
{
3743
var container = ApplicationBase.Initialize();

Cassandra.DistributedTaskQueue.Monitoring.TestService/Startup.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
using Microsoft.Extensions.DependencyInjection;
55
using Microsoft.Extensions.Hosting;
66

7+
using SkbKontur.Cassandra.DistributedTaskQueue.Monitoring.Json;
8+
79
namespace SkbKontur.Cassandra.DistributedTaskQueue.Monitoring.TestService
810
{
911
public class Startup
1012
{
1113
public void ConfigureServices(IServiceCollection services)
1214
{
13-
services.AddControllers().AddNewtonsoftJson();
15+
services.AddControllers().AddNewtonsoftJson(options => options.SerializerSettings.Converters.Add(new LongToStringConverter()));
1416
services.AddSingleton<IControllerFactory>(new GroboControllerFactory());
1517
}
1618

Cassandra.DistributedTaskQueue.Monitoring.TestService/TypeScriptConfiguration/RtqMonitoringCustomTypeGenerator.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ public ITypeBuildingContext ResolveType(string initialUnitPath, ITypeGenerator t
2727
return TypeBuilding.RedirectToType("Timestamp", @"..\DataTypes\Timestamp", type);
2828
if (type.Equals(TypeInfo.From<TimestampRange>()))
2929
return TypeBuilding.RedirectToType("DateTimeRange", @"..\DataTypes\DateTimeRange", type);
30+
if (type.Equals(TypeInfo.From<long>()))
31+
return new TypeRedirectBuildingContext(TypeInfo.From<long>(), new TypeScriptBuildInType("string"));
3032
if (InternalApiTypeBuildingContext.Accept(type))
3133
return new InternalApiTypeBuildingContext(unitFactory.GetOrCreateTypeUnit(initialUnitPath), type);
3234
return null;
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
using System;
2+
3+
using JetBrains.Annotations;
4+
5+
using SkbKontur.TypeScript.ContractGenerator;
6+
using SkbKontur.TypeScript.ContractGenerator.Abstractions;
7+
using SkbKontur.TypeScript.ContractGenerator.CodeDom;
8+
using SkbKontur.TypeScript.ContractGenerator.TypeBuilders;
9+
10+
namespace SkbKontur.Cassandra.DistributedTaskQueue.Monitoring.TestService.TypeScriptConfiguration
11+
{
12+
public class TypeRedirectBuildingContext : TypeBuildingContextBase
13+
{
14+
public TypeRedirectBuildingContext([NotNull] ITypeInfo type, [NotNull] TypeScriptType typeScriptType)
15+
: base(type)
16+
{
17+
this.typeScriptType = typeScriptType;
18+
}
19+
20+
protected override TypeScriptType ReferenceFromInternal(ITypeInfo type, TypeScriptUnit targetUnit, ITypeGenerator typeGenerator)
21+
{
22+
if (type.Equals(Type))
23+
return typeScriptType;
24+
throw new ArgumentException($"Expected type {Type}, but got {type}");
25+
}
26+
27+
[NotNull]
28+
private readonly TypeScriptType typeScriptType;
29+
}
30+
}

Cassandra.DistributedTaskQueue.TestExchangeService/Cassandra.DistributedTaskQueue.TestExchangeService.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55
<IsPackable>false</IsPackable>
66
<AssemblyName>SkbKontur.Cassandra.DistributedTaskQueue.TestExchangeService</AssemblyName>
77
<RootNamespace>SkbKontur.Cassandra.DistributedTaskQueue.TestExchangeService</RootNamespace>
88
<OutputPath>bin\</OutputPath>
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="5.0.4" />
12+
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.0" />
1313
</ItemGroup>
1414

1515
<ItemGroup>

Cassandra.DistributedTaskQueue.Tests/Cassandra.DistributedTaskQueue.Tests.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55
<IsPackable>false</IsPackable>
66
<AssemblyName>SkbKontur.Cassandra.DistributedTaskQueue.Tests</AssemblyName>
77
<RootNamespace>SkbKontur.Cassandra.DistributedTaskQueue.Tests</RootNamespace>
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="FluentAssertions" Version="5.10.3" />
12-
<PackageReference Include="GroboContainer.NUnitExtensions" Version="1.0.44" />
13-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.1" />
11+
<PackageReference Include="FluentAssertions" Version="6.2.0" />
12+
<PackageReference Include="GroboContainer.NUnitExtensions" Version="1.0.56" />
13+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
1414
<PackageReference Include="morelinq" Version="3.3.2" />
15-
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" />
16-
<PackageReference Include="Vostok.ClusterClient.Transport" Version="0.1.17" />
15+
<PackageReference Include="NUnit3TestAdapter" Version="4.1.0" />
16+
<PackageReference Include="Vostok.ClusterClient.Transport" Version="0.1.21" />
1717
</ItemGroup>
1818

1919
<ItemGroup>

Cassandra.DistributedTaskQueue.Tests/RemoteTaskQueue/RepositoriesTests/TaskExceptionInfoStorageTest.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
using GroboContainer.NUnitExtensions;
99

10-
using MoreLinq;
11-
1210
using NUnit.Framework;
1311

1412
using SkbKontur.Cassandra.DistributedTaskQueue.Cassandra.Entities;

0 commit comments

Comments
 (0)