From 3719dc00fa9b1dcd48581b3ece18c650de0590d6 Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Thu, 17 May 2018 09:48:07 -0700 Subject: [PATCH] Enable analyzers (#2300) --- build/dependencies.props | 1 + src/Directory.Build.props | 29 ++++++++++--------- .../HubConnectionHandler.cs | 5 +++- 3 files changed, 20 insertions(+), 15 deletions(-) diff --git a/build/dependencies.props b/build/dependencies.props index b642d2eb4f..3457a21092 100644 --- a/build/dependencies.props +++ b/build/dependencies.props @@ -5,6 +5,7 @@ 0.10.13 3.1.0 + 2.2.0-preview1-34228 2.2.0-preview1-17051 1.7.3.4 2.2.0-preview1-34228 diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 54ffcd996f..2c27a063b1 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -1,14 +1,15 @@ - - - - - $(NoWarn);CS1591 - true - aspnetcore;signalr - false - - - - - - + + + + + $(NoWarn);CS1591 + true + aspnetcore;signalr + false + + + + + + + diff --git a/src/Microsoft.AspNetCore.SignalR.Core/HubConnectionHandler.cs b/src/Microsoft.AspNetCore.SignalR.Core/HubConnectionHandler.cs index f159484887..ae4b3d8960 100644 --- a/src/Microsoft.AspNetCore.SignalR.Core/HubConnectionHandler.cs +++ b/src/Microsoft.AspNetCore.SignalR.Core/HubConnectionHandler.cs @@ -46,7 +46,10 @@ namespace Microsoft.AspNetCore.SignalR IOptions> hubOptions, ILoggerFactory loggerFactory, IUserIdProvider userIdProvider, - HubDispatcher dispatcher) +#pragma warning disable PUB0001 // Pubternal type in public API + HubDispatcher dispatcher +#pragma warning restore PUB0001 + ) { _protocolResolver = protocolResolver; _lifetimeManager = lifetimeManager;