From 7c67fa7de09179910630fea0b6830501bd052af7 Mon Sep 17 00:00:00 2001 From: kunkliricsi Date: Sun, 17 Jan 2021 16:54:39 +0100 Subject: [PATCH 1/2] Array empty --- Birdmap.API/Startup.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Birdmap.API/Startup.cs b/Birdmap.API/Startup.cs index 8a789c0..2726d6d 100644 --- a/Birdmap.API/Startup.cs +++ b/Birdmap.API/Startup.cs @@ -12,6 +12,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.IdentityModel.Tokens; using NSwag.Generation.Processors.Security; +using System; using System.Text; namespace Birdmap.API @@ -71,7 +72,7 @@ namespace Birdmap.API { opt.Title = "Birdmap"; opt.OperationProcessors.Add(new OperationSecurityScopeProcessor("Jwt Token")); - opt.AddSecurity("Jwt Token", new string[] { }, + opt.AddSecurity("Jwt Token", Array.Empty(), new NSwag.OpenApiSecurityScheme { Type = NSwag.OpenApiSecuritySchemeType.ApiKey, From 79dcb4d75a39dbaf3f91bdfd1dc32743cb329356 Mon Sep 17 00:00:00 2001 From: kunkliricsi Date: Sun, 17 Jan 2021 17:13:26 +0100 Subject: [PATCH 2/2] Added RabbitMq IsConnected --- .../CommunationServices/RabbitMq/RabbitMqClientService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Birdmap.BLL/Services/CommunationServices/RabbitMq/RabbitMqClientService.cs b/Birdmap.BLL/Services/CommunationServices/RabbitMq/RabbitMqClientService.cs index b20818e..5941cc5 100644 --- a/Birdmap.BLL/Services/CommunationServices/RabbitMq/RabbitMqClientService.cs +++ b/Birdmap.BLL/Services/CommunationServices/RabbitMq/RabbitMqClientService.cs @@ -19,7 +19,7 @@ namespace Birdmap.BLL.Services.CommunationServices.RabbitMq private readonly IConnectionFactory _factory; private readonly RabbitMqClientOptions _options; - public override bool IsConnected => throw new NotImplementedException(); + public override bool IsConnected => _connection.IsOpen; public RabbitMqClientService(RabbitMqClientOptions options, ILogger logger, IInputService inputService, IHubContext hubContext) : base(logger, inputService, hubContext)