Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
CAP
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
CAP
Commits
b03b4853
Commit
b03b4853
authored
Nov 28, 2017
by
Savorboard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed 'dotnet.exe' process incomplete quit when shutdown application. ( #64 )
parent
0c73f8de
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
RabbitMQConsumerClient.cs
src/DotNetCore.CAP.RabbitMQ/RabbitMQConsumerClient.cs
+4
-1
No files found.
src/DotNetCore.CAP.RabbitMQ/RabbitMQConsumerClient.cs
View file @
b03b4853
...
@@ -14,6 +14,7 @@ namespace DotNetCore.CAP.RabbitMQ
...
@@ -14,6 +14,7 @@ namespace DotNetCore.CAP.RabbitMQ
private
readonly
string
_queueName
;
private
readonly
string
_queueName
;
private
readonly
RabbitMQOptions
_rabbitMQOptions
;
private
readonly
RabbitMQOptions
_rabbitMQOptions
;
private
IConnection
_connection
;
private
IModel
_channel
;
private
IModel
_channel
;
private
ulong
_deliveryTag
;
private
ulong
_deliveryTag
;
...
@@ -57,6 +58,7 @@ namespace DotNetCore.CAP.RabbitMQ
...
@@ -57,6 +58,7 @@ namespace DotNetCore.CAP.RabbitMQ
cancellationToken
.
ThrowIfCancellationRequested
();
cancellationToken
.
ThrowIfCancellationRequested
();
cancellationToken
.
WaitHandle
.
WaitOne
(
timeout
);
cancellationToken
.
WaitHandle
.
WaitOne
(
timeout
);
}
}
// ReSharper disable once FunctionNeverReturns
}
}
public
void
Commit
()
public
void
Commit
()
...
@@ -72,11 +74,12 @@ namespace DotNetCore.CAP.RabbitMQ
...
@@ -72,11 +74,12 @@ namespace DotNetCore.CAP.RabbitMQ
public
void
Dispose
()
public
void
Dispose
()
{
{
_channel
.
Dispose
();
_channel
.
Dispose
();
_connection
.
Dispose
();
}
}
private
void
InitClient
()
private
void
InitClient
()
{
{
var
_connection
=
_connectionChannelPool
.
GetConnection
();
_connection
=
_connectionChannelPool
.
GetConnection
();
_channel
=
_connection
.
CreateModel
();
_channel
=
_connection
.
CreateModel
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment