Commit 273fe35
committed
Refactor RabbitMQ consumer logic for clarity and QoS
Refactored `HandleBasicDeliverAsync` in `RabbitMqBasicConsumer` to simplify `safeBody` handling and eliminate redundant variable usage. Updated to pass `body` directly to `BasicDeliverEventArgs` and `TransportMessage`.
Enhanced `Listening` method in `RabbitMqConsumerClient` to use `BasicQosOptions` from `_rabbitMqOptions` for more flexible QoS settings. Defaulted `prefetchCount` to `_groupConcurrent` or 1 for better configurability.1 parent 5e4d37c commit 273fe35
File tree
2 files changed
+9
-8
lines changed- src/DotNetCore.CAP.RabbitMQ
2 files changed
+9
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | 48 | | |
51 | 49 | | |
52 | 50 | | |
53 | 51 | | |
| 52 | + | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
0 commit comments