Added RabbitMq IsConnected
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
kunkliricsi 2021-01-17 17:13:26 +01:00
parent 7c67fa7de0
commit 79dcb4d75a

View File

@ -19,7 +19,7 @@ namespace Birdmap.BLL.Services.CommunationServices.RabbitMq
private readonly IConnectionFactory _factory; private readonly IConnectionFactory _factory;
private readonly RabbitMqClientOptions _options; private readonly RabbitMqClientOptions _options;
public override bool IsConnected => throw new NotImplementedException(); public override bool IsConnected => _connection.IsOpen;
public RabbitMqClientService(RabbitMqClientOptions options, ILogger<RabbitMqClientService> logger, IInputService inputService, IHubContext<DevicesHub, IDevicesHubClient> hubContext) public RabbitMqClientService(RabbitMqClientOptions options, ILogger<RabbitMqClientService> logger, IInputService inputService, IHubContext<DevicesHub, IDevicesHubClient> hubContext)
: base(logger, inputService, hubContext) : base(logger, inputService, hubContext)