Skip to content

Commit bb8c0a9

Browse files
authored
update dependencies version and custom options (#65)
1 parent 07e2f04 commit bb8c0a9

File tree

8 files changed

+45
-34
lines changed

8 files changed

+45
-34
lines changed

build/dependencies.props

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<PropertyGroup>
33
<!-- DtmCommon -->
44
<DapperPackageVersion>2.0.123</DapperPackageVersion>
5-
<SystemTextJsonPackageVersion6>6.0.2</SystemTextJsonPackageVersion6>
5+
<SystemTextJsonPackageVersion6>6.0.7</SystemTextJsonPackageVersion6>
66
<MicrosoftExtensionsConfigurationNET6>6.0.0</MicrosoftExtensionsConfigurationNET6>
77
<MicrosoftExtensionsHttpNET6>6.0.0</MicrosoftExtensionsHttpNET6>
88
<MicrosoftExtensionsOptionsConfigurationExtensionsNET6>6.0.0</MicrosoftExtensionsOptionsConfigurationExtensionsNET6>
9-
<SystemTextJsonPackageVersion7>7.0.0</SystemTextJsonPackageVersion7>
9+
<SystemTextJsonPackageVersion7>7.0.2</SystemTextJsonPackageVersion7>
1010
<MicrosoftExtensionsConfigurationNET7>7.0.0</MicrosoftExtensionsConfigurationNET7>
1111
<MicrosoftExtensionsHttpNET7>7.0.0</MicrosoftExtensionsHttpNET7>
1212
<MicrosoftExtensionsOptionsConfigurationExtensionsNET7>7.0.0</MicrosoftExtensionsOptionsConfigurationExtensionsNET7>
@@ -16,25 +16,27 @@
1616
<MicrosoftExtensionsOptionsConfigurationExtensionsNSD21>6.0.0</MicrosoftExtensionsOptionsConfigurationExtensionsNSD21>
1717

1818
<!-- Dtmgrpc -->
19-
<GoogleProtobufPackageVersion>3.21.9</GoogleProtobufPackageVersion>
20-
<GrpcNetClientFactoryPackageVersion>2.50.0</GrpcNetClientFactoryPackageVersion>
21-
<GrpcToolsPackageVersion>2.50.0</GrpcToolsPackageVersion>
19+
<GoogleProtobufPackageVersion>3.22.1</GoogleProtobufPackageVersion>
20+
<GrpcNetClientFactoryPackageVersion>2.52.0</GrpcNetClientFactoryPackageVersion>
21+
<GrpcToolsPackageVersion>2.52.0</GrpcToolsPackageVersion>
2222

2323
<!-- Barrier Extension -->
24-
<MongoDBDriverPackageVersion>2.18.0</MongoDBDriverPackageVersion>
25-
<StackExchangeRedisPackageVersion>2.5.61</StackExchangeRedisPackageVersion>
24+
<MongoDBDriverPackageVersion>2.19.0</MongoDBDriverPackageVersion>
25+
<StackExchangeRedisPackageVersion>2.6.96</StackExchangeRedisPackageVersion>
2626

2727

28-
<!-- TEST -->
29-
<GrpcAspNetCorePackageVersion>2.50.0</GrpcAspNetCorePackageVersion>
30-
<MySqlConnectorPackageVersion>2.2.1</MySqlConnectorPackageVersion>
31-
<MicrosoftNETTestSdkPackageVersion>17.4.0</MicrosoftNETTestSdkPackageVersion>
32-
<MoqPackageVersion>4.18.2</MoqPackageVersion>
28+
<!-- TEST And Samples -->
29+
<GrpcAspNetCorePackageVersion>2.52.0</GrpcAspNetCorePackageVersion>
30+
<MySqlConnectorPackageVersion>2.2.5</MySqlConnectorPackageVersion>
31+
<MicrosoftNETTestSdkPackageVersion>17.5.0</MicrosoftNETTestSdkPackageVersion>
32+
<MoqPackageVersion>4.18.4</MoqPackageVersion>
3333
<XunitPackageVersion>2.4.2</XunitPackageVersion>
3434
<XunitRunnerVisualstudioPackageVersion>2.4.5</XunitRunnerVisualstudioPackageVersion>
3535
<CoverletCollectorPackageVersion>3.2.0</CoverletCollectorPackageVersion>
3636
<MicrosoftExtensionsDependencyInjectionPackageVersion>7.0.0</MicrosoftExtensionsDependencyInjectionPackageVersion>
3737
<DbMockerPackageVersion>1.22.0</DbMockerPackageVersion>
38+
<MicrosoftDataSqlClientPackageVersion>5.1.0</MicrosoftDataSqlClientPackageVersion>
39+
<SwashbuckleAspNetCorePackageVersion>6.5.0</SwashbuckleAspNetCorePackageVersion>
3840

3941
</PropertyGroup>
4042
</Project>

samples/DtmOnDaprSample/DtmOnDaprSample.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Dapper" Version="2.0.123" />
12-
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.0.1" />
13-
<PackageReference Include="MySqlConnector" Version="2.2.1" />
14-
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
11+
<PackageReference Include="Dapper" Version="$(DapperPackageVersion)" />
12+
<PackageReference Include="Microsoft.Data.SqlClient" Version="$(MicrosoftDataSqlClientPackageVersion)" />
13+
<PackageReference Include="MySqlConnector" Version="$(MySqlConnectorPackageVersion)" />
14+
<PackageReference Include="Swashbuckle.AspNetCore" Version="$(SwashbuckleAspNetCorePackageVersion)" />
1515
</ItemGroup>
1616

1717
<ItemGroup>

samples/DtmSample/DtmSample.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Dapper" Version="2.0.123" />
12-
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.0.1" />
13-
<PackageReference Include="MySqlConnector" Version="2.2.1" />
14-
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
11+
<PackageReference Include="Dapper" Version="$(DapperPackageVersion)" />
12+
<PackageReference Include="Microsoft.Data.SqlClient" Version="$(MicrosoftDataSqlClientPackageVersion)" />
13+
<PackageReference Include="MySqlConnector" Version="$(MySqlConnectorPackageVersion)" />
14+
<PackageReference Include="Swashbuckle.AspNetCore" Version="$(SwashbuckleAspNetCorePackageVersion)" />
1515
</ItemGroup>
1616

1717
<ItemGroup>

src/DtmCommon/DtmCommon.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
</ItemGroup>
3434

3535
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.1' OR '$(TargetFramework)' == 'netstandard2.0'">
36-
<PackageReference Include="System.Text.Json" Version="$(SystemTextJsonPackageVersion6)" />
36+
<PackageReference Include="System.Text.Json" Version="$(SystemTextJsonPackageVersion7)" />
3737
<PackageReference Include="Microsoft.CSharp" Version="$(MicrosoftCSharpNSD21)" />
3838
<PackageReference Include="Microsoft.Extensions.Configuration" Version="$(MicrosoftExtensionsConfigurationNSD21)" />
3939
<PackageReference Include="Microsoft.Extensions.Http" Version="$(MicrosoftExtensionsHttpNSD21)" />

src/Dtmcli/Msg/Msg.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public async Task Prepare(string queryPrepared, CancellationToken cancellationTo
4848

4949
public async Task Submit(CancellationToken cancellationToken = default)
5050
{
51-
this.BuildCustimOptions();
51+
this.BuildCustomOptions();
5252
await this._dtmClient.TransCallDtm(this._transBase, this._transBase, Constant.Request.OPERATION_SUBMIT, cancellationToken);
5353
}
5454

@@ -153,7 +153,7 @@ public Msg SetDelay(long delay)
153153
return this;
154154
}
155155

156-
private void BuildCustimOptions()
156+
private void BuildCustomOptions()
157157
{
158158
if (this._delay > 0)
159159
{

src/Dtmcli/Saga/Saga.cs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,7 @@ public Saga EnableConcurrent()
4444

4545
public async Task Submit(CancellationToken cancellationToken = default)
4646
{
47-
if (this._concurrent)
48-
{
49-
this._transBase.CustomData = JsonSerializer.Serialize(new { orders = this._orders, concurrent = this._concurrent });
50-
}
51-
47+
this.BuildCustomOptions();
5248
await _dtmClient.TransCallDtm(this._transBase, this._transBase, Constant.Request.OPERATION_SUBMIT, cancellationToken).ConfigureAwait(false);
5349
}
5450

@@ -107,5 +103,13 @@ public Saga SetRetryLimit(long limit)
107103
this._transBase.RetryLimit = limit;
108104
return this;
109105
}
106+
107+
private void BuildCustomOptions()
108+
{
109+
if (this._concurrent)
110+
{
111+
this._transBase.CustomData = JsonSerializer.Serialize(new { orders = this._orders, concurrent = this._concurrent });
112+
}
113+
}
110114
}
111115
}

src/Dtmgrpc/Msg/MsgGrpc.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public async Task Prepare(string queryPrepared, CancellationToken cancellationTo
5252

5353
public async Task Submit(CancellationToken cancellationToken = default)
5454
{
55-
this.BuildCustimOptions();
55+
this.BuildCustomOptions();
5656
await this._dtmClient.DtmGrpcCall(this._transBase, Constant.Op.Submit);
5757
}
5858

@@ -164,7 +164,7 @@ public MsgGrpc SetDelay(long delay)
164164
return this;
165165
}
166166

167-
private void BuildCustimOptions()
167+
private void BuildCustomOptions()
168168
{
169169
if (this._delay > 0)
170170
{

src/Dtmgrpc/Saga/SagaGrpc.cs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,7 @@ public SagaGrpc EnableConcurrent()
4747

4848
public async Task Submit()
4949
{
50-
if (this._concurrent)
51-
{
52-
this._transBase.CustomData = Utils.ToJsonString(new { orders = this._orders, concurrent = this._concurrent });
53-
}
50+
this.BuildCustimOptions();
5451

5552
await _dtmClient.DtmGrpcCall(this._transBase, Constant.Op.Submit).ConfigureAwait(false);
5653
}
@@ -110,5 +107,13 @@ public SagaGrpc SetRetryLimit(long limit)
110107
this._transBase.RetryLimit = limit;
111108
return this;
112109
}
110+
111+
private void BuildCustimOptions()
112+
{
113+
if (this._concurrent)
114+
{
115+
this._transBase.CustomData = Utils.ToJsonString(new { orders = this._orders, concurrent = this._concurrent });
116+
}
117+
}
113118
}
114119
}

0 commit comments

Comments
 (0)