Complete xEventService ...
This commit is contained in:
@@ -143,7 +143,7 @@ namespace xEventService.Providers
|
||||
{
|
||||
//
|
||||
// Ensure Connection is Alive ...
|
||||
EnsureChannelAsync();
|
||||
EnsureChannel();
|
||||
|
||||
//
|
||||
// Serialize Message ...
|
||||
@@ -181,8 +181,10 @@ namespace xEventService.Providers
|
||||
//
|
||||
result = true;
|
||||
}
|
||||
catch
|
||||
catch (Exception ex)
|
||||
{
|
||||
//
|
||||
logger.LogError($"RabbitMQ Produce Error: {ex.Message} ...");
|
||||
result = false;
|
||||
}
|
||||
|
||||
@@ -268,7 +270,7 @@ namespace xEventService.Providers
|
||||
/// <summary>
|
||||
/// Ensure Channel is Open and Exchange/Queue Declared ...
|
||||
/// </summary>
|
||||
private void EnsureChannelAsync()
|
||||
private void EnsureChannel()
|
||||
{
|
||||
//
|
||||
if (IsConnected())
|
||||
|
||||
Reference in New Issue
Block a user