Skip to content
This repository was archived by the owner on Apr 29, 2022. It is now read-only.

Commit 46d87a3

Browse files
author
Anton Vorontsov
committed
Added delayed message model image.
1 parent a74e348 commit 46d87a3

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

RabbitMQ.Client.Core.DependencyInjection.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ ProjectSection(SolutionItems) = preProject
3333
docs\message-consumption.md = docs\message-consumption.md
3434
EndProjectSection
3535
EndProject
36+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "images", "images", "{93D59B0E-856C-4260-B50E-57FE5C0F5073}"
37+
ProjectSection(SolutionItems) = preProject
38+
docs\images\delayed-message-model.png = docs\images\delayed-message-model.png
39+
EndProjectSection
40+
EndProject
3641
Global
3742
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3843
Debug|Any CPU = Debug|Any CPU
@@ -64,6 +69,7 @@ Global
6469
{10C10C9D-F2ED-43C8-B235-780DD75EF8E6} = {04EFD8F7-5120-4072-9728-64203F6F4873}
6570
{6E75E157-373A-4056-898B-3713CDD5C06C} = {04EFD8F7-5120-4072-9728-64203F6F4873}
6671
{1F81E848-7781-448F-BBBB-6A1E509B76CC} = {04EFD8F7-5120-4072-9728-64203F6F4873}
72+
{93D59B0E-856C-4260-B50E-57FE5C0F5073} = {BC4CDBDE-4AEE-44B3-B00B-380EB1AC5E62}
6773
EndGlobalSection
6874
GlobalSection(ExtensibilityGlobals) = postSolution
6975
SolutionGuid = {0EBBD182-65B2-47F9-ABBE-64B5B8C9652F}
24.1 KB
Loading

docs/message-production.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ queueService.Send(bytes, properties, exchangeName: "exchange.name", routingKey:
106106
await queueService.SendAsync(bytes, properties, exchangeName: "exchange.name", routingKey: "routing.key", secondsDelay: 10);
107107
```
108108

109-
### Delayed message mechanism
109+
### Mechanism of sending delayed messages
110+
111+
![Model of sending delayed messages](./images/delayed-message-model.png)
110112

111113
For the exchange configuration see the [Previous page](exchange-configuration.md) <br>
112114
For message consumption features see the [Next page](message-consumption.md)

readme.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This section contains only example of basic usage of the library. You can find t
1313

1414
To produce messages in the RabbitMQ queue you have to go through the routine of configuring RabbitMQ connection and exchanges. In your `Startup` file you can do it simply calling couple methods in a fluent-Api way.
1515

16-
```csharp
16+
```c#
1717
public static IConfiguration Configuration { get; set; }
1818

1919
public void ConfigureServices(IServiceCollection services)
@@ -31,7 +31,7 @@ Example of `appsettings.json` is two sections below. You can also configure ever
3131

3232
Now you can inject an instance implementing `IQueueService` inside anything you want.
3333

34-
```csharp
34+
```c#
3535
[Route("api/[controller]")]
3636
public class HomeController : Controller
3737
{
@@ -45,7 +45,7 @@ public class HomeController : Controller
4545

4646
Now you can send messages using `Send` or `SendAsync` methods.
4747

48-
```csharp
48+
```c#
4949
var messageObject = new
5050
{
5151
Id = 1,
@@ -60,7 +60,7 @@ _queueService.Send(
6060

6161
You can also send delayed messages.
6262

63-
```csharp
63+
```c#
6464
_queueService.Send(
6565
@object: messageObject,
6666
exchangeName: "exchange.name",
@@ -74,7 +74,7 @@ _queueService.Send(
7474

7575
After making message production possible let's make the consumption possible too! Imagine that a consumer will be a simple console application.
7676

77-
```csharp
77+
```c#
7878
class Program
7979
{
8080
const string ExchangeName = "exchange.name";
@@ -114,7 +114,7 @@ The very last step is to start "listening" (consuming) by simply calling `StartC
114114

115115
Message handler example.
116116

117-
```csharp
117+
```c#
118118
public class CustomMessageHandler : IMessageHandler
119119
{
120120
readonly ILogger<CustomMessageHandler> _logger;

0 commit comments

Comments
 (0)