Skip to content

Commit 67333f9

Browse files
authored
Merge branch 'master' into PollerTestsFix
2 parents 11f3a45 + 2c17a24 commit 67333f9

File tree

105 files changed

+1125
-578
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+1125
-578
lines changed

.github/workflows/CI.yml

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,39 @@ on: [push, pull_request]
44
jobs:
55
ununtu:
66
runs-on: ubuntu-latest
7+
env:
8+
DOTNET_NOLOGO: true
79
steps:
8-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v4.2.2
11+
- uses: actions/setup-dotnet@v4.1.0
12+
with:
13+
dotnet-version: 9.0.x
914
- run: dotnet restore src/NetMQ.sln
1015
- name: build
1116
run: dotnet build src/NetMQ.sln /p:Configuration=Release /verbosity:minimal
12-
- name: test netcoreapp3.1
13-
run: dotnet test -v n -p:ParallelizeTestCollections=false --configuration Release --no-build -f netcoreapp3.1 src/NetMQ.Tests/NetMQ.Tests.csproj
14-
- name: test netcoreapp2.1
15-
run: dotnet test -v n -p:ParallelizeTestCollections=false --configuration Release --no-build -f netcoreapp2.1 src/NetMQ.Tests/NetMQ.Tests.csproj
17+
- name: test net9.0
18+
run: dotnet test -v n -p:ParallelizeTestCollections=false --configuration Release --no-build -f net9.0 src/NetMQ.Tests/NetMQ.Tests.csproj
1619
windows:
1720
runs-on: windows-latest
21+
env:
22+
DOTNET_NOLOGO: true
1823
steps:
19-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v4.2.2
25+
- uses: actions/setup-dotnet@v4.1.0
26+
with:
27+
dotnet-version: 9.0.x
2028
- name: Install codecov
2129
run: |
2230
choco install opencover.portable
2331
choco install codecov
2432
- run: dotnet restore src/NetMQ.sln
2533
- name: build
2634
run: dotnet build src/NetMQ.sln /p:Configuration=Release /verbosity:minimal
27-
- name: test netcoreapp2.1
28-
run: dotnet test -v n -p:ParallelizeTestCollections=false --configuration Release --no-build -f netcoreapp2.1 src\NetMQ.Tests\NetMQ.Tests.csproj
29-
- name: test netcoreapp3.1
30-
run: dotnet test -v n -p:ParallelizeTestCollections=false --configuration Release --no-build -f netcoreapp3.1 src\NetMQ.Tests\NetMQ.Tests.csproj
31-
- name: test net47
32-
run: dotnet test -v n -p:ParallelizeTestCollections=false --configuration Release --no-build -f net47 src\NetMQ.Tests\NetMQ.Tests.csproj
35+
- name: test net9.0
36+
run: dotnet test -v n -p:ParallelizeTestCollections=false --configuration Release --no-build -f net9.0 src\NetMQ.Tests\NetMQ.Tests.csproj
37+
- name: test net472
38+
run: dotnet test -v n -p:ParallelizeTestCollections=false --configuration Release --no-build -f net472 src\NetMQ.Tests\NetMQ.Tests.csproj
3339
- name: coverage
3440
run: |
35-
OpenCover.Console.exe -register:user -target:"C:\Program Files\dotnet\dotnet.exe" -targetargs:"test --no-build --configuration Release -f netcoreapp2.1 --logger:trx;LogFileName=results.trx /p:DebugType=full src\NetMQ.Tests\NetMQ.Tests.csproj" -filter:"+[NetMQ*]* -[NetMQ.Tests*]*" -output:".\NetMQ_coverage.xml" -oldStyle
41+
OpenCover.Console.exe -register:user -target:"C:\Program Files\dotnet\dotnet.exe" -targetargs:"test --no-build --configuration Release -f net6.0 --logger:trx;LogFileName=results.trx /p:DebugType=full src\NetMQ.Tests\NetMQ.Tests.csproj" -filter:"+[NetMQ*]* -[NetMQ.Tests*]*" -output:".\NetMQ_coverage.xml" -oldStyle
3642
codecov -f "NetMQ_coverage.xml"
37-
38-
39-

.github/workflows/prerelease.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
windows:
88
runs-on: windows-latest
99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v3
1111
- name: Get the version
1212
id: get_version
1313
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: windows-latest
99
if: "!github.event.release.prerelease"
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v3
1212
- name: Get the version
1313
id: get_version
1414
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,4 @@ _ReSharper*/
4646
#Ignore lock files
4747
*.lock.json
4848
.idea/
49+
/src/*.DotSettings

.readthedocs.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Read the Docs configuration file for MkDocs projects
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
# Required
5+
version: 2
6+
7+
# Set the version of Python and other tools you might need
8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.12"
12+
13+
mkdocs:
14+
configuration: mkdocs.yml

.travis.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<img src="https://cdn.rawgit.com/zeromq/netmq/master/img/NetMQLogo.svg" width="350" />
22

3-
[![NetMQ AppVeyor Build](https://ci.appveyor.com/api/projects/status/as5fiw8a3suw53iu/branch/master?svg=true)](https://ci.appveyor.com/project/somdoron/netmq-2bhss) [![codecov](https://codecov.io/gh/zeromq/netmq/branch/master/graph/badge.svg)](https://codecov.io/gh/zeromq/netmq) [![NetMQ NuGet version](https://img.shields.io/nuget/v/NetMQ.svg)](https://www.nuget.org/packages/NetMQ/) [![NetMQ NuGet prerelease version](https://img.shields.io/nuget/vpre/NetMQ.svg)](https://www.nuget.org/packages/NetMQ/)
3+
[![GitHub Actions CI](https://github.com/zeromq/netmq/actions/workflows/CI.yml/badge.svg)](https://github.com/zeromq/netmq/actions/workflows/CI.yml)
4+
[![NetMQ NuGet version](https://img.shields.io/nuget/v/NetMQ.svg)](https://www.nuget.org/packages/NetMQ/)
45

56
NetMQ is a 100% native C# port of the lightweight messaging library ZeroMQ.
67

docs/introduction.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ This is covered in much more detail in the [Message](message.md) documentation p
117117

118118
ZeroMQ (and therefore NetMQ) is all about patterns and building blocks. The <a href="http://zguide.zeromq.org/page:all" target="_blank">ZeroMQ guide</a> covers everything you need to know to help you with these patterns. You should make sure you read the following sections before you attempt to start work with NetMQ.
119119

120-
+ <a href="http://zguide.zeromq.org/page:all#Chapter-Sockets-and-Patterns" target="_blank">Chapter 2 - Sockets and Patterns</a>
121-
+ <a href="http://zguide.zeromq.org/page:all#Chapter-Advanced-Request-Reply-Patterns" target="_blank">Chapter 3 - Advanced Request-Reply Patterns</a>
122-
+ <a href="http://zguide.zeromq.org/page:all#Chapter-Reliable-Request-Reply-Patterns" target="_blank">Chapter 4 - Reliable Request-Reply Patterns</a>
123-
+ <a href="http://zguide.zeromq.org/page:all#Chapter-Advanced-Pub-Sub-Patterns" target="_blank">Chapter 5 - Advanced Pub-Sub Patterns</a>
120+
+ <a href="https://zguide.zeromq.org/docs/chapter2/" target="_blank">Chapter 2 - Sockets and Patterns</a>
121+
+ <a href="https://zguide.zeromq.org/docs/chapter3/" target="_blank">Chapter 3 - Advanced Request-Reply Patterns</a>
122+
+ <a href="https://zguide.zeromq.org/docs/chapter4/" target="_blank">Chapter 4 - Reliable Request-Reply Patterns</a>
123+
+ <a href="https://zguide.zeromq.org/docs/chapter5/" target="_blank">Chapter 5 - Advanced Pub-Sub Patterns</a>
124124

125125

126126
NetMQ also has some examples of a few of these patterns written using the NetMQ APIs. Should you find the pattern you are looking for in the <a href="http://zguide.zeromq.org/page:all" target="_blank">ZeroMQ guide</a> it should be fairly easy to translate that into NetMQ usage.
@@ -132,7 +132,7 @@ Here are some links to the patterns that are available within the NetMQ codebase
132132
+ <a href="https://github.com/NetMQ/Samples/blob/master/src/Pirate%20Pattern/Lazy%20Pirate" target="_blank">Lazy Pirate Pattern</a>
133133
+ <a href="https://github.com/NetMQ/Samples/blob/master/src/Pirate%20Pattern/Simple%20Pirate" target="_blank">Simple Pirate Pattern</a>
134134

135-
For other patterns, the <a href="http://zguide.zeromq.org/page:all" target="_blank">ZeroMQ guide</a>
135+
For other patterns, the <a href="https://zguide.zeromq.org/" target="_blank">ZeroMQ guide</a>
136136
will be your first port of call
137137

138138
ZeroMQ patterns are implemented by pairs of sockets of particular types. In other words, to understand ZeroMQ patterns you need to understand socket types and how they work together. Mostly, this just takes study; there is little that is obvious at this level.

docs/push-pull.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace Ventilator
3535
// Sends batch of tasks to workers via that socket
3636
Console.WriteLine("====== VENTILATOR ======");
3737
using (var sender = new PushSocket("@tcp://*:5557"))
38-
using (var sink = new PullSocket(">tcp://localhost:5558"))
38+
using (var sink = new PushSocket(">tcp://localhost:5558"))
3939
{
4040
Console.WriteLine("Press enter when worker are ready");
4141
Console.ReadLine();

docs/queue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Producers call `Enqueue(T)`.
88

99
This class can eliminate boilerplate code associated with marshalling operations onto a single thread.
1010

11-
```csharp
11+
``` csharp
1212
using (var queue = new NetMQQueue<ICommand>())
1313
using (var poller = new NetMQPoller { queue })
1414
{

0 commit comments

Comments
 (0)