Skip to content

Commit e60d6bc

Browse files
committed
Update README.md
1 parent b705184 commit e60d6bc

File tree

2 files changed

+107
-37
lines changed

2 files changed

+107
-37
lines changed

dotnet/README.md

Lines changed: 74 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,34 +28,95 @@ of the tutorial directory.
2828

2929
#### [Tutorial one: "Hello World!"](https://www.rabbitmq.com/tutorials/tutorial-one-dotnet.html)
3030

31-
dotnet run --project Receive/Receive.csproj
32-
dotnet run --project Send/Send.csproj
31+
```bash
32+
# terminal tab 1
33+
dotnet run --project Receive/Receive.csproj
34+
35+
# terminal tab 2
36+
dotnet run --project Send/Send.csproj
37+
```
3338

3439
#### [Tutorial two: Work Queues](https://www.rabbitmq.com/tutorials/tutorial-two-dotnet.html)
3540

36-
dotnet run --project Worker/Worker.csproj
37-
dotnet run --project NewTask/NewTask.csproj
41+
```bash
42+
# terminal tab 1
43+
dotnet run --project Worker/Worker.csproj
44+
45+
# terminal tab 2
46+
dotnet run --project Worker/Worker.csproj
47+
48+
# terminal tab 3
49+
dotnet run --project NewTask/NewTask.csproj "First Message"
50+
dotnet run --project NewTask/NewTask.csproj "Second Message"
51+
dotnet run --project NewTask/NewTask.csproj "Third Message"
52+
dotnet run --project NewTask/NewTask.csproj "Fourth Message"
53+
dotnet run --project NewTask/NewTask.csproj "Fifth Message"
54+
```
3855

3956
#### [Tutorial three: Publish/Subscribe](https://www.rabbitmq.com/tutorials/tutorial-three-dotnet.html)
4057

41-
dotnet run --project ReceiveLogs/ReceiveLogs.csproj
42-
dotnet run --project EmitLog/EmitLog.csproj
58+
```bash
59+
# terminal tab 1
60+
dotnet run --project ReceiveLogs/ReceiveLogs.csproj
61+
62+
# terminal tab 2
63+
dotnet run --project ReceiveLogs/ReceiveLogs.csproj
64+
65+
# terminal tab 3
66+
dotnet run --project EmitLog/EmitLog.csproj
67+
```
4368

4469
#### [Tutorial four: Routing](https://www.rabbitmq.com/tutorials/tutorial-four-dotnet.html)
4570

46-
dotnet run --project ReceiveLogsDirect/ReceiveLogsDirect.csproj info
47-
dotnet run --project EmitLogDirect/EmitLogDirect.csproj
71+
```bash
72+
# terminal tab 1
73+
dotnet run --project ReceiveLogsDirect/ReceiveLogsDirect.csproj warning error
74+
75+
# terminal tab 2
76+
dotnet run --project ReceiveLogsDirect/ReceiveLogsDirect.csproj info warning error
77+
78+
# terminal tab 3
79+
dotnet run --project EmitLogDirect/EmitLogDirect.csproj info "Run. Run. Or it will explode."
80+
dotnet run --project EmitLogDirect/EmitLogDirect.csproj warning "Run. Run. Or it will explode."
81+
dotnet run --project EmitLogDirect/EmitLogDirect.csproj error "Run. Run. Or it will explode."
82+
```
4883

4984
#### [Tutorial five: Topics](https://www.rabbitmq.com/tutorials/tutorial-five-dotnet.html)
5085

51-
dotnet run --project ReceiveLogsTopic/ReceiveLogsTopic.csproj anonymous.info
52-
dotnet run --project EmitLogTopic/EmitLogTopic.csproj
86+
```bash
87+
# terminal tab 1
88+
# To receive all the logs:
89+
dotnet run --project ReceiveLogsTopic/ReceiveLogsTopic.csproj "#"
90+
91+
# To receive all logs from the facility "kern":
92+
dotnet run --project ReceiveLogsTopic/ReceiveLogsTopic.csproj "kern.*"
93+
94+
# Or if you want to hear only about "critical" logs:
95+
dotnet run --project ReceiveLogsTopic/ReceiveLogsTopic.csproj "*.critical"
96+
97+
# You can create multiple bindings:
98+
dotnet run --project ReceiveLogsTopic/ReceiveLogsTopic.csproj "kern.*" "*.critical"
99+
100+
# terminal tab 2
101+
# And to emit a log with a routing key "kern.critical" type:
102+
dotnet run --project EmitLogTopic/EmitLogTopic.csproj kern.critical "A critical kernel error"
103+
```
53104

54105
#### [Tutorial six: RPC](https://www.rabbitmq.com/tutorials/tutorial-six-dotnet.html)
55106

56-
dotnet run --project RPCServer/RPCServer.csproj
57-
dotnet run --project RPCClient/RPCClient.csproj
107+
```bash
108+
# terminal tab 1
109+
# Our RPC service is now ready. We can start the server:
110+
dotnet run --project RPCServer/RPCServer.csproj
111+
112+
# terminal tab 2
113+
# To request a fibonacci number run the client:
114+
dotnet run --project RPCClient/RPCClient.csproj
115+
```
58116

59117
#### [Tutorial seven: Publisher Confirms](https://www.rabbitmq.com/tutorials/tutorial-seven-dotnet.html)
60118

61-
dotnet run --project PublisherConfirms/PublisherConfirms.csproj
119+
```bash
120+
# terminal tab 1
121+
dotnet run --project PublisherConfirms/PublisherConfirms.csproj
122+
```

java-gradle/README.md

Lines changed: 33 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ To successfully use the examples you will need a RabbitMQ node running locally.
1616
- Run pull-source-files.bat to replace symbolic link to the actual source file.
1717

1818
```shell
19-
.\pull-source-files.bat
19+
./pull-source-files.bat
2020
```
2121

2222
## Code
@@ -25,82 +25,91 @@ To successfully use the examples you will need a RabbitMQ node running locally.
2525

2626
```shell
2727
# terminal tab 1
28-
gradle -Pmain=Recv run
28+
./gradlew -Pmain=Recv run
2929

3030
# terminal tab 2
31-
gradle -Pmain=Send run
31+
./gradlew -Pmain=Send run
3232
```
3333

3434
#### [Tutorial two: Work Queues](https://www.rabbitmq.com/tutorials/tutorial-two-java.html):
3535

3636
```shell
3737
# terminal tab 1
38-
gradle -Pmain=Worker run
39-
gradle -Pmain=Worker run
38+
./gradlew -Pmain=Worker run
39+
./gradlew -Pmain=Worker run
4040

4141
# terminal tab 2
42-
gradle -Pmain=NewTask run --args "First Message"
43-
gradle -Pmain=NewTask run --args "Second Message"
44-
gradle -Pmain=NewTask run --args "Third Message"
45-
gradle -Pmain=NewTask run --args "Fourth Message"
46-
gradle -Pmain=NewTask run --args "Fifth Message"
42+
./gradlew -Pmain=NewTask run --args "First Message"
43+
./gradlew -Pmain=NewTask run --args "Second Message"
44+
./gradlew -Pmain=NewTask run --args "Third Message"
45+
./gradlew -Pmain=NewTask run --args "Fourth Message"
46+
./gradlew -Pmain=NewTask run --args "Fifth Message"
4747
```
4848

4949
#### [Tutorial three: Publish/Subscribe](https://www.rabbitmq.com/tutorials/tutorial-three-java.html)
5050

5151
```shell
5252
# terminal tab 1
53-
gradle -Pmain=ReceiveLogs run
53+
./gradlew -Pmain=ReceiveLogs run
5454

5555
# terminal tab 2
56-
gradle -Pmain=EmitLog run
56+
./gradlew -Pmain=ReceiveLogs run
57+
58+
# terminal tab 3
59+
./gradlew -Pmain=EmitLog run
5760
```
5861

5962
#### [Tutorial four: Routing](https://www.rabbitmq.com/tutorials/tutorial-four-java.html)
6063

6164
```shell
6265
# terminal tab 1
63-
gradle -Pmain=ReceiveLogsDirect run --args "warning error"
66+
./gradlew -Pmain=ReceiveLogsDirect run --args "warning error"
6467

6568
# terminal tab 2
66-
gradle -Pmain=ReceiveLogsDirect run --args "info warning error"
69+
./gradlew -Pmain=ReceiveLogsDirect run --args "info warning error"
6770

6871
# terminal tab 3
69-
gradle -Pmain=EmitLogDirect run --args "error Run. Run. Or it will explode"
72+
./gradlew -Pmain=EmitLogDirect run --args 'info "Run. Run. Or it will explode"'
73+
./gradlew -Pmain=EmitLogDirect run --args 'warning "Run. Run. Or it will explode"'
74+
./gradlew -Pmain=EmitLogDirect run --args 'error "Run. Run. Or it will explode"'
7075
```
7176

7277
#### [Tutorial five: Topics](https://www.rabbitmq.com/tutorials/tutorial-five-java.html)
7378

7479
```shell
80+
# terminal tab 1
7581
# To receive all the logs:
76-
gradle -Pmain=ReceiveLogsTopic run --args "#"
82+
./gradlew -Pmain=ReceiveLogsTopic run --args "#"
7783

7884
# To receive all logs from the facility "kern":
79-
gradle -Pmain=ReceiveLogsTopic run --args "kern.*"
85+
./gradlew -Pmain=ReceiveLogsTopic run --args "kern.*"
8086

8187
# Or if you want to hear only about "critical" logs:
82-
gradle -Pmain=ReceiveLogsTopic run --args "*.critical"
88+
./gradlew -Pmain=ReceiveLogsTopic run --args "*.critical"
8389

8490
# You can create multiple bindings:
85-
gradle -Pmain=ReceiveLogsTopic run --args "kern.* *.critical"
91+
./gradlew -Pmain=ReceiveLogsTopic run --args "kern.* *.critical"
8692

93+
# terminal tab 2
8794
# And to emit a log with a routing key "kern.critical" type:
88-
gradle -Pmain=EmitLogTopic run --args "kern.critical A critical kernel error"
95+
./gradlew -Pmain=EmitLogTopic run --args "kern.critical A critical kernel error"
8996
```
9097

9198
#### [Tutorial six: RPC](https://www.rabbitmq.com/tutorials/tutorial-six-java.html)
9299

93100
```shell
101+
# terminal tab 1
94102
# Our RPC service is now ready. We can start the server:
95-
gradle -Pmain=RPCServer run
103+
./gradlew -Pmain=RPCServer run
96104

105+
# terminal tab 2
97106
# To request a fibonacci number run the client:
98-
gradle -Pmain=RPCClient run
107+
./gradlew -Pmain=RPCClient run
99108
```
100109

101110
#### [Tutorial seven: Publisher Confirms](https://www.rabbitmq.com/tutorials/tutorial-seven-java.html)
102111

103112
```shell
104-
#
105-
gradle -Pmain=PublisherConfirms run
113+
# terminal tab 1
114+
./gradlew -Pmain=PublisherConfirms run
106115
```

0 commit comments

Comments
 (0)