|
@@ -57,13 +57,14 @@ namespace DotNetCore.CAP.Processor |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
_disposed = true; |
|
|
|
|
|
|
|
|
|
|
|
_logger.ServerShuttingDown(); |
|
|
|
|
|
_cts.Cancel(); |
|
|
|
|
|
try |
|
|
try |
|
|
{ |
|
|
{ |
|
|
_compositeTask.Wait((int) TimeSpan.FromSeconds(10).TotalMilliseconds); |
|
|
|
|
|
|
|
|
_disposed = true; |
|
|
|
|
|
|
|
|
|
|
|
_logger.ServerShuttingDown(); |
|
|
|
|
|
_cts.Cancel(); |
|
|
|
|
|
|
|
|
|
|
|
_compositeTask?.Wait((int)TimeSpan.FromSeconds(10).TotalMilliseconds); |
|
|
} |
|
|
} |
|
|
catch (AggregateException ex) |
|
|
catch (AggregateException ex) |
|
|
{ |
|
|
{ |
|
@@ -73,6 +74,10 @@ namespace DotNetCore.CAP.Processor |
|
|
_logger.ExpectedOperationCanceledException(innerEx); |
|
|
_logger.ExpectedOperationCanceledException(innerEx); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
catch (Exception ex) |
|
|
|
|
|
{ |
|
|
|
|
|
_logger.LogWarning(ex, "An exception was occured when disposing..."); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private IProcessor InfiniteRetry(IProcessor inner) |
|
|
private IProcessor InfiniteRetry(IProcessor inner) |
|
|