Skip to content

Commit 4aaf8a8

Browse files
committed
Swapped in multi-threaded reliable messaging library.
1 parent 75e2eef commit 4aaf8a8

17 files changed

+12
-56
lines changed

CatMQ.Service/CatMQ.Service.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>net9.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
7-
<version>2.3.6</version>
7+
<version>2.4.0</version>
88
<ApplicationIcon>Logo.ico</ApplicationIcon>
99
</PropertyGroup>
1010

@@ -17,7 +17,6 @@
1717
</ItemGroup>
1818

1919
<ItemGroup>
20-
<PackageReference Include="NTDLS.ReliableMessaging" Version="2.1.6" />
2120
<PackageReference Include="RocksDB" Version="9.10.0.55496" />
2221
<PackageReference Include="Serilog.Settings.Configuration" Version="9.0.0" />
2322
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />

CatMQ.Service/Pages/Configuration.cshtml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,6 @@
6565
</div>
6666
<div class="card-body">
6767

68-
<div class="mb-3">
69-
<label for="AsynchronousAcknowledgment" class="form-label fw-bold">Asynchronous Ack</label>
70-
<span asp-validation-for="ServerConfig.AsynchronousAcknowledgment" class="text-danger"></span>
71-
<select id="AsynchronousAcknowledgment" asp-for="ServerConfig.AsynchronousAcknowledgment" class="form-select">
72-
<option value="true">True</option>
73-
<option value="false">False</option>
74-
</select>
75-
</div>
76-
7768
<div class="mb-3">
7869
<label for="acknowledgmentTimeoutSeconds" class="form-label fw-bold">Query Timeout (s)</label>
7970
<span asp-validation-for="ServerConfig.AcknowledgmentTimeoutSeconds" class="text-danger"></span>

CatMQ.Service/Pages/Index.cshtml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
<thead class="table-light">
1919
<tr>
2020
<th>Listen Port</th>
21-
<th>Async. Ack.</th>
2221
<th>Ack. Timeout</th>
2322
<th>Initial Buffer</th>
2423
<th>Max. Buffer</th>
@@ -28,7 +27,6 @@
2827
<tbody>
2928
<tr>
3029
<td>@Model.ServerConfig.ListenPort</td>
31-
<td>@Model.ServerConfig.AsynchronousAcknowledgment</td>
3230
<td>@Model.ServerConfig.AcknowledgmentTimeoutSeconds.ToString("n0")</td>
3331
<td>@Formatters.FileSize(Model.ServerConfig.InitialReceiveBufferSize, 2)</td>
3432
<td>@Formatters.FileSize(Model.ServerConfig.MaxReceiveBufferSize, 1)</td>

CatMQ.Service/QueuingService.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ public void Start()
1616
_mqServer = new CMqServer(new CMqServerConfiguration
1717
{
1818
PersistencePath = serviceConfiguration.DataPath,
19-
AsynchronousAcknowledgment = serviceConfiguration.AsynchronousAcknowledgment,
2019
InitialReceiveBufferSize = serviceConfiguration.InitialReceiveBufferSize,
2120
MaxReceiveBufferSize = serviceConfiguration.MaxReceiveBufferSize,
2221
AcknowledgmentTimeoutSeconds = serviceConfiguration.AcknowledgmentTimeoutSeconds,

CatMQ.Service/ServiceConfiguration.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@ public string DataPath
5555
[Required(ErrorMessage = "Web UI URL is required.")]
5656
public string? WebListenURL { get; set; } = "http://*:45783";
5757

58-
/// <summary>
59-
/// When true, query replies are queued in a thread pool. Otherwise, queries block other activities.
60-
/// </summary>
61-
[Required(ErrorMessage = "Asynchronous Query Waiting is required.")]
62-
public bool AsynchronousAcknowledgment { get; set; } = true;
63-
6458
/// <summary>
6559
/// The default amount of time to wait for a query to reply before throwing a timeout exception.
6660
/// </summary>

Installers/Windows.Installer.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#define AppVersion "2.3.6"
1+
#define AppVersion "2.4.0"
22

33
[Setup]
44
;-- Main Setup Information

NTDLS.CatMQ.Client/CMqClient.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ public CMqClient(CMqClientConfiguration configuration)
7373

7474
var rmConfiguration = new RmConfiguration()
7575
{
76-
AsynchronousQueryWaiting = configuration.AsynchronousAcknowledgment,
7776
InitialReceiveBufferSize = configuration.InitialReceiveBufferSize,
7877
MaxReceiveBufferSize = configuration.MaxReceiveBufferSize,
7978
QueryTimeout = configuration.QueryTimeout,

NTDLS.CatMQ.Client/CMqClientConfiguration.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ public class CMqClientConfiguration
1212
/// </summary>
1313
public bool AutoReconnect { get; set; } = true;
1414

15-
/// <summary>
16-
/// When true, query replies are queued in a thread pool. Otherwise, queries block other activities.
17-
/// </summary>
18-
public bool AsynchronousAcknowledgment { get; set; } = true;
19-
2015
/// <summary>
2116
/// The default amount of time to wait for a query to reply before throwing a timeout exception.
2217
/// </summary>

NTDLS.CatMQ.Client/NTDLS.CatMQ.Client.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2222
<Authors>NetworkDLS</Authors>
2323
<Company>NetworkDLS</Company>
24-
<version>2.3.6</version>
24+
<version>2.4.0</version>
2525
<PackageReadmeFile>README.md</PackageReadmeFile>
2626
<PackageIcon>Logo.png</PackageIcon>
2727
<ApplicationIcon>Logo.ico</ApplicationIcon>
@@ -47,8 +47,7 @@
4747
</ItemGroup>
4848

4949
<ItemGroup>
50-
<PackageReference Include="NTDLS.CatMQ.Shared" Version="2.3.6" />
51-
<PackageReference Include="NTDLS.ReliableMessaging" Version="2.1.6" />
50+
<ProjectReference Include="..\NTDLS.CatMQ.Shared\NTDLS.CatMQ.Shared.csproj" />
5251
</ItemGroup>
5352

5453
</Project>

NTDLS.CatMQ.Server/CMqServer.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ public CMqServer(CMqServerConfiguration configuration)
4444

4545
var rmConfiguration = new RmConfiguration()
4646
{
47-
AsynchronousQueryWaiting = configuration.AsynchronousAcknowledgment,
4847
InitialReceiveBufferSize = configuration.InitialReceiveBufferSize,
4948
MaxReceiveBufferSize = configuration.MaxReceiveBufferSize,
5049
QueryTimeout = TimeSpan.FromSeconds(configuration.AcknowledgmentTimeoutSeconds),
@@ -160,7 +159,6 @@ public CMqServerDescriptor GetConfiguration()
160159
{
161160
return new CMqServerDescriptor
162161
{
163-
AsynchronousAcknowledgment = _configuration.AsynchronousAcknowledgment,
164162
AcknowledgmentTimeoutSeconds = _configuration.AcknowledgmentTimeoutSeconds,
165163
InitialReceiveBufferSize = _configuration.InitialReceiveBufferSize,
166164
MaxReceiveBufferSize = _configuration.MaxReceiveBufferSize,

0 commit comments

Comments
 (0)