File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ public ConsumerDispatcher(ConnectionConfiguration configuration)
16
16
{
17
17
Preconditions . CheckNotNull ( configuration , "configuration" ) ;
18
18
19
-
20
19
var thread = new Thread ( _ =>
21
20
{
22
21
var blockingCollections = new [ ] { durableActions , transientActions } ;
@@ -28,7 +27,7 @@ public ConsumerDispatcher(ConnectionConfiguration configuration)
28
27
) ;
29
28
action ( ) ;
30
29
}
31
- catch ( OperationCanceledException )
30
+ catch ( OperationCanceledException ) when ( cancellation . IsCancellationRequested )
32
31
{
33
32
break ;
34
33
}
@@ -52,12 +51,7 @@ public ConsumerDispatcher(ConnectionConfiguration configuration)
52
51
thread . Start ( ) ;
53
52
}
54
53
55
- public void QueueAction ( Action action )
56
- {
57
- QueueAction ( action , false ) ;
58
- }
59
-
60
- public void QueueAction ( Action action , bool surviveDisconnect )
54
+ public void QueueAction ( Action action , bool surviveDisconnect = false )
61
55
{
62
56
Preconditions . CheckNotNull ( action , "action" ) ;
63
57
Original file line number Diff line number Diff line change @@ -4,8 +4,7 @@ namespace EasyNetQ.Consumer
4
4
{
5
5
public interface IConsumerDispatcher : IDisposable
6
6
{
7
- void QueueAction ( Action action ) ;
8
- void QueueAction ( Action action , bool surviveDisconnect ) ;
7
+ void QueueAction ( Action action , bool surviveDisconnect = false ) ;
9
8
void OnDisconnected ( ) ;
10
9
}
11
10
}
You can’t perform that action at this time.
0 commit comments