From a77abb909976e0713c8799ffcebff3439201d17b Mon Sep 17 00:00:00 2001 From: "Liangying.Wei" Date: Mon, 2 Nov 2020 11:48:56 +0800 Subject: [PATCH 01/18] Update version to 1.6.1 for dev (#1077) * Update version to 1.5.3 for dev * Update version.props --- version.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.props b/version.props index 72bf02e3f..40b18aaa8 100644 --- a/version.props +++ b/version.props @@ -1,6 +1,6 @@ - 1.6.0 + 1.6.1 preview1 $(VersionPrefix) $(VersionPrefix)-$(VersionSuffix)-final From 1e362c25348d2c980ebdbd84acb40877a2d36f4f Mon Sep 17 00:00:00 2001 From: JialinXin Date: Mon, 2 Nov 2020 14:44:27 +0800 Subject: [PATCH 02/18] Add doc about EndpointMetrics and dynamic scale. (#1093) * add doc about EndpointMetrics and dynamic scale. * update related version. * resolve comments. --- docs/sharding.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/docs/sharding.md b/docs/sharding.md index be4ec07f0..d6cda8f9a 100644 --- a/docs/sharding.md +++ b/docs/sharding.md @@ -11,6 +11,7 @@ In latest SDK, we add support for configuring multiple SignalR service instances * [How to add multiple endpoints from code](#aspnet-code) * [How to customize endpoint router](#aspnet-customize-router) * [Configuration in cross-geo scenarios](#cross-geo) +* [Dynamic Scale ServiceEndpoints](#dynamic-scale) * [Failover](#failover) ## For ASP.NET Core @@ -112,6 +113,19 @@ private class CustomRouter : EndpointRouterDecorator } ``` +From version 1.6.0, we're exposing metrics synced from service side to help with customized routing for balancing and load use. So you can select the endpoints with minimal clients in below sample. + +```cs +private class CustomRouter : EndpointRouterDecorator +{ + public override ServiceEndpoint GetNegotiateEndpoint(HttpContext context, IEnumerable endpoints) + { + return endpoints.OrderBy(x => x.EndpointMetrics.ClientConnectionCount).FirstOrDefault(x => x.Online) // Get the available endpoint with minimal clients load + ?? base.GetNegotiateEndpoint(context, endpoints); // Or fallback to the default behavior to randomly select one from primary endpoints, or fallback to secondary when no primary ones are online + } +} +``` + And don't forget to register the router to DI container using: ```cs @@ -202,6 +216,20 @@ private class CustomRouter : EndpointRouterDecorator } } ``` + +Another example about you can select the endpoints with minimal clients, supported from version 1.6.0. + +```cs +private class CustomRouter : EndpointRouterDecorator +{ + public override ServiceEndpoint GetNegotiateEndpoint(HttpContext context, IEnumerable endpoints) + { + return endpoints.OrderBy(x => x.EndpointMetrics.ClientConnectionCount).FirstOrDefault(x => x.Online) // Get the available endpoint with minimal clients load + ?? base.GetNegotiateEndpoint(context, endpoints); // Or fallback to the default behavior to randomly select one from primary endpoints, or fallback to secondary when no primary ones are online + } +} +``` + And don't forget to register the router to DI container using: ```cs @@ -235,6 +263,18 @@ In cross-geo scenario, when a client `/negotiate` with the app server hosted in ![Normal Negotiate](./images/normal_negotiate.png) +## Dynamic Scale ServiceEndpoints + + +From version 1.5.0, we're enabling dynamic scale ServiceEndpoints for ASP.NET Core version first. So you don't have to restart app server when you need to add/remove a ServiceEndpoint. As ASP.NET Core is supporting default configuration like `appsettings.json` with `reloadOnChange: true`, you don't need to change a code and it's supported by nature. And if you'd like to add some customized configuration and work with hot-reload, please refer to [this](https://docs.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-3.1). + +> Note +> +> Considering the time of connection set-up between server/service and client/service may be a few difference, to ensure no message loss during the scale process, we have a staging period waiting for server connection be ready before open the new ServiceEndpoint to clients. Usually it takes seconds to complete and you'll be able to see log like `Succeed in adding endpoint: '{endpoint}'` which indicates the process completes. But for some unexpected reasons like cross-region network issue or configuration inconsistent on different app servers, the staging period will not be able to finish correctly. Since limited things can be done during the dynamic scale process, we choose to promote the scale as it is. It's suggested to restart App Server when you find the scaling process not working correctly. +> +> The default timeout period for the scale is 5 minutes, and it can be customized by setting the value in [`ServiceOptions.ServiceScaleTimeout`](https://github.com/Azure/azure-signalr/blob/dev/docs/use-signalr-service.md#servicescaletimeout). If you have a lot of app servers, it's suggested to extend the value a little more. + + ## Failover From a602e5cbfefd3d72fe09bf21900c8084a8de824e Mon Sep 17 00:00:00 2001 From: yzt Date: Mon, 9 Nov 2020 14:51:57 +0800 Subject: [PATCH 03/18] Set up options and track changes in management SDK. (#1081) * Enable service builder to build dynamically configurable service manager * Implement options changes tracking chain with self-creating IChangeToken : ServiceOptions => ServiceManagerContext => ServiceManagerOptions * dispose serviceProvider from serviceManager; --- build/dependencies.props | 1 + .../Constants.cs | 3 +- .../Configuration/CascadeOptionsSetup.cs | 49 ++++++ .../ServiceManagerContext.cs | 13 +- .../ServiceManagerContextSetup.cs | 26 +++ .../ServiceManagerOptions.cs | 0 .../ServiceManagerOptionsSetup.cs | 35 ++++ .../Configuration/ServiceOptionsSetup.cs | 23 +++ .../DependencyInjectionExtensions.cs | 59 +++++++ .../IServiceManager.cs | 2 +- .../Microsoft.Azure.SignalR.Management.csproj | 3 +- .../ServiceManager.cs | 12 +- .../ServiceManagerBuilder.cs | 39 +++-- .../DependencyInjectionExtensionFacts.cs | 155 ++++++++++++++++++ .../ServiceManagerFacts.cs | 23 +-- .../ReloadableMemoryProvider.cs | 16 ++ .../ReloadableMemorySource.cs | 16 ++ 17 files changed, 435 insertions(+), 40 deletions(-) create mode 100644 src/Microsoft.Azure.SignalR.Management/Configuration/CascadeOptionsSetup.cs rename src/Microsoft.Azure.SignalR.Management/{ => Configuration}/ServiceManagerContext.cs (53%) create mode 100644 src/Microsoft.Azure.SignalR.Management/Configuration/ServiceManagerContextSetup.cs rename src/Microsoft.Azure.SignalR.Management/{ => Configuration}/ServiceManagerOptions.cs (100%) create mode 100644 src/Microsoft.Azure.SignalR.Management/Configuration/ServiceManagerOptionsSetup.cs create mode 100644 src/Microsoft.Azure.SignalR.Management/Configuration/ServiceOptionsSetup.cs create mode 100644 src/Microsoft.Azure.SignalR.Management/DependencyInjectionExtensions.cs create mode 100644 test/Microsoft.Azure.SignalR.Management.Tests/DependencyInjectionExtensionFacts.cs create mode 100644 test/Microsoft.Azure.SignalR.Tests.Common/ReloadableMemoryProvider.cs create mode 100644 test/Microsoft.Azure.SignalR.Tests.Common/ReloadableMemorySource.cs diff --git a/build/dependencies.props b/build/dependencies.props index 4a2a53d68..29bd69045 100644 --- a/build/dependencies.props +++ b/build/dependencies.props @@ -46,6 +46,7 @@ 2.2.0 2.2.0 1.0.11 + 2.1.0 0.3.0 diff --git a/src/Microsoft.Azure.SignalR.Common/Constants.cs b/src/Microsoft.Azure.SignalR.Common/Constants.cs index 546f2bb0a..3f35dd72c 100644 --- a/src/Microsoft.Azure.SignalR.Common/Constants.cs +++ b/src/Microsoft.Azure.SignalR.Common/Constants.cs @@ -9,6 +9,7 @@ internal static class Constants { public static class Keys { + public const string AzureSignalRSectionKey = "Azure:SignalR"; public const string ServerStickyModeDefaultKey = "Azure:SignalR:ServerStickyMode"; public const string ConnectionStringDefaultKey = "Azure:SignalR:ConnectionString"; public const string ApplicationNameDefaultKey = "Azure:SignalR:ApplicationName"; @@ -85,4 +86,4 @@ public static class Protocol public const string BlazorPack = "blazorpack"; } } -} +} \ No newline at end of file diff --git a/src/Microsoft.Azure.SignalR.Management/Configuration/CascadeOptionsSetup.cs b/src/Microsoft.Azure.SignalR.Management/Configuration/CascadeOptionsSetup.cs new file mode 100644 index 000000000..3abf919f0 --- /dev/null +++ b/src/Microsoft.Azure.SignalR.Management/Configuration/CascadeOptionsSetup.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; +using System.Threading; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.Options; +using Microsoft.Extensions.Primitives; + +namespace Microsoft.Azure.SignalR.Management.Configuration +{ + /// + /// Sets up TargetOptions from SourceOptions and tracks changes . + /// + internal abstract class CascadeOptionsSetup : IConfigureOptions, IOptionsChangeTokenSource, IDisposable + where SourceOptions : class + where TargetOptions : class + { + private readonly IDisposable _registration; + private readonly IOptionsMonitor _sourceMonitor; + private ConfigurationReloadToken _changeToken; + + public CascadeOptionsSetup(IOptionsMonitor sourceMonitor) + { + _registration = sourceMonitor.OnChange(RaiseChange); + _changeToken = new ConfigurationReloadToken(); + _sourceMonitor = sourceMonitor; + } + + public string Name => Options.DefaultName; + + public void Configure(TargetOptions target) => Convert(target, _sourceMonitor.CurrentValue); + + protected abstract void Convert(TargetOptions target, SourceOptions source); + + public IChangeToken GetChangeToken() => _changeToken; + + private void RaiseChange(SourceOptions sourceOptions) + { + var previousToken = Interlocked.Exchange(ref _changeToken, new ConfigurationReloadToken()); + previousToken.OnReload(); + } + + public void Dispose() + { + _registration.Dispose(); + } + } +} \ No newline at end of file diff --git a/src/Microsoft.Azure.SignalR.Management/ServiceManagerContext.cs b/src/Microsoft.Azure.SignalR.Management/Configuration/ServiceManagerContext.cs similarity index 53% rename from src/Microsoft.Azure.SignalR.Management/ServiceManagerContext.cs rename to src/Microsoft.Azure.SignalR.Management/Configuration/ServiceManagerContext.cs index c6557a28b..c2f65b102 100644 --- a/src/Microsoft.Azure.SignalR.Management/ServiceManagerContext.cs +++ b/src/Microsoft.Azure.SignalR.Management/Configuration/ServiceManagerContext.cs @@ -19,15 +19,6 @@ internal class ServiceManagerContext public ServiceTransportType ServiceTransportType { get; set; } = ServiceTransportType.Transient; - public void SetValueFromOptions(ServiceManagerOptions options) - { - ServiceEndpoints = options.ServiceEndpoints ?? (options.ServiceEndpoint != null - ? (new ServiceEndpoint[] { options.ServiceEndpoint }) - : (new ServiceEndpoint[] { new ServiceEndpoint(options.ConnectionString) })); - ApplicationName = options.ApplicationName; - ConnectionCount = options.ConnectionCount; - Proxy = options.Proxy; - ServiceTransportType = options.ServiceTransportType; - } + public bool DisposeServiceProvider { get; set; } = false; } -} +} \ No newline at end of file diff --git a/src/Microsoft.Azure.SignalR.Management/Configuration/ServiceManagerContextSetup.cs b/src/Microsoft.Azure.SignalR.Management/Configuration/ServiceManagerContextSetup.cs new file mode 100644 index 000000000..f1c6e7524 --- /dev/null +++ b/src/Microsoft.Azure.SignalR.Management/Configuration/ServiceManagerContextSetup.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using Microsoft.Azure.SignalR.Management.Configuration; +using Microsoft.Extensions.Options; + +namespace Microsoft.Azure.SignalR.Management +{ + internal class ServiceManagerContextSetup : CascadeOptionsSetup + { + public ServiceManagerContextSetup(IOptionsMonitor sourceMonitor) : base(sourceMonitor) + { + } + + protected override void Convert(ServiceManagerContext target, ServiceManagerOptions source) + { + target.ServiceEndpoints = source.ServiceEndpoints ?? (source.ServiceEndpoint != null + ? (new ServiceEndpoint[] { source.ServiceEndpoint }) + : (new ServiceEndpoint[] { new ServiceEndpoint(source.ConnectionString) })); + target.ApplicationName = source.ApplicationName; + target.ConnectionCount = source.ConnectionCount; + target.Proxy = source.Proxy; + target.ServiceTransportType = source.ServiceTransportType; + } + } +} \ No newline at end of file diff --git a/src/Microsoft.Azure.SignalR.Management/ServiceManagerOptions.cs b/src/Microsoft.Azure.SignalR.Management/Configuration/ServiceManagerOptions.cs similarity index 100% rename from src/Microsoft.Azure.SignalR.Management/ServiceManagerOptions.cs rename to src/Microsoft.Azure.SignalR.Management/Configuration/ServiceManagerOptions.cs diff --git a/src/Microsoft.Azure.SignalR.Management/Configuration/ServiceManagerOptionsSetup.cs b/src/Microsoft.Azure.SignalR.Management/Configuration/ServiceManagerOptionsSetup.cs new file mode 100644 index 000000000..6a26d3511 --- /dev/null +++ b/src/Microsoft.Azure.SignalR.Management/Configuration/ServiceManagerOptionsSetup.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.FileProviders; +using Microsoft.Extensions.Options; +using Microsoft.Extensions.Primitives; + +namespace Microsoft.Azure.SignalR.Management.Configuration +{ + internal class ServiceManagerOptionsSetup : IConfigureOptions, IOptionsChangeTokenSource + { + private readonly IConfiguration _configuration; + + public ServiceManagerOptionsSetup(IConfiguration configuration = null) + { + _configuration = configuration; + } + + public string Name => Options.DefaultName; + + public void Configure(ServiceManagerOptions options) + { + if (_configuration != null) + { + _configuration.GetSection(Constants.Keys.AzureSignalRSectionKey).Bind(options); + } + } + + public IChangeToken GetChangeToken() + { + return _configuration?.GetReloadToken() ?? NullChangeToken.Singleton; + } + } +} \ No newline at end of file diff --git a/src/Microsoft.Azure.SignalR.Management/Configuration/ServiceOptionsSetup.cs b/src/Microsoft.Azure.SignalR.Management/Configuration/ServiceOptionsSetup.cs new file mode 100644 index 000000000..9a1c17c77 --- /dev/null +++ b/src/Microsoft.Azure.SignalR.Management/Configuration/ServiceOptionsSetup.cs @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using Microsoft.Azure.SignalR.Management.Configuration; +using Microsoft.Extensions.Options; + +namespace Microsoft.Azure.SignalR.Management +{ + internal class ServiceOptionsSetup : CascadeOptionsSetup + { + public ServiceOptionsSetup(IOptionsMonitor sourceMonitor) : base(sourceMonitor) + { + } + + protected override void Convert(ServiceOptions target, ServiceManagerContext source) + { + target.ApplicationName = source.ApplicationName; + target.Endpoints = source.ServiceEndpoints; + target.Proxy = source.Proxy; + target.ConnectionCount = source.ConnectionCount; + } + } +} \ No newline at end of file diff --git a/src/Microsoft.Azure.SignalR.Management/DependencyInjectionExtensions.cs b/src/Microsoft.Azure.SignalR.Management/DependencyInjectionExtensions.cs new file mode 100644 index 000000000..3587ff241 --- /dev/null +++ b/src/Microsoft.Azure.SignalR.Management/DependencyInjectionExtensions.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. +using System; +using System.ComponentModel; +using System.Reflection; +using Microsoft.Azure.SignalR.Management.Configuration; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Options; + +namespace Microsoft.Azure.SignalR.Management +{ + internal static class DependencyInjectionExtensions //TODO: not ready for public use + { + /// + /// Adds the essential SignalR Service Manager services to the specified services collection and configures with configuration instance registered in service collection. + /// + public static IServiceCollection AddSignalRServiceManager(this IServiceCollection services) + { + services.AddSingleton() + .AddSingleton>(sp => sp.GetService()) + .AddSingleton>(sp => sp.GetService()); + services.PostConfigure(o => o.ValidateOptions()); + services.AddSingleton() + .AddSingleton>(sp => sp.GetService()) + .AddSingleton>(sp => sp.GetService()); + services.AddSingleton() + .AddSingleton>(sp => sp.GetService()) + .AddSingleton>(sp => sp.GetService()); + return services.TrySetProductInfo(); + } + + /// + /// Adds the essential SignalR Service Manager services to the specified services collection and registers an action used to configure + /// + public static IServiceCollection AddSignalRServiceManager(this IServiceCollection services, Action configure) + { + services.Configure(configure); + return services.AddSignalRServiceManager(); + } + + /// + /// Adds product info to + /// + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static IServiceCollection WithAssembly(this IServiceCollection services, Assembly assembly) + { + var productInfo = ProductInfo.GetProductInfo(assembly); + return services.Configure(o => o.ProductInfo = productInfo); + } + + private static IServiceCollection TrySetProductInfo(this IServiceCollection services) + { + var assembly = Assembly.GetExecutingAssembly(); + var productInfo = ProductInfo.GetProductInfo(assembly); + return services.Configure(o => o.ProductInfo = o.ProductInfo ?? productInfo); + } + } +} \ No newline at end of file diff --git a/src/Microsoft.Azure.SignalR.Management/IServiceManager.cs b/src/Microsoft.Azure.SignalR.Management/IServiceManager.cs index 403b57775..fb0902a5f 100644 --- a/src/Microsoft.Azure.SignalR.Management/IServiceManager.cs +++ b/src/Microsoft.Azure.SignalR.Management/IServiceManager.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.SignalR.Management /// /// A manager abstraction for managing Azure SignalR Service. /// - public interface IServiceManager + public interface IServiceManager : IDisposable { /// /// Creates an instance of asynchronously. diff --git a/src/Microsoft.Azure.SignalR.Management/Microsoft.Azure.SignalR.Management.csproj b/src/Microsoft.Azure.SignalR.Management/Microsoft.Azure.SignalR.Management.csproj index 46d75f1ec..ef3591a1f 100644 --- a/src/Microsoft.Azure.SignalR.Management/Microsoft.Azure.SignalR.Management.csproj +++ b/src/Microsoft.Azure.SignalR.Management/Microsoft.Azure.SignalR.Management.csproj @@ -32,7 +32,8 @@ - + + diff --git a/src/Microsoft.Azure.SignalR.Management/ServiceManager.cs b/src/Microsoft.Azure.SignalR.Management/ServiceManager.cs index 972035c1d..a9792f358 100644 --- a/src/Microsoft.Azure.SignalR.Management/ServiceManager.cs +++ b/src/Microsoft.Azure.SignalR.Management/ServiceManager.cs @@ -28,8 +28,9 @@ internal class ServiceManager : IServiceManager private readonly string _productInfo; private readonly ServiceManagerContext _context; private readonly RestClientFactory _restClientFactory; + private readonly IServiceProvider _serviceProvider; - internal ServiceManager(ServiceManagerContext context, RestClientFactory restClientFactory) + internal ServiceManager(ServiceManagerContext context, RestClientFactory restClientFactory, IServiceProvider serviceProvider) { _endpoint = context.ServiceEndpoints.Single();//temp solution @@ -46,6 +47,7 @@ internal ServiceManager(ServiceManagerContext context, RestClientFactory restCli _productInfo = context.ProductInfo; _context = context; _restClientFactory = restClientFactory; + _serviceProvider = serviceProvider; } public async Task CreateHubContextAsync(string hubName, ILoggerFactory loggerFactory = null, CancellationToken cancellationToken = default) @@ -141,6 +143,14 @@ public async Task CreateHubContextAsync(string hubName, ILog } } + public void Dispose() + { + if (_context.DisposeServiceProvider) + { + (_serviceProvider as IDisposable).Dispose(); + } + } + public string GenerateClientAccessToken(string hubName, string userId = null, IList claims = null, TimeSpan? lifeTime = null) { var claimsWithUserId = new List(); diff --git a/src/Microsoft.Azure.SignalR.Management/ServiceManagerBuilder.cs b/src/Microsoft.Azure.SignalR.Management/ServiceManagerBuilder.cs index 9074d8bfe..14cbd4167 100644 --- a/src/Microsoft.Azure.SignalR.Management/ServiceManagerBuilder.cs +++ b/src/Microsoft.Azure.SignalR.Management/ServiceManagerBuilder.cs @@ -4,6 +4,9 @@ using System; using System.ComponentModel; using System.Reflection; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Options; namespace Microsoft.Azure.SignalR.Management { @@ -12,24 +15,35 @@ namespace Microsoft.Azure.SignalR.Management /// public class ServiceManagerBuilder : IServiceManagerBuilder { - private readonly ServiceManagerOptions _options = new ServiceManagerOptions(); - private Assembly _assembly; + private readonly IServiceCollection _services = new ServiceCollection(); /// - /// Configures the instances. + /// Registers an action used to configure . /// /// A callback to configure the . /// The same instance of the for chaining. public ServiceManagerBuilder WithOptions(Action configure) { - configure?.Invoke(_options); + _services.Configure(configure); + return this; + } + + /// + /// Registers a configuration instance to configure + /// + /// The configuration instance. + /// The same instance of the for chaining. + internal ServiceManagerBuilder WithConfiguration(IConfiguration config) + { + _services.AddSingleton(config); return this; } [EditorBrowsable(EditorBrowsableState.Never)] public ServiceManagerBuilder WithCallingAssembly() { - _assembly = Assembly.GetCallingAssembly(); + var assembly = Assembly.GetCallingAssembly(); + _services.WithAssembly(assembly); return this; } @@ -39,16 +53,13 @@ public ServiceManagerBuilder WithCallingAssembly() /// The instance of the . public IServiceManager Build() { - _options.ValidateOptions(); - - var productInfo = ProductInfo.GetProductInfo(_assembly); - var context = new ServiceManagerContext() - { - ProductInfo = productInfo - }; - context.SetValueFromOptions(_options); + _services.AddSignalRServiceManager(); + _services.Configure(c => c.DisposeServiceProvider = true); + var serviceProvider = _services.BuildServiceProvider(); + var context = serviceProvider.GetRequiredService>().Value; + var productInfo = context.ProductInfo; var restClientBuilder = new RestClientFactory(productInfo); - return new ServiceManager(context, restClientBuilder); + return new ServiceManager(context, restClientBuilder, serviceProvider); } } } \ No newline at end of file diff --git a/test/Microsoft.Azure.SignalR.Management.Tests/DependencyInjectionExtensionFacts.cs b/test/Microsoft.Azure.SignalR.Management.Tests/DependencyInjectionExtensionFacts.cs new file mode 100644 index 000000000..5e662083f --- /dev/null +++ b/test/Microsoft.Azure.SignalR.Management.Tests/DependencyInjectionExtensionFacts.cs @@ -0,0 +1,155 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; +using System.IO; +using System.Linq; +using System.Reflection; +using System.Threading.Tasks; +using Microsoft.Azure.SignalR.Tests.Common; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Options; +using Newtonsoft.Json; +using Xunit; +using Xunit.Abstractions; + +namespace Microsoft.Azure.SignalR.Management.Tests +{ + public class DependencyInjectionExtensionFacts + { + private const string Url = "https://abc"; + private const string AccessKey = "nOu3jXsHnsO5urMumc87M9skQbUWuQ+PE5IvSUEic8w="; + private static readonly string TestConnectionString = $"Endpoint={Url};AccessKey={AccessKey};Version=1.0;"; + + private readonly ITestOutputHelper _outputHelper; + + public DependencyInjectionExtensionFacts(ITestOutputHelper outputHelper) + { + _outputHelper = outputHelper; + } + + [Fact] + public async Task FileConfigHotReloadTest() + { + // to avoid possible file name conflict with another FileConfigHotReloadTest + string configPath = nameof(DependencyInjectionExtensionFacts); + var originUrl = "http://originUrl"; + var newUrl = "http://newUrl"; + var configObj = new + { + Azure = new + { + SignalR = new ServiceManagerOptions + { + ConnectionString = $"Endpoint={originUrl};AccessKey={AccessKey};Version=1.0;" + } + } + }; + File.WriteAllText(configPath, JsonConvert.SerializeObject(configObj)); + ServiceCollection services = new ServiceCollection(); + services.AddSignalRServiceManager(); + services.AddSingleton(new ConfigurationBuilder().AddJsonFile(configPath, false, true).Build()); + using var provider = services.BuildServiceProvider(); + var optionsMonitor = provider.GetRequiredService>(); + Assert.Equal(originUrl, optionsMonitor.CurrentValue.Endpoints.Single().Endpoint); + + //update json config file + configObj.Azure.SignalR.ConnectionString = $"Endpoint={newUrl};AccessKey={AccessKey};Version=1.0;"; + File.WriteAllText(configPath, JsonConvert.SerializeObject(configObj)); + + await Task.Delay(5000); + Assert.Equal(newUrl, optionsMonitor.CurrentValue.Endpoints.Single().Endpoint); + } + + [Fact] + public void MemoryConfigHotReloadTest() + { + var originUrl = "http://originUrl"; + var newUrl = "http://newUrl"; + var configProvider = new ReloadableMemoryProvider(); + configProvider.Set("Azure:SignalR:ConnectionString", $"Endpoint={originUrl};AccessKey={AccessKey};Version=1.0;"); + var services = new ServiceCollection() + .AddSignalRServiceManager() + .AddSingleton(new ConfigurationBuilder().Add(new ReloadableMemorySource(configProvider)).Build()); + using var provider = services.BuildServiceProvider(); + var optionsMonitor = provider.GetRequiredService>(); + Assert.Equal(originUrl, optionsMonitor.CurrentValue.Endpoints.Single().Endpoint); + + //update + configProvider.Set("Azure:SignalR:ConnectionString", $"Endpoint={newUrl};AccessKey={AccessKey};Version=1.0;"); + Assert.Equal(newUrl, optionsMonitor.CurrentValue.Endpoints.Single().Endpoint); + } + + [Fact] + public void ProductInfoDefaultValueNotNullFact() + { + ServiceCollection services = new ServiceCollection(); + services.AddSignalRServiceManager(o => + { + o.ConnectionString = TestConnectionString; + o.ServiceTransportType = ServiceTransportType.Persistent; + }); + using var serviceProvider = services.BuildServiceProvider(); + var productInfo = serviceProvider.GetRequiredService>().Value.ProductInfo; + Assert.Matches("^Microsoft.Azure.SignalR.Management/", productInfo); + } + + [Fact] + public void ProductInfoFromCallingAssemblyFact() + { + ServiceCollection services = new ServiceCollection(); + services.AddSignalRServiceManager(o => + { + o.ConnectionString = TestConnectionString; + o.ServiceTransportType = ServiceTransportType.Persistent; + }); + services.WithAssembly(Assembly.GetExecutingAssembly()); + using var serviceProvider = services.BuildServiceProvider(); + var productInfo = serviceProvider.GetRequiredService>().Value.ProductInfo; + Assert.Matches("^Microsoft.Azure.SignalR.Management.Tests/", productInfo); + } + + [Fact] + public void ConfigureByDelegateFact() + { + ServiceCollection services = new ServiceCollection(); + services.AddSignalRServiceManager(o => + { + o.ConnectionString = TestConnectionString; + o.ServiceTransportType = ServiceTransportType.Persistent; + }); + using var serviceProvider = services.BuildServiceProvider(); + var optionsMonitor = serviceProvider.GetRequiredService>(); + Assert.Equal(Url, optionsMonitor.CurrentValue.ServiceEndpoints.Single().Endpoint); + Assert.Equal(ServiceTransportType.Persistent, optionsMonitor.CurrentValue.ServiceTransportType); + } + + [Fact] + public void ConfigureByFileAndDelegateFact() + { + var originUrl = "http://originUrl"; + var newUrl = "http://newUrl"; + var appName = "AppName"; + var newAppName = "NewAppName"; + var configProvider = new ReloadableMemoryProvider(); + configProvider.Set("Azure:SignalR:ConnectionString", $"Endpoint={originUrl};AccessKey={AccessKey};Version=1.0;"); + ServiceCollection services = new ServiceCollection(); + services.AddSignalRServiceManager(o => + { + o.ApplicationName = appName; + }) + .AddSingleton(new ConfigurationBuilder().Add(new ReloadableMemorySource(configProvider)).Build()); + using var serviceProvider = services.BuildServiceProvider(); + var contextMonitor = serviceProvider.GetRequiredService>(); + Assert.Equal(appName, contextMonitor.CurrentValue.ApplicationName); + + configProvider.Set("Azure:SignalR:ConnectionString", $"Endpoint={newUrl};AccessKey={AccessKey};Version=1.0;"); + Assert.Equal(appName, contextMonitor.CurrentValue.ApplicationName); // configuration via delegate is conserved after reload config. + Assert.Equal(newUrl, contextMonitor.CurrentValue.ServiceEndpoints.Single().Endpoint); + + configProvider.Set("Azure:SignalR:ApplicationName", newAppName); + Assert.Equal(newAppName, contextMonitor.CurrentValue.ApplicationName); + } + } +} \ No newline at end of file diff --git a/test/Microsoft.Azure.SignalR.Management.Tests/ServiceManagerFacts.cs b/test/Microsoft.Azure.SignalR.Management.Tests/ServiceManagerFacts.cs index 2861ddaf2..c70d55286 100644 --- a/test/Microsoft.Azure.SignalR.Management.Tests/ServiceManagerFacts.cs +++ b/test/Microsoft.Azure.SignalR.Management.Tests/ServiceManagerFacts.cs @@ -12,6 +12,7 @@ using Microsoft.Azure.SignalR.Tests.Common; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; +using Moq; using Xunit; namespace Microsoft.Azure.SignalR.Management.Tests @@ -47,6 +48,8 @@ from claims in _claimLists from appName in _appNames select new object[] { userId, claims, appName }; + private static readonly IServiceProvider MockServiceProvider = Mock.Of(); + [Theory] [MemberData(nameof(TestGenerateAccessTokenData))] internal void GenerateClientAccessTokenTest(string userId, Claim[] claims, string appName) @@ -56,7 +59,7 @@ internal void GenerateClientAccessTokenTest(string userId, Claim[] claims, strin ApplicationName = appName, ServiceEndpoints = new ServiceEndpoint[] { new ServiceEndpoint(_testConnectionString) } }; - var manager = new ServiceManager(context, new RestClientFactory(UserAgent)); + var manager = new ServiceManager(context, new RestClientFactory(UserAgent), MockServiceProvider); var tokenString = manager.GenerateClientAccessToken(HubName, userId, claims, _tokenLifeTime); var token = JwtTokenHelper.JwtHandler.ReadJwtToken(tokenString); @@ -74,7 +77,7 @@ internal void GenerateClientEndpointTest(string appName, string expectedClientEn ApplicationName = appName, ServiceEndpoints = new ServiceEndpoint[] { new ServiceEndpoint(_testConnectionString) } }; - var manager = new ServiceManager(context, new RestClientFactory(UserAgent)); + var manager = new ServiceManager(context, new RestClientFactory(UserAgent), MockServiceProvider); var clientEndpoint = manager.GetClientEndpoint(HubName); Assert.Equal(expectedClientEndpoint, clientEndpoint); @@ -83,14 +86,12 @@ internal void GenerateClientEndpointTest(string appName, string expectedClientEn [Fact] internal void GenerateClientEndpointTestWithClientEndpoint() { - var options = new ServiceManagerOptions + var context = new ServiceManagerContext { - ConnectionString = $"Endpoint=http://localhost;AccessKey=ABC;Version=1.0;ClientEndpoint=https://remote" + ServiceEndpoints = new ServiceEndpoint[] { new ServiceEndpoint($"Endpoint=http://localhost;AccessKey=ABC;Version=1.0;ClientEndpoint=https://remote") } }; - var context = new ServiceManagerContext(); - context.SetValueFromOptions(options); - var manager = new ServiceManager(context, new RestClientFactory(UserAgent)); + var manager = new ServiceManager(context, new RestClientFactory(UserAgent), MockServiceProvider); var clientEndpoint = manager.GetClientEndpoint(HubName); Assert.Equal("https://remote/client/?hub=signalrbench", clientEndpoint); @@ -107,7 +108,7 @@ internal async Task CreateServiceHubContextTest(ServiceTransportType serviceTran ConnectionCount = connectionCount, ServiceEndpoints = new ServiceEndpoint[] { new ServiceEndpoint(_testConnectionString) } }; - var serviceManager = new ServiceManager(context, new RestClientFactory(UserAgent)); + var serviceManager = new ServiceManager(context, new RestClientFactory(UserAgent), MockServiceProvider); using (var loggerFactory = useLoggerFacory ? (ILoggerFactory)new LoggerFactory() : NullLoggerFactory.Instance) { @@ -123,7 +124,7 @@ internal async Task IsServiceHealthy_ReturnTrue_Test() ServiceEndpoints = new ServiceEndpoint[] { new ServiceEndpoint(_testConnectionString) } }; var factory = new TestRestClientFactory(UserAgent, HttpStatusCode.OK); - var serviceManager = new ServiceManager(context, factory); + var serviceManager = new ServiceManager(context, factory, null); var actual = await serviceManager.IsServiceHealthy(default); Assert.True(actual); @@ -140,7 +141,7 @@ internal async Task IsServiceHealthy_ReturnFalse_Test(HttpStatusCode statusCode) ServiceEndpoints = new ServiceEndpoint[] { new ServiceEndpoint(_testConnectionString) } }; var factory = new TestRestClientFactory(UserAgent, statusCode); - var serviceManager = new ServiceManager(context, factory); + var serviceManager = new ServiceManager(context, factory, null); var actual = await serviceManager.IsServiceHealthy(default); Assert.False(actual); @@ -158,7 +159,7 @@ internal async Task IsServiceHealthy_Throw_Test(HttpStatusCode statusCode, Type ServiceEndpoints = new ServiceEndpoint[] { new ServiceEndpoint(_testConnectionString) } }; var factory = new TestRestClientFactory(UserAgent, statusCode); - var serviceManager = new ServiceManager(context, factory); + var serviceManager = new ServiceManager(context, factory, MockServiceProvider); var exception = await Assert.ThrowsAnyAsync(() => serviceManager.IsServiceHealthy(default)); Assert.IsType(expectedException, exception); diff --git a/test/Microsoft.Azure.SignalR.Tests.Common/ReloadableMemoryProvider.cs b/test/Microsoft.Azure.SignalR.Tests.Common/ReloadableMemoryProvider.cs new file mode 100644 index 000000000..2eae20410 --- /dev/null +++ b/test/Microsoft.Azure.SignalR.Tests.Common/ReloadableMemoryProvider.cs @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using Microsoft.Extensions.Configuration; + +namespace Microsoft.Azure.SignalR.Tests.Common +{ + public class ReloadableMemoryProvider : ConfigurationProvider + { + public override void Set(string key, string value) + { + base.Set(key, value); + OnReload(); + } + } +} \ No newline at end of file diff --git a/test/Microsoft.Azure.SignalR.Tests.Common/ReloadableMemorySource.cs b/test/Microsoft.Azure.SignalR.Tests.Common/ReloadableMemorySource.cs new file mode 100644 index 000000000..ba68d90dd --- /dev/null +++ b/test/Microsoft.Azure.SignalR.Tests.Common/ReloadableMemorySource.cs @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using Microsoft.Extensions.Configuration; + +namespace Microsoft.Azure.SignalR.Tests.Common +{ + public class ReloadableMemorySource : IConfigurationSource + { + private readonly ReloadableMemoryProvider _provider; + + public ReloadableMemorySource(ReloadableMemoryProvider provider) => _provider = provider; + + public IConfigurationProvider Build(IConfigurationBuilder builder) => _provider; + } +} \ No newline at end of file From cede5af8877740f90b10562cfc36da656eec1dd9 Mon Sep 17 00:00:00 2001 From: "Liangying.Wei" Date: Fri, 13 Nov 2020 14:23:27 +0800 Subject: [PATCH 04/18] Fix clientEndpoint issue for server connection (#1106) --- .../EndpointProvider/DefaultServiceEndpointGenerator.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Microsoft.Azure.SignalR/EndpointProvider/DefaultServiceEndpointGenerator.cs b/src/Microsoft.Azure.SignalR/EndpointProvider/DefaultServiceEndpointGenerator.cs index 9d3f327ea..76ae42bd1 100644 --- a/src/Microsoft.Azure.SignalR/EndpointProvider/DefaultServiceEndpointGenerator.cs +++ b/src/Microsoft.Azure.SignalR/EndpointProvider/DefaultServiceEndpointGenerator.cs @@ -47,23 +47,22 @@ public string GetClientEndpoint(string hubName, string applicationName, string o queryBuilder.Append("&").Append(queryString); } - return $"{InternalGetEndpoint(ClientPath, hubName, applicationName)}{queryBuilder}"; + return $"{InternalGetEndpoint(ClientPath, hubName, applicationName, ClientEndpoint ?? Endpoint)}{queryBuilder}"; } public string GetServerAudience(string hubName, string applicationName) => InternalGetAudience(ServerPath, hubName, applicationName); public string GetServerEndpoint(string hubName, string applicationName) => - InternalGetEndpoint(ServerPath, hubName, applicationName); + InternalGetEndpoint(ServerPath, hubName, applicationName, Endpoint); private string GetPrefixedHubName(string applicationName, string hubName) { return string.IsNullOrEmpty(applicationName) ? hubName.ToLower() : $"{applicationName.ToLower()}_{hubName.ToLower()}"; } - private string InternalGetEndpoint(string path, string hubName, string applicationName) + private string InternalGetEndpoint(string path, string hubName, string applicationName, string target) { - var target = ClientEndpoint ?? Endpoint; return Port.HasValue ? $"{target}:{Port}/{path}/?hub={GetPrefixedHubName(applicationName, hubName)}" : $"{target}/{path}/?hub={GetPrefixedHubName(applicationName, hubName)}"; From 34e435b8ed3e4b73adf82339068967ff02e7d8d7 Mon Sep 17 00:00:00 2001 From: "Liangying.Wei" Date: Fri, 13 Nov 2020 15:03:16 +0800 Subject: [PATCH 05/18] Fix client endpoint for negotiate (#1107) * Fix client endpoint for negotiate * Add more test --- .../Endpoints/ServiceEndpoint.cs | 1 + .../RunAzureSignalRTests.cs | 33 +++++++++++++++++++ .../NegotiateHandlerFacts.cs | 4 +-- 3 files changed, 36 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.Azure.SignalR.Common/Endpoints/ServiceEndpoint.cs b/src/Microsoft.Azure.SignalR.Common/Endpoints/ServiceEndpoint.cs index 3290eb5a8..0d78f7672 100644 --- a/src/Microsoft.Azure.SignalR.Common/Endpoints/ServiceEndpoint.cs +++ b/src/Microsoft.Azure.SignalR.Common/Endpoints/ServiceEndpoint.cs @@ -94,6 +94,7 @@ public ServiceEndpoint(ServiceEndpoint endpoint) Version = endpoint.Version; AccessKey = endpoint.AccessKey; Port = endpoint.Port; + ClientEndpoint = endpoint.ClientEndpoint; } } diff --git a/test/Microsoft.Azure.SignalR.AspNet.Tests/RunAzureSignalRTests.cs b/test/Microsoft.Azure.SignalR.AspNet.Tests/RunAzureSignalRTests.cs index 06a74ed6c..16b149789 100644 --- a/test/Microsoft.Azure.SignalR.AspNet.Tests/RunAzureSignalRTests.cs +++ b/test/Microsoft.Azure.SignalR.AspNet.Tests/RunAzureSignalRTests.cs @@ -36,6 +36,7 @@ public class RunAzureSignalRTests : VerifiableLoggedTest private const string ServiceUrl = "http://localhost:8086"; private const string ConnectionString = "Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;"; + private const string ConnectionStringWithRedirect = "Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;ClientEndpoint=http://redirect"; private const string ConnectionString2 = "Endpoint=http://localhost2;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;"; private const string ConnectionString3 = "Endpoint=http://localhost3;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;"; private const string ConnectionString4 = "Endpoint=http://localhost4;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;"; @@ -534,6 +535,38 @@ public async Task TestNegotiateRedirectUrl(string path, string query, string id, } } + [Theory] + [InlineData("/user/path/negotiate", "", "", "")] + [InlineData("/user/path/negotiate", "?clientProtocol=1.89", "a", "")] + [InlineData("/user/path/negotiate", "?clientProtocol=1.0", "a", "")] + [InlineData("/user/path/negotiate", "?clientProtocol=2.1", "a", "?asrs_request_id=a&asrs.op=%2Fuser%2Fpath")] + [InlineData("/negotiate", "?%3DKey=%3Fa%3Dc&clientProtocol=2.1", "?a=c", "?%3DKey=%3Fa%3Dc&asrs_request_id=%3Fa%3Dc")] + [InlineData("/user/negotiate", "?clientProtocol=2.2&customKey=customeValue", "&", "?customKey=customeValue&asrs_request_id=%26&asrs.op=%2Fuser")] + public async Task TestNegotiateRedirectUrlWithClientEndpoint(string path, string query, string id, string expectedQuery) + { + using (StartVerifiableLog(out var loggerFactory, LogLevel.Warning)) + { + var requestIdProvider = new TestRequestIdProvider(id); + // Prepare the configuration + var hubConfig = Utility.GetTestHubConfig(loggerFactory); + hubConfig.Resolver.Register(typeof(IConnectionRequestIdProvider), () => requestIdProvider); + using (WebApp.Start(ServiceUrl, app => app.RunAzureSignalR(AppName, ConnectionStringWithRedirect, hubConfig))) + { + var client = new HttpClient { BaseAddress = new Uri(ServiceUrl) }; + var response = await client.GetAsync(path + query); + + Assert.Equal(HttpStatusCode.OK, response.StatusCode); + var message = await response.Content.ReadAsStringAsync(); + var responseObject = JsonConvert.DeserializeObject(message); + Assert.Equal("2.0", responseObject.ProtocolVersion); + + var uri = new Uri(responseObject.RedirectUrl); + // The default router fallbacks to the secondary + Assert.Equal("http://redirect/aspnetclient" + expectedQuery, uri.AbsoluteUri); + } + } + } + [Fact] public void TestRunAzureSignalRWithOptions() { diff --git a/test/Microsoft.Azure.SignalR.Tests/NegotiateHandlerFacts.cs b/test/Microsoft.Azure.SignalR.Tests/NegotiateHandlerFacts.cs index 703257a9e..4615cebf0 100644 --- a/test/Microsoft.Azure.SignalR.Tests/NegotiateHandlerFacts.cs +++ b/test/Microsoft.Azure.SignalR.Tests/NegotiateHandlerFacts.cs @@ -31,7 +31,7 @@ public class NegotiateHandlerFacts private const string CustomClaimType = "custom.claim"; private const string CustomUserId = "customUserId"; private const string DefaultUserId = "nameId"; - private const string DefaultConnectionString = "Endpoint=https://localhost;AccessKey=nOu3jXsHnsO5urMumc87M9skQbUWuQ+PE5IvSUEic8w=;"; + private const string DefaultConnectionString = "Endpoint=https://localhost;AccessKey=nOu3jXsHnsO5urMumc87M9skQbUWuQ+PE5IvSUEic8w=;ClientEndpoint=http://redirect"; private const string ConnectionString2 = "Endpoint=http://localhost2;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;"; private const string ConnectionString3 = "Endpoint=http://localhost3;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;"; private const string ConnectionString4 = "Endpoint=http://localhost4;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;"; @@ -73,7 +73,7 @@ public async Task GenerateNegotiateResponseWithUserId(Type type, string expected var negotiateResponse = await handler.Process(httpContext, "hub"); Assert.NotNull(negotiateResponse); - Assert.NotNull(negotiateResponse.Url); + Assert.StartsWith("http://redirect/client/?hub=hub", negotiateResponse.Url); Assert.NotNull(negotiateResponse.AccessToken); Assert.Null(negotiateResponse.ConnectionId); Assert.Empty(negotiateResponse.AvailableTransports); From 4dbc6d19a71562d81f4d7e6ff9acd8ff56af3f9d Mon Sep 17 00:00:00 2001 From: Wanpeng Li Date: Fri, 13 Nov 2020 16:41:17 +0800 Subject: [PATCH 06/18] update doc for message log (#1047) * update configure step for message log * resolve comments * fix spell via "spell right" ext * update * update * update * update * update --- docs/diagnostic-logs.md | 298 ++++++++++++++---- .../azure-signalr-diagnostic-settings.png | Bin 0 -> 97072 bytes docs/images/diagnostic-logs/message-path.png | Bin 0 -> 15957 bytes 3 files changed, 234 insertions(+), 64 deletions(-) create mode 100644 docs/images/diagnostic-logs/azure-signalr-diagnostic-settings.png create mode 100644 docs/images/diagnostic-logs/message-path.png diff --git a/docs/diagnostic-logs.md b/docs/diagnostic-logs.md index 748ee352e..74634d6f5 100644 --- a/docs/diagnostic-logs.md +++ b/docs/diagnostic-logs.md @@ -4,17 +4,24 @@ - [Prerequisites](#prerequisites) - [Set up diagnostic logs for an Azure SignalR Service](#set-up-diagnostic-logs-for-an-azure-signalr-service) - [Enable diagnostic logs](#enable-diagnostic-logs) - - [Diagnostic logs categories](#diagnostic-logs-categories) - [Diagnostic logs types](#diagnostic-logs-types) + - [Connectivity Logs](#connectivity-logs) + - [Messaging Logs](#messaging-logs) - [Diagnostic logs collecting behaviors](#diagnostic-logs-collecting-behaviors) + - [Collect all](#collect-all) + - [Configuration guide](#configuration-guide) + - [Collect partially](#collect-partially) + - [Diagnostic client](#diagnostic-client) + - [Configuration guide](#configuration-guide-1) - [Archive to a storage account](#archive-to-a-storage-account) - [Archive logs schema for Log Analytics](#archive-logs-schema-for-log-analytics) - [Troubleshooting with diagnostic logs](#troubleshooting-with-diagnostic-logs) - - [Unexpected connection number changes](#unexpected-connection-number-changes) - - [Unexpected connection dropping](#unexpected-connection-dropping) - - [Unexpected connection growing](#unexpected-connection-growing) - - [Authorization failure](#authorization-failure) - - [Throttling](#throttling) + - [Connection related issues](#connection-related-issues) + - [Unexpected connection number changes](#unexpected-connection-number-changes) + - [Authorization failure](#authorization-failure) + - [Throttling](#throttling) + - [Message related issues](#message-related-issues) + - [Message loss](#message-loss) - [Get help](#get-help) ## Prerequisites @@ -25,7 +32,7 @@ To enable diagnostic logs, you'll need somewhere to store your log data. This tu ## Set up diagnostic logs for an Azure SignalR Service -You can view diagnostic logs for Azure SignalR Service. These logs provide richer view of connectivity to your Azure SignalR Service instance. The diagnostic logs provide detailed information of every connection. For example, basic information (user ID, connection ID and transport type, etc.) and event information (connect, disconnect and abort event, etc.) of the connection. Diagnostic logs can be used for issue identification, connection tracking and analysis. +You can view diagnostic logs for Azure SignalR Service. These logs provide richer view of connectivity and messaging information to your Azure SignalR Service instance. The diagnostic logs provide detailed information for SignalR hub connections and SignalR hub messages received and sent via SignalR service. For example, basic information (user ID, connection ID and transport type, etc.) and event information (connect, disconnect and abort event, etc.) of the connection, tracing ID and type of the message. Diagnostic logs can be used for issue identification, connection tracking, message tracing and analysis. ### Enable diagnostic logs @@ -35,38 +42,113 @@ Diagnostic logs are disabled by default. To enable diagnostic logs, follow these ![Pane navigation to diagnostic settings](./images/diagnostic-logs/diagnostic-settings-menu-item.png) -1. Then click **Add diagnostic setting**. +1. Then you will get a full view of the diagnostic settings. - ![Add diagnostic logs](./images/diagnostic-logs/add-diagnostic-setting.png) + ![Diagnostic settings' full view](./images/diagnostic-logs/azure-signalr-diagnostic-settings.png) -1. Set the archive target that you want. Currently, we support **Archive to a storage account** and **Send to Log Analytics**. +1. Configure the log source settings. + 1. In **Log Source Settings** section, a table shows collecting behaviors for each log type. + 1. Check the specific log type you want to collect for all connections. Otherwise the the log will be collected only for [diagnostic clients](#diagnostic-client). +1. Configure the log destination settings. + 1. In **Log Destination Settings** section, a table of diagnostic settings display the existing diagnostic settings. You can click the link in the table to get access to the log destination to view the collected diagnostic logs. + 1. In this section, click the button **Configure Log Destination Settings** to add, update, or delete diagnostic settings. + 1. Click **Add diagnostic setting** to add a new diagnostic setting, or click **Edit** to modify an existing diagnostic setting. + 1. Set the archive target that you want. Currently, SignalR service supports **Archive to a storage account** and **Send to Log Analytics**. + 1. Select the logs you want to archive. Only `AllLogs` is available for diagnostic log. It only controls whether you want to archive the logs. To configure which log types needs to be generated in SignalR service, configure in **Log Source Settings** section. + ![Diagnostics settings pane](./images/diagnostic-logs/diagnostics-settings-pane.png) + 1. Save the new diagnostics setting. The new setting takes effect in about 10 minutes. After that, logs will be sent to configured archival target. For more information about configuring log destination settings, see the [overview of Azure diagnostic logs](https://docs.microsoft.com/azure/azure-monitor/platform/platform-logs-overview). -1. Select the logs you want to archive. +### Diagnostic logs types - ![Diagnostics settings pane](./images/diagnostic-logs/diagnostics-settings-pane.png) +Azure SignalR supports 2 types of logs: connectivity log and messaging log. +#### Connectivity Logs -1. Save the new diagnostics settings. +Connectivity logs provide detailed information for SignalR hub connections. For example, basic information (user ID, connection ID and transport type, etc.) and event information (connect, disconnect and abort event, etc.). Therefore, connectivity log is helpful to troubleshoot connection related issues. For typical connection related troubleshooting guide, see [connection related issue](#connection-related-issues). -New settings take effect in about 10 minutes. After that, logs appear in the configured archival target, in the **Diagnostics logs** pane. +#### Messaging Logs -For more information about configuring diagnostics, see the [overview of Azure diagnostic logs](../azure-monitor/platform/resource-logs-overview.md). +Messaging logs provide tracing information for the SignalR hub messages received and sent via SignalR service. For example, tracing ID and message type of the message. The tracing ID and message type is also logged in app server. Typically the message is recorded when it arrives at or leaves from service or server. Therefore messaging logs are helpful for troubleshooting message related issues. For typical message related troubleshooting guide, see [message related issues](#message-related-issues) -### Diagnostic logs categories +> This type of logs is generated for every message, if the messages are sent frequently, messaging logs might impact the performance of SignalR service. However, you can choose different collecting behaviors to minimize the performance impact. See [diagnostic logs collecting behaviors](#Diagnostic-logs-collecting-behaviors) below. -Azure SignalR Service captures diagnostic logs in one category: +### Diagnostic logs collecting behaviors -* **All Logs**: Track connections that connect to Azure SignalR Service. The logs Provide infomation about the connect/disconnect, authentication and throttling. For more information, see the next section. +There are two typical scenarios on using diagnostic logs, especially for messaging logs. -### Diagnostic logs types -[TODO] +Someone may care about the quality of each message. For example, they are sensitive on whether the message get sent/received successfully, or they want to record every message that is delivered via SignalR service. -### Diagnostic logs collecting behaviors -[TODO] +In the mean time, others may care about the performance. They are sensitive on the latency of the message, and sometimes they need to track the message in a few connections instead of all the connections for some reason. + +Therefore, SignalR service provides two kinds of collecting behaviors +* **collect all**: collect logs in all connections +* **collect partially**: collect logs in some specific connections + +> To distinguish the connections between those collect logs and those don't collect logs, SignalR service will treat some client as diagnostic client based on the diagnostic client configurations of server and client, in which the diagnostic logs always get collected, while the others don't. For more details, see [collect partially section](#collect-partially). + +#### Collect all + +Diagnostic logs are collected by all the connections. Take messaging logs for example. When this behavior is enabled, SignalR service will send a notification to server to start generating tracing ID for each message. The tracing ID will be carried in the message to the service, the service will also log the message with tracing ID. + +> Note that to ensure the performance of SignalR service, SignalR service doesn't await and parse the whole message sent from client, therefore, the client messages isn't get logged. But if the client is marked as a diagnostic client, then client message will get logged in SignalR service. + +##### Configuration guide + +To enable this behavior, check the checkbox in the *Types* section in the *Log Source Settings*. + +This behavior doesn't require you to update server side configurations. This configuration change will always be sent to server automatically. + +#### Collect partially + +Diagnostic logs are **only** collected by [diagnostic clients](#diagnostic-client). All messages get logged including client messages and connectivity events in the diagnostic clients. + +> The limit of the diagnostic clients' number is 100. If the number of diagnostic clients exceeds 100, the outnumbered diagnostic clients will get throttled by SignalR service. The new but outnumbered clients will be failed to connect to SignalR service, and throw `System.Net.Http.HttpRequestException` which has message `Response status code does not indicate success: 429 (Too Many Requests)`, while the already connected ones work without getting impacted by the throttling policy. + +##### Diagnostic client + +Diagnostic client is a logical concept, any client can be a diagnostic client. The server controls which client can be a diagnostic client. Once a client is marked as a diagnostic client, all diagnostic logs will be enabled in this client. To set a client be a diagnostic client, see the [configuration guide](#configuration-guide-1) below. + +##### Configuration guide + +To enable this behavior, you need to configure service, server, client side. + +###### Service side + +To enable this behavior, uncheck the checkbox for a specific log type in the *Types* section in the *Log Source Settings*. + +###### Server side + +Also setup `ServiceOptions.DiagnosticClientFilter` to define a filter of diagnostic clients based on the http context comes from clients. For example, make client with hub URL `?diag=yes`, then setup `ServiceOptions.DiagnosticClientFilter` to filter the diagnostic client. If it returns `true`, the client will be marked as diagnostic client; otherwise, it keeps as normal client. The `ServiceOptions.DiagnosticClientFilter` can be set in your startup class like this: + +``` +// sample: mark a client as diagnostic client when it has query string "?diag=yes" in hub URL +public IServiceProvider ConfigureServices(IServiceCollection services) +{ + services.AddMvc(); + services + .AddSignalR() + .AddAzureSignalR(o => + { + o.ConnectionString = ""; + o.DiagnosticClientFilter = context => context.Request.Query["diag"] == "yes"; + }); + + return services.BuildServiceProvider(); +} +``` +###### Client side + +Mark the client as diagnostic client by configuring the http context. For example, the client is marked as diagnostic client by adding the query string `diag=yes`. + +``` +var connection = new HubConnectionBuilder() + .WithUrl("?diag=yes") + .Build(); +``` ### Archive to a storage account -Logs are stored in the storage account that configured in **Diagnostics logs** pane. A container named `insights-logs-alllogs` is created automatically to store diagnostic logs. Inside the container, logs are stored in the file `resourceId=/SUBSCRIPTIONS/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/RESOURCEGROUPS/XXXX/PROVIDERS/MICROSOFT.SIGNALRSERVICE/SIGNALR/XXX/y=YYYY/m=MM/d=DD/h=HH/m=00/PT1H.json`. Basically, the path is combined by `resource ID` and `Date Time`. The log files are splitted by `hour`. Therefore, the minutes always be `m=00`. +Logs are stored in the storage account that configured in **Diagnostics logs** pane. A container named `insights-logs-alllogs` is created automatically to store diagnostic logs. Inside the container, logs are stored in the file `resourceId=/SUBSCRIPTIONS/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/RESOURCEGROUPS/XXXX/PROVIDERS/MICROSOFT.SIGNALRSERVICE/SIGNALR/XXX/y=YYYY/m=MM/d=DD/h=HH/m=00/PT1H.json`. Basically, the path is combined by `resource ID` and `Date Time`. The log files are split by `hour`. Therefore, the minutes always be `m=00`. All logs are stored in JavaScript Object Notation (JSON) format. Each entry has string fields that use the format described in the following sections. @@ -78,23 +160,25 @@ time | Log event time level | Log event level resourceId | Resource ID of your Azure SignalR Service location | Location of your Azure SignalR Service -category | Catagory of the log event +category | Category of the log event operationName | Operation name of the event callerIpAddress | IP address of your server/client -properties | Detailed properties related to this log event. For more detail, see [`Properties Table`](#properties-table) +properties | Detailed properties related to this log event. For more detail, see [**properties tables**](#properties-tables) below - -**Properties Table** + +#### Properties tables Name | Description ------- | ------- -type | Type of the log event. Currently, we provide information about connectivity to the Azure SignalR Service. Only `ConnectivityLogs` type is available -collection | Collection of the log event. Allowed values are: `Connection`, `Authorization` and `Throttling` -connectionId | Identity of the connection -transportType | Transport type of the connection. Allowed values are: `Websockets` \| `ServerSentEvents` \| `LongPolling` -connectionType | Type of the connection. Allowed values are: `Server` \| `Client`. `Server`: connection from server side; `Client`: connection from client side -userId | Identity of the user -message | Detailed message of log event +type | Required. Type of the log event. SignalR service provides information about connectivity to the Azure SignalR Service. Allowed value are `ConnectivityLogs` and `MessagingLogs` +collection | Required. Collection of the log event. Allowed values are: `Connection`, `Authorization` and `Throttling`, `Message` +message | Required. Detailed message of log event +connectionId | Optional. Identity of the connection +transportType | Optional. Transport type of the connection. Allowed values are: `Websockets` \| `ServerSentEvents` \| `LongPolling` +connectionType | Optional. Type of the connection. Allowed values are: `Server` \| `Client`. `Server`: connection from server side; `Client`: connection from client side +userId | Optional. Identity of the user +messageType | Optional. Type of the message, only available for the message sent from server. Allowed values are: `BroadcastDataMessage`, `MultiConnectionDataMessage`, `GroupBroadcastDataMessage`, `MultiGroupBroadcastDataMessage`, `GroupBroadcastDataMessage`, `UserDataMessage`, `MultiUserDataMessage`, `JoinGroupWithAckMessage` and `LeaveGroupWithAckMessage` +messageTracingId | Optional. Tracing ID of message The following code is an example of an archive log JSON string: @@ -123,11 +207,8 @@ The following code is an example of an archive log JSON string: To view diagnostic logs, follow these steps: -1. Click `Logs` in your target Log Analytics. - - ![Log Analytics menu item](./images/diagnostic-logs/log-analytics-menu-item.png) - -1. Enter `SignalRServiceDiagnosticLogs` and select time range to query diagnostic logs. For advanced query, please see [Get started with Log Analytics in Azure Monitor](https://docs.microsoft.com/en-us/azure/azure-monitor/log-query/get-started-portal) +1. Open the Log Analytics workspace that is selected as a log target. +1. Click `Logs` in your target Log Analytics workspace. ![Query log in Log Analytics](./images/diagnostic-logs/query-log-in-log-analytics.png) @@ -135,29 +216,31 @@ Archive log columns include elements listed in the following table: Name | Description ------- | ------- -TimeGenerated | Log event time -Collection | Collection of the log event. Allowed values are: `Connection`, `Authorization` and `Throttling` -OperationName | Operation name of the event -Location | Location of your Azure SignalR Service -Level | Log event level -CallerIpAddress | IP address of your server/client -Message | Detailed message of log event -UserId | Identity of the user -ConnectionId | Identity of the connection -ConnectionType | Type of the connection. Allowed values are: `Server` \| `Client`. `Server`: connection from server side; `Client`: connection from client side -TransportType | Transport type of the connection. Allowed values are: `Websockets` \| `ServerSentEvents` \| `LongPolling` +TimeGenerated | Required. Log event time +Collection | Required. Collection of the log event. Allowed values are: `Connection`, `Authorization`, `Throttling` and `Message` +OperationName | Required. Operation name of the event +Location | Required. Location of your Azure SignalR Service +Level | Required. Log event level +Message | Required. Detailed message of log event +CallerIpAddress | Required. IP address of your server/client +UserId | Optional. Identity of the user +ConnectionId | Optional. Identity of the connection +ConnectionType | Optional. Type of the connection. Allowed values are: `Server` \| `Client`. `Server`: connection from server side; `Client`: connection from client side +TransportType | Optional. Transport type of the connection. Allowed values are: `Websockets` \| `ServerSentEvents` \| `LongPolling` ### Troubleshooting with diagnostic logs -To troubleshoot for Azure SignalR Service, you can enable server/client side logs to capture failures. At present, Azure SiganlR Service exposes diagnostic logs, you can also enable logs for service side. +To troubleshoot for Azure SignalR Service, you can enable server/client side logs to capture failures. At present, Azure SignalR Service exposes diagnostic logs, you can also enable logs for service side. + +#### Connection related issues -When encountering connection unexpected growing or dropping situation, you can take advantage of diagnostic logs to troubleshoot. +When encountering connection unexpected growing or dropping situation, you can take advantage of connectivity logs to troubleshoot. Typical issues are often about connections's unexpected quantity changes, connections reach connection limits and authorization failure. See the next sections about how to troubleshoot. -#### Unexpected connection number changes +##### Unexpected connection number changes -##### Unexpected connection dropping +###### Unexpected connection dropping If you encounter unexpected connections drop, firstly enable logs in service, server and client sides. @@ -176,28 +259,115 @@ Service reloading, please reconnect | Azure SignalR Service is reloading. Azure Internal server transient error | Transient error occurs in Azure SignalR Service, should be auto-recovered Server connection dropped | Server connection drops with unknown error, consider self-troubleshooting with service/server/client side log first. Try to exclude basic issues (e.g Network issue, app server side issue, etc.). If the issue isn't resolved, contact us for further help. For more information, see [Get help](get-help) section. -##### Unexpected connection growing +###### Unexpected connection growing To troubleshoot about unexpected connection growing, the first thing you need to do is filter out the extra connections. You can add unique test user ID to your test client connection. Then verify it in with diagnostic logs, you see more than one client connections have the same test user ID or IP, then it is likely the client side create and establish more connections than expectation. Check your client side. -#### Authorization failure +##### Authorization failure If you get 401 Unauthorized returned for client requests, check your diagnostic logs. If you encounter `Failed to validate audience. Expected Audiences: . Actual Audiences: `, it means your all audiences in your access token is invalid. Try to use the valid audiences suggested in the log. -#### Throttling +##### Throttling If you find that you cannot establish SignalR client connections to Azure SignalR Service, check your diagnostic logs. If you encounter `Connection count reaches limit` in diagnostic log, you establish too many connections to SignalR Service, which reach the connection count limit. Consider scaling up your SignalR Service. If you encounter `Message count reaches limit` in diagnostic log, it means you use free tier, and you use up the quota of messages. If you want to send more messages, consider changing your SignalR Service to standard tier to send additional messages. For more details, see [Azure SignalR Service Pricing](https://azure.microsoft.com/en-us/pricing/details/signalr-service/). +#### Message related issues + +When encountering message related problem, you can take advantage of messaging logs to troubleshoot. Firstly, [enable diagnostic logs](#enable-diagnostic-logs) in service, logs for server and client. + +> For ASP.NET Core, see [here](https://docs.microsoft.com/aspnet/core/signalr/diagnostics) to enable logging in server and client. +> +> For ASP.NET, see [here](https://docs.microsoft.com/aspnet/signalr/overview/testing-and-debugging/enabling-signalr-tracing) to enable logging in server and client. + +If you don't mind potential performance impact and no client-to-server direction message, check the `Messaging` in `Log Source Settings/Types` to enable *collect-all* log collecting behavior. For more information about this behavior, see [collect all section](#collect-all). + +Otherwise, uncheck the `Messaging` to enable *collect-partially* log collecting behavior. This behavior requires configuration in client and server to enable it. For more information, see [collect partially section](#collect-partially). + +##### Message loss + +If you encounter message loss problem, the key is to locate the place where you lose the message. Basically, you have 3 components when using SignalR service: SignalR service, server and client. Both server and client are connected to SignalR service, they don't connected to each other directly once negotiation is completed. Therefore, we need to consider 2 directions for messages, for each direction, we need to consider 2 paths: + +* From client to server via SignalR service + * Path 1: Client to SignalR service + * Path 2: SignalR service to server +* From server to client via SignalR service + * Path 3: Server to SignalR service + * Path 4: SignalR service to client + +![Message path](./images/diagnostic-logs/message-path.png) + +For **collect all** collecting behavior: + +SignalR service only trace messages in direction **from server to client via SignalR service**. The tracing ID will be generated in server, the message will carry the tracing ID to SignalR service. + +> If you want to trace message and [send messages from outside a hub](https://docs.microsoft.com/en-us/aspnet/core/signalr/hubcontext) in your app server, you need to enable **collect all** collecting behavior to collect message logs for the messages which are not originated from diagnostic clients. +> Diagnostic clients works for both **collect all** and **collect partially** collecting behaviors. It has higher priority to collect logs. For more information, see [diagnostic client section](#diagnostic-client). + +By checking the log in server and service side, you can easily find out whether the message is sent from server, arrives at SignalR service, and leaves from SignalR service. Basically, by checking if the *received* and *sent* message are matched or not based on message tracing Id, you can tell whether the message loss issue is in server or SignalR service in this direction. For more information, see the [details](#message-flow-detail-for-path3) below. + +For **collect partially** collecting behavior: + +Once you mark the client as diagnostic client, SignalR service will trace messages in both directions. + +By checking the log in server and service side, you can easily find out whether the message is pass the server or SignalR service successfully. Basically, by checking if the *received* and *sent* message are matched or not based on message tracing Id, you can tell whether the message loss issue is in server or SignalR service. For more information, see the details below. + +**Details of the message flow** + +For the direction **from client to server via SignalR service**, SignalR service will **only** consider the invocation that is originated from diagnostic client, that is, the message generated directly in diagnostic client, or service message generated due to the invocation of diagnostic client indirectly. + +The tracing ID will be generated in SignalR service once the message arrives at SignalR service in **Path 1**. SignalR service will generate a log `Received a message from client connection .` for each message in diagnostic client. Once the message leaves from the SignalR to server, SignalR service will generate a log `Sent a message to server connection successfully.` If you see these 2 logs, you can be sure that the message passes through SignalR service successfully. + +> Due to the limitation of ASP.NET Core SignalR, the message comes from client doesn't contains any message level ID. But ASP.NET SignalR generate *invocation ID* for each message, you can use it to map with the tracing ID. + +Then the message carries the tracing ID Server in **Path 2**. Server will generate a log `Received message from client connection ` once the message arrives. + + +Once the message invokes the hub method in server, a new service message will be generated with a *new tracing ID*. Once the service message is generated, server will generate a log in template `Start to broadcast/send message ...`, the actual log will be based on your scenario. Then the message will be delivered to SignalR service in **Path 3**, once the service message leaves from server, a log called `Succeeded to send message ` will be generated. + +> The tracing ID of the message from client cannot map to the tracing ID of the service message to be sent to SignalR service. + +Once the service message arrives at SignalR service, a log called `Received a message from server connection .` will be generated. Then SignalR service processes the service message and deliver to the target client(s). Once the message is sent to client(s) in **Path 4**, log `Sent a message to client connection successfully.` will be generated. + +In summary, the message log will be generated when message goes in and out the SignalR service and server. You can use these logs to validate whether the message is lost in these components or not. + +Below is a typical message loss issue. + +###### A client fails to receive messages in a group + +The typical story in this issue is that the client joins a group **after** sending a group message. + +``` +Class Chat : Hub +{ + public void JoinAndSendGroup(string name, string groupName) + { + Groups.AddToGroupAsync(Context.ConnectionId, groupName); // join group + Clients.Group(groupName).SendAsync("ReveiceGroupMessage", name, "I'm in group"); // send group message + } +} +``` + +For example, someone may make invocations of *join group* and *send group message* in the same hub method. The problem here is the `AddToGroupAsync` is an `async` method. There's no `await` for the `AddToGroupAsync` to wait it finishes, the group message sent before `AddToGroupAsync` completes. Due to network delay, and the delay of the process of joining client to some group, the join group action may complete later than group message delivery. If so, the first group message won't have any client as receiver, since no client has joined the group. So it'll become a message lost issue. + +Without diagnostic logs, you are unable to find out when the client joins the group and when the group message is sent. +Once you enable messaging logs, you are able to compare the message arriving time in SignalR service. Follow the below steps to troubleshoot: +1. Find the message logs in server to find when the client joined the group and when the group message is sent. +1. Get the message tracing ID A of joining the group and the message tracing ID B of group message from the message logs. +1. Filter these message tracing ID among messaging logs in your log archive target, then compare their arriving timestamps, you will find which message message is arrived first in SignalR service. +1. If message tracing ID A's arriving time later than B's, then you must be sending group message **before** the client joining the group.Then you need to make sure the client is in the group before sending group messages. + +If a message get lost in SignalR or server, try to get the warning logs based on the message tracing ID to get the reason. If you need further help, see the [get help section](#get-help). + ### Get help -We recommend you troubleshoot by yourself first. Most isssues are caused by app server or network issues. Please follow [troubleshooting guide with diagnostic log](#troubleshooting-with-diagnostic-logs) and [basic trouble shooting guide](./tsg.md) to find the root cause. -If the issue still can't be resolved, then consider open an issue in github or create ticket in Azure Portal. +We recommend you troubleshoot by yourself first. Most issues are caused by app server or network issues. Please follow [troubleshooting guide with diagnostic log](#troubleshooting-with-diagnostic-logs) and [basic trouble shooting guide](./tsg.md) to find the root cause. +If the issue still can't be resolved, then consider open an issue in GitHub or create ticket in Azure Portal. Please provide: 1. Time range about 30 minutes when the issue occurs -2. Azure SignalR Service's resource ID -3. Issue details, as specifically as possible: e.g. appserver doesn't send messages, client connection drops, etc. -4. Logs collected from server/client side, and other material that might be useful -5. [Optional] Repro code +1. Azure SignalR Service's resource ID +1. Issue details, as specifically as possible: e.g. app server doesn't send messages, client connection drops, etc. +1. Logs collected from server/client side, and other material that might be useful +1. [Optional] Repro code -> Note: if you open issue in github, keep your sensitive information (e.g. resource ID, server/client logs) private, only send to members in Microsoft organization privately. +> Note: if you open issue in GitHub, keep your sensitive information (e.g. resource ID, server/client logs) private, only send to members in Microsoft organization privately. diff --git a/docs/images/diagnostic-logs/azure-signalr-diagnostic-settings.png b/docs/images/diagnostic-logs/azure-signalr-diagnostic-settings.png new file mode 100644 index 0000000000000000000000000000000000000000..8279a08c07015083a37b97f3fbdabb2931ad0386 GIT binary patch literal 97072 zcma&OcUaTgvOf$2LJLJe2_Qw?G!+QaMM$tAAiXIyiiF;qbOI=X3MfdgO0P=q5K)kh z^j@Wf5_(T~zwC4Nz4v#-d*6TZ@BmqB*37IapP5;~YAW(HRIF4)L_{A@OtZD~k&5+)EdRFyr6YdM_8@Gvw zN$C-1exNU1`pk)G2wyZ~4JIO?;PN}`!|w_L*6{YsKmGmh4fG6LQ0VPMWzBPE?*eSk z1)bvf;~x=73QBqiB(*am`wt`l`_Mz|>CUF_ln7WLDFyh3^RA)WxLBZV(2VHLdnG}B z6-;EvStmOEU3f7Oh6sb`lu$0L) zdpMVq6(O0vR9!8+)mA44`^cdrr~Un18(*i;gJ*{JEteNA;>-veoL%btS1)owf1DGZ zvHw44LSO=j-MHX0F2{U!VZ=gAl3!1X(~R*tN8U=EQ}rzEd*lbY2FFhfx1O}D7$RGh z1Bum}?R?934csF`OZ;CDRxIdg$tl2__5HwyL>lQI)IUXygp3Y+!&de=+l9Y4MC2J=f|_8YLsm4&wXF|kipI0GaGHm%&>z;{&iz3o4G2nz7mQxYq`^?oye(K*1l$7#p_&lo z&JK=Y{)DMm?!fkkXp7zqG8MBXgs*780wCu9UBa@^^(dOS2#YW@^L-Cbh6jplkmpKt zk3Av3LKsVzJ{yBEh=RE6X2$<(ol8)d_MSMG&#+w+CirbohjgU?_phjFJGBHq1#8!Y zBrx;-ujbHt&{w{WPR>!ZifHUT0B$!j{bve0UH%r z4=BOG-X(!QQALm7vH~u7UbZCtAMQ7T2))V71?4-DO(XmBM$ZHguyC>S&Lg7$7iG*K{=gaFo2|xv$du!w@C$#kpnzE}1(yI`WgpI_dG>snu<1Ya$)vVfj_0s#~`}y3nUExB?iwM z#Wq78a#v8D{Ut87`=>V=E7_7^;HbV zqWc5g#QM9d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_Z-w%dUgQmGj2!?q(;*#f`nJf*+`8QCP-}2!5HI=v&HGXKvqfxT z1RV^j{)7*e_4Cd8^O-t*;&~%n^`uZAQLaGm1$y0THN?jh+1*1IKaw?fp-^i*;H3T6 zQ*X0@ax2>WnH}^0S(&DS{$Ig!xFP^SubvxH{!ckIvOtm>{hJ}n|9mAu9)}jkP@DfL zpe8^Aqa=`dllDJfHIeWzd?2Nm5ET?#N6KJ<>5xOo)g$_!uNH)t(gcKaM^ohSwM Date: Mon, 16 Nov 2020 13:52:41 +0800 Subject: [PATCH 07/18] Use relative path in ServiceEndpoint key parsing (#1105) * Use relative path in ServiceEndpoint key parsing * extract parse endpoint from IConfiguration method to a extension method * Get service endpoint exclude default key from extension methods --- .../Endpoints/IConfigurationExtension.cs | 36 +++++++++++ .../Endpoints/ServiceEndpoint.cs | 41 +++--------- .../Properties/AssemblyInfo.cs | 1 + .../ServiceOptionsSetup.cs | 37 +++-------- .../ServiceEndpointFacts.cs | 56 +++++++---------- .../ServiceOptionsSetupFacts.cs | 63 +++++++++++++++++++ 6 files changed, 138 insertions(+), 96 deletions(-) create mode 100644 src/Microsoft.Azure.SignalR.Common/Endpoints/IConfigurationExtension.cs create mode 100644 test/Microsoft.Azure.SignalR.Tests/ServiceOptionsSetupFacts.cs diff --git a/src/Microsoft.Azure.SignalR.Common/Endpoints/IConfigurationExtension.cs b/src/Microsoft.Azure.SignalR.Common/Endpoints/IConfigurationExtension.cs new file mode 100644 index 000000000..cfd24cd0d --- /dev/null +++ b/src/Microsoft.Azure.SignalR.Common/Endpoints/IConfigurationExtension.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using Microsoft.Extensions.Configuration; + +namespace Microsoft.Azure.SignalR +{ + internal static class IConfigurationExtension + { + /// + /// Gets SignalR service endpoints configured in a section. + /// + /// + /// The SignalR service endpoint whose key is exactly the section name is not extracted. Only children of the section are extracted. + /// + public static ServiceEndpoint[] GetSignalRServiceEndpoints(this IConfiguration configuration, string sectionName) + { + var section = configuration.GetSection(sectionName); + return GetEndpoints(section).ToArray(); + } + + private static IEnumerable GetEndpoints(IConfiguration section) + { + foreach (var entry in section.AsEnumerable(true)) + { + if (!string.IsNullOrEmpty(entry.Value)) + { + yield return new ServiceEndpoint(entry.Key, entry.Value); + } + } + } + } +} \ No newline at end of file diff --git a/src/Microsoft.Azure.SignalR.Common/Endpoints/ServiceEndpoint.cs b/src/Microsoft.Azure.SignalR.Common/Endpoints/ServiceEndpoint.cs index 0d78f7672..cab5e68f7 100644 --- a/src/Microsoft.Azure.SignalR.Common/Endpoints/ServiceEndpoint.cs +++ b/src/Microsoft.Azure.SignalR.Common/Endpoints/ServiceEndpoint.cs @@ -61,10 +61,7 @@ internal ServiceEndpoint(string endpoint, AuthOptions authOptions, int port = 44 public ServiceEndpoint(string key, string connectionString) : this(connectionString) { - if (!string.IsNullOrEmpty(key)) - { - (Name, EndpointType) = ParseKey(key); - } + (Name, EndpointType) = ParseKey(key); } public ServiceEndpoint(string connectionString, EndpointType type = EndpointType.Primary, string name = "") @@ -140,44 +137,24 @@ public override bool Equals(object obj) internal static (string, EndpointType) ParseKey(string key) { - if (key == Constants.Keys.ConnectionStringDefaultKey || key == Constants.Keys.ConnectionStringSecondaryKey) + if (string.IsNullOrEmpty(key)) { return (string.Empty, EndpointType.Primary); } - if (key.StartsWith(Constants.Keys.ConnectionStringKeyPrefix)) - { - // Azure:SignalR:ConnectionString:: - return ParseKeyWithPrefix(key, Constants.Keys.ConnectionStringKeyPrefix); - } - - if (key.StartsWith(Constants.Keys.ConnectionStringSecondaryKey)) - { - return ParseKeyWithPrefix(key, Constants.Keys.ConnectionStringSecondaryKey); - } - - throw new ArgumentException($"Invalid format: {key}", nameof(key)); - } - - private static (string, EndpointType) ParseKeyWithPrefix(string key, string prefix) - { - var status = key.Substring(prefix.Length); - var parts = status.Split(':'); + var parts = key.Split(':'); if (parts.Length == 1) { return (parts[0], EndpointType.Primary); } + else if (Enum.TryParse(parts[1], true, out var endpointStatus)) + { + return (parts[0], endpointStatus); + } else { - if (Enum.TryParse(parts[1], true, out var endpointStatus)) - { - return (parts[0], endpointStatus); - } - else - { - return (status, EndpointType.Primary); - } + return (key, EndpointType.Primary); } } } -} +} \ No newline at end of file diff --git a/src/Microsoft.Azure.SignalR.Common/Properties/AssemblyInfo.cs b/src/Microsoft.Azure.SignalR.Common/Properties/AssemblyInfo.cs index 3d9a50e12..3ee25d3bd 100644 --- a/src/Microsoft.Azure.SignalR.Common/Properties/AssemblyInfo.cs +++ b/src/Microsoft.Azure.SignalR.Common/Properties/AssemblyInfo.cs @@ -1,6 +1,7 @@ using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("Microsoft.Azure.SignalR, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] +[assembly: InternalsVisibleTo("Microsoft.Azure.WebJobs.Extensions.SignalRService, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] [assembly: InternalsVisibleTo("Microsoft.Azure.SignalR.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] [assembly: InternalsVisibleTo("Microsoft.Azure.SignalR.Common.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] [assembly: InternalsVisibleTo("Microsoft.Azure.SignalR.AspNet, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] diff --git a/src/Microsoft.Azure.SignalR/ServiceOptionsSetup.cs b/src/Microsoft.Azure.SignalR/ServiceOptionsSetup.cs index c39397064..46699151c 100644 --- a/src/Microsoft.Azure.SignalR/ServiceOptionsSetup.cs +++ b/src/Microsoft.Azure.SignalR/ServiceOptionsSetup.cs @@ -2,8 +2,6 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; -using System.Collections.Generic; -using System.Linq; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Options; using Microsoft.Extensions.Primitives; @@ -46,38 +44,17 @@ public IChangeToken GetChangeToken() Enum.TryParse(mode, true, out stickyMode); } - var (connectionString, endpoints) = GetEndpoint(_configuration, Constants.Keys.ConnectionStringDefaultKey); - // Fallback to ConnectionStrings:Azure:SignalR:ConnectionString format when the default one is not available - if (connectionString == null && endpoints.Length == 0) - { - (connectionString, endpoints) = GetEndpoint(_configuration, Constants.Keys.ConnectionStringSecondaryKey); - } - - return (appName, connectionString, stickyMode, endpoints); - } + var connectionString = _configuration[Constants.Keys.ConnectionStringDefaultKey] ?? _configuration[Constants.Keys.ConnectionStringSecondaryKey]; - private static (string, ServiceEndpoint[]) GetEndpoint(IConfiguration configuration, string key) - { - var section = configuration.GetSection(key); - var connectionString = section.Value; - var endpoints = GetEndpoints(section.GetChildren()).ToArray(); - - return (connectionString, endpoints); - } + var endpoints = _configuration.GetSignalRServiceEndpoints(Constants.Keys.ConnectionStringDefaultKey); - private static IEnumerable GetEndpoints(IEnumerable sections) - { - foreach (var section in sections) + if (endpoints.Length == 0) { - foreach (var entry in section.AsEnumerable()) - { - if (!string.IsNullOrEmpty(entry.Value)) - { - yield return new ServiceEndpoint(entry.Key, entry.Value); - } - } + endpoints = _configuration.GetSignalRServiceEndpoints(Constants.Keys.ConnectionStringSecondaryKey); } + + return (appName, connectionString, stickyMode, endpoints); } } -} +} \ No newline at end of file diff --git a/test/Microsoft.Azure.SignalR.Common.Tests/ServiceEndpointFacts.cs b/test/Microsoft.Azure.SignalR.Common.Tests/ServiceEndpointFacts.cs index 005ef9fbc..3962567db 100644 --- a/test/Microsoft.Azure.SignalR.Common.Tests/ServiceEndpointFacts.cs +++ b/test/Microsoft.Azure.SignalR.Common.Tests/ServiceEndpointFacts.cs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -using Microsoft.AspNetCore.Http; -using System; using System.Collections.Generic; using Xunit; @@ -11,13 +9,11 @@ namespace Microsoft.Azure.SignalR.Common.Tests public class ServiceEndpointFacts { [Theory] - [InlineData("Azure:SignalR:ConnectionString", "", EndpointType.Primary)] - [InlineData("Azure:SignalR:ConnectionString:a", "a", EndpointType.Primary)] - [InlineData("Azure:SignalR:ConnectionString:a:primary", "a", EndpointType.Primary)] - [InlineData("Azure:SignalR:ConnectionString:a:Primary", "a", EndpointType.Primary)] - [InlineData("Azure:SignalR:ConnectionString:secondary", "secondary", EndpointType.Primary)] - [InlineData("Azure:SignalR:ConnectionString:a:secondary", "a", EndpointType.Secondary)] - [InlineData("Azure:SignalR:ConnectionString::secondary", "", EndpointType.Secondary)] + [InlineData("a", "a", EndpointType.Primary)] + [InlineData("a:primary", "a", EndpointType.Primary)] + [InlineData("secondary", "secondary", EndpointType.Primary)] + [InlineData("a:secondary", "a", EndpointType.Secondary)] + [InlineData(":secondary", "", EndpointType.Secondary)] internal void TestParseKey(string key, string expectedName, EndpointType expectedType) { var (name, type) = ServiceEndpoint.ParseKey(key); @@ -26,14 +22,6 @@ internal void TestParseKey(string key, string expectedName, EndpointType expecte Assert.Equal(expectedType, type); } - [Theory] - [InlineData("a")] - [InlineData("")] - internal void TestParseInvalidKey(string key) - { - Assert.Throws(() => ServiceEndpoint.ParseKey(key)); - } - [Theory] [MemberData(nameof(TestEndpointsEqualityInput))] internal void TestEndpointsEquality(ServiceEndpoint first, ServiceEndpoint second, bool equal) @@ -46,32 +34,32 @@ internal void TestEndpointsEquality(ServiceEndpoint first, ServiceEndpoint secon { new object[] { - new ServiceEndpoint("Azure:SignalR:ConnectionString:a", "Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;Port=8080;Version=1.0"), - new ServiceEndpoint("Azure:SignalR:ConnectionString", "Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;Port=8080;Version=1.0"), + new ServiceEndpoint("a", "Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;Port=8080;Version=1.0"), + new ServiceEndpoint("Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;Port=8080;Version=1.0"), false, }, new object[] { - new ServiceEndpoint("Azure:SignalR:ConnectionString:a", "Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;Port=8080;Version=1.0"), - new ServiceEndpoint("Azure:SignalR:ConnectionString::primary", "Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;Port=8080"), + new ServiceEndpoint("a", "Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;Port=8080;Version=1.0"), + new ServiceEndpoint(":primary", "Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;Port=8080"), false, }, new object[] { - new ServiceEndpoint("Azure:SignalR:ConnectionString:a", "Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;Port=8080;Version=1.0"), - new ServiceEndpoint("Azure:SignalR:ConnectionString:a:secondary", "Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"), + new ServiceEndpoint("a", "Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;Port=8080;Version=1.0"), + new ServiceEndpoint("a:secondary", "Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"), false, }, new object[] { - new ServiceEndpoint("Azure:SignalR:ConnectionString:a", "Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;Port=8080;Version=1.0"), - new ServiceEndpoint("Azure:SignalR:ConnectionString:b", "Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456780"), + new ServiceEndpoint("a", "Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;Port=8080;Version=1.0"), + new ServiceEndpoint("b", "Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456780"), false, }, new object[] { new ServiceEndpoint("Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;Port=8080;Version=1.0"), - new ServiceEndpoint("Azure:SignalR:ConnectionString::secondary", "Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456780"), + new ServiceEndpoint(":secondary", "Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456780"), false, }, new object[] @@ -82,28 +70,28 @@ internal void TestEndpointsEquality(ServiceEndpoint first, ServiceEndpoint secon }, new object[] { - new ServiceEndpoint("Azure:SignalR:ConnectionString", "Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;Port=8080;Version=1.0"), - new ServiceEndpoint("Azure:SignalR:ConnectionString", "Endpoint=https://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456780"), + new ServiceEndpoint("Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;Port=8080;Version=1.0"), + new ServiceEndpoint("Endpoint=https://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456780"), false, }, new object[] { - new ServiceEndpoint("Azure:SignalR:ConnectionString", "Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;Port=8080;Version=1.0"), - new ServiceEndpoint("Azure:SignalR:ConnectionString", "Endpoint=http://localhost;AccessKey=OPQRSTUVWXYZ0123456780ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456780"), + new ServiceEndpoint("Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;Port=8080;Version=1.0"), + new ServiceEndpoint("Endpoint=http://localhost;AccessKey=OPQRSTUVWXYZ0123456780ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456780"), true, }, new object[] { - new ServiceEndpoint("Azure:SignalR:ConnectionString", "Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;Port=8080;Version=1.0"), - new ServiceEndpoint("Azure:SignalR:ConnectionString::primary", "Endpoint=http://localhost;AccessKey=OPQRSTUVWXYZ0123456780ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456780"), + new ServiceEndpoint("Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;Port=8080;Version=1.0"), + new ServiceEndpoint(":primary", "Endpoint=http://localhost;AccessKey=OPQRSTUVWXYZ0123456780ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456780"), true, }, new object[] { - new ServiceEndpoint("Azure:SignalR:ConnectionString::secondary", "Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;Port=8080;Version=1.0"), + new ServiceEndpoint(":secondary", "Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;Port=8080;Version=1.0"), new ServiceEndpoint("Endpoint=http://localhost;AccessKey=OPQRSTUVWXYZ0123456780ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456780", EndpointType.Secondary), true, } }; } -} +} \ No newline at end of file diff --git a/test/Microsoft.Azure.SignalR.Tests/ServiceOptionsSetupFacts.cs b/test/Microsoft.Azure.SignalR.Tests/ServiceOptionsSetupFacts.cs new file mode 100644 index 000000000..afea2ac77 --- /dev/null +++ b/test/Microsoft.Azure.SignalR.Tests/ServiceOptionsSetupFacts.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System.Collections.Generic; +using System.Linq; +using Microsoft.Extensions.Configuration; +using Xunit; + +namespace Microsoft.Azure.SignalR.Tests +{ + public class ServiceOptionsSetupFacts + { + public const string FakeConnectionString = "Endpoint=http://fake;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;Port=8080;Version=1.0"; + + private static readonly string[] ConnectionStringKeyPrefixs = new string[] { Constants.Keys.ConnectionStringKeyPrefix, Constants.Keys.ConnectionStringSecondaryKeyPrefix }; + + private static readonly Dictionary EndpointDict = new Dictionary + { + {"a",("a",EndpointType.Primary) }, + {"secondary",("secondary",EndpointType.Primary) }, + {"a:secondary",("a",EndpointType.Secondary) }, + {":secondary",(string.Empty,EndpointType.Secondary) } + }; + + public static IEnumerable ParseServiceEndpointData = from section in ConnectionStringKeyPrefixs + from tuple in EndpointDict + select new object[] { section + tuple.Key, tuple.Value.Item1, tuple.Value.Item2 }; + + [Theory] + [MemberData(nameof(ParseServiceEndpointData))] + public void ParseServiceEndpointTest(string key, string endpointName, EndpointType type) + { + IConfiguration configuration = new ConfigurationBuilder().AddInMemoryCollection().Build(); + configuration[key] = FakeConnectionString; + var setup = new ServiceOptionsSetup(configuration); + var options = new ServiceOptions(); + setup.Configure(options); + + var resultEndpoint = options.Endpoints.Single(); + Assert.Equal(endpointName, resultEndpoint.Name); + Assert.Equal(type, resultEndpoint.EndpointType); + } + + [Fact] + public void ParseMultipleEndpointsTest() + { + IConfiguration configuration = new ConfigurationBuilder().AddInMemoryCollection().Build(); + var defaultConnectionString = "Endpoint=http://default;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;Port=8080;Version=1.0"; + configuration[$"{Constants.Keys.ConnectionStringDefaultKey}"] = defaultConnectionString; + foreach (var key in EndpointDict.Keys) + { + configuration[ConfigurationPath.Combine(Constants.Keys.ConnectionStringDefaultKey, key)] = FakeConnectionString; + } + + var setup = new ServiceOptionsSetup(configuration); + var options = new ServiceOptions(); + setup.Configure(options); + + Assert.Equal(defaultConnectionString, options.ConnectionString); + Assert.Equal(EndpointDict.Count, options.Endpoints.Length); + } + } +} \ No newline at end of file From d0b179d226155c11dd9000ff1b273bec02f40cf2 Mon Sep 17 00:00:00 2001 From: yjin81 Date: Tue, 17 Nov 2020 11:41:07 +0800 Subject: [PATCH 08/18] Move the troubleshooting guide to MS doc (#1110) --- docs/tsg.md | 336 +--------------------------------------------------- 1 file changed, 1 insertion(+), 335 deletions(-) diff --git a/docs/tsg.md b/docs/tsg.md index 04d2a3121..a7ec3bf4f 100644 --- a/docs/tsg.md +++ b/docs/tsg.md @@ -1,337 +1,3 @@ # Troubleshooting Guide -This guidance is to provide useful troubleshooting guide based on the common issues customers encountered and resolved in the past years. - -- [Access token too long](#access_token_too_long) -- [TLS 1.2 required](#tls_1.2_required) -- [400 Bad Request returned for client requests](#400_bad_request) -- [401 Unauthorized returned for client requests](#401_unauthorized_returned_for_client_requests) -- [404 returned for client requests](#random_404_returned_for_client_requests) -- [404 returned for ASP.NET SignalR's reconnect request](#reconnect_404) -- [413 returned for REST API requests](#413_rest) -- [429 Too Many Requests returned for client requests](#429_too_many_requests) -- [500 Error when negotiate](#500_error_when_negotiate) -- [Client connection drops](#client_connection_drop) -- [Client connection increases constantly](#client_connection_increases_constantly) -- [Server connection drops](#server_connection_drop) - - -## Access token too long - -### Possible errors: - -1. Client-side `ERR_CONNECTION_` -2. 414 URI Too Long -3. 413 Payload Too Large -4. Access Token must not be longer than 4K. 413 Request Entity Too Large - -### Root cause: -For HTTP/2, the max length for a single header is **4K**, so if you are using browser to access Azure service, you will encounter this limitation with `ERR_CONNECTION_` error. - -For HTTP/1.1, or C# clients, the max URI length is **12K**, the max header length is **16K**. - -With SDK version **1.0.6** or higher, `/negotiate` will throw `413 Payload Too Large` when the generated access token is larger than **4K**. - -### Solution: -By default, claims from `context.User.Claims` are included when generating JWT access token to **ASRS**(**A**zure **S**ignal**R** **S**ervice), so that the claims are preserved and can be passed from **ASRS** to the `Hub` when the client connects to the `Hub`. - -In some cases, `context.User.Claims` are leveraged to store lots of information for app server, most of which are not used by `Hub`s but by other components. - -The generated access token is passed through the network, and for WebSocket/SSE connections, access tokens are passed through query strings. So as the best practice, we suggest only passing **necessary** claims from the client through **ASRS** to your app server when the Hub needs. - -There is a `ClaimsProvider` for you to customize the claims passing to **ASRS** inside the access token. - -For ASP.NET Core: -```cs -services.AddSignalR() - .AddAzureSignalR(options => - { - // pick up necessary claims - options.ClaimsProvider = context => context.User.Claims.Where(...); - }); -``` - -For ASP.NET: -```cs -services.MapAzureSignalR(GetType().FullName, options => - { - // pick up necessary claims - options.ClaimsProvider = context.Authentication?.User.Claims.Where(...); - }); -``` - - -## TLS 1.2 required - -### Possible errors: - -1. ASP.Net "No server available" error [#279](https://github.com/Azure/azure-signalr/issues/279) -2. ASP.Net "The connection is not active, data cannot be sent to the service." error [#324](https://github.com/Azure/azure-signalr/issues/324) -3. "An error occurred while making the HTTP request to https://. This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case. This could also be caused by a mismatch of the security binding between the client and the server." - -### Root cause: -Azure Service only supports TLS1.2 for security concerns. With .NET framework, it is possible that TLS1.2 is not the default protocol. As a result, the server connections to ASRS can not be successfully established. - -### Troubleshooting Guide -1. If this error can be repro-ed locally, uncheck *Just My Code* and throw all CLR exceptions and debug the app server locally to see what exception throws. - * Uncheck *Just My Code* - - ![Uncheck Just My Code](./images/uncheck_just_my_code.png) - * Throw CLR exceptions - - ![Throw CLR exceptions](./images/throw_clr_exceptions.png) - * See the exceptions throw when debugging the app server side code: - - ![Exception throws](./images/tls_throws.png) - -2. For ASP.NET ones, you can also add following code to your `Startup.cs` to enable detailed trace and see the errors from the log. -```cs -app.MapAzureSignalR(this.GetType().FullName); -// Make sure this switch is called after MapAzureSignalR -GlobalHost.TraceManager.Switch.Level = SourceLevels.Information; -``` - -### Solution: - -Add following code to your Startup: -```cs -ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; -``` - - -## 400 Bad Request returned for client requests -### Root cause -Check if your client request has multiple `hub` query string. `hub` is a preserved query parameter and 400 will throw if the service detects more than one `hub` in the query. - - -## 401 Unauthorized returned for client requests -### Root cause -Currently the default value of JWT token's lifetime is 1 hour. - -For ASP.NET Core SignalR, when it is using WebSocket transport type, it is OK. - -For ASP.NET Core SignalR's other transport type, SSE and long-polling, this means by default the connection can at most persist for 1 hour. - -For ASP.NET SignalR, the client sends a `/ping` KeepAlive request to the service from time to time, when the `/ping` fails, the client **aborts** the connection and never reconnect. This means, for ASP.NET SignalR, the default token lifetime makes the connection lasts for **at most** 1 hour for all the transport type. - -### Solution - -For security concerns, extend TTL is not encouraged. We suggest adding reconnect logic from the client to restart the connection when such 401 occurs. When the client restarts the connection, it will negotiate with app server to get the JWT token again and get a renewed token. - -Check [here](#restart_connection) for how to restart client connections. - - -## 404 returned for client requests - -For a SignalR persistent connection, it first `/negotiate` to Azure SignalR service and then establishes the real connection to Azure SignalR service. - -### Troubleshooting Guide -1. Following [How to view outgoing requests](#view_request) to get the request from the client to the service. -1. Check the URL of the request when 404 occurs. If the URL is targeting to your web app, and similar to `{your_web_app}/hubs/{hubName}`, check if the client `SkipNegotiation` is `true`. When using Azure SignalR, the client receives redirect URL when it first negotiates with the app server. The client should **NOT** skip negotiation when using Azure SignalR. -1. Another 404 can happen when the connect request is handled more than **5** seconds after `/negotiate` is called. Check the timestamp of the client request, and open an issue to us if the request to the service has a very slow response. - - -## 404 returned for ASP.NET SignalR's reconnect request -For ASP.NET SignalR, when the [client connection drops](#client_connection_drop), it reconnects using the same `connectionId` for 3 times before stopping the connection. `/reconnect` can help if the connection is dropped due to network intermittent issues that `/reconnect` can reestablish the persistent connection successfully. Under other circumstances, for example, the client connection is dropped due to the routed server connection is dropped, or SignalR Service has some internal errors like instance restart/failover/deployment, the connection no longer exists, thus `/reconnect` returns `404`. It is the expected behavior for `/reconnect` and after 3 times retry the connection stops. We suggest having [connection restart](#restart_connection) logic when connection stops. - - -## 413 returned for REST API requests - -413 returns if your request body is larger than 1MB. - -For REST API see [limitation](rest-api.md#Limitation). - - -## 429(Too Many Requests) returned for client requests - -There are two cases. - -### **Concurrent** connection count exceeds limit. - -* For **Free** instances, **Concurrent** connection count limit is 20. -* For **Standard** instances, **concurrent** connection count limit **per unit** is 1K, which means Unit100 allows 100K **concurrent** connections. - -The connections include both client and server connections. -Check [here](https://docs.microsoft.com/en-us/azure/azure-signalr/signalr-concept-messages-and-connections#how-connections-are-counted) for how connections are counted. - -### Too many negotiate requests at the same time. - -We suggest having a random delay before reconnecting, please check [here](#restart_connection) for retry samples. - - -## 500 Error when negotiate: Azure SignalR Service is not connected yet, please try again later. -### Root cause -This error is reported when there is no server connection to Azure SignalR Service connected. - -### Troubleshooting Guide -Please enable server-side trace to find out the error details when the server tries to connect to Azure SignalR Service. - -#### Enable server side logging for ASP.NET Core SignalR -Server side logging for ASP.NET Core SignalR integrates with the `ILogger` based [logging](https://docs.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-2.1&tabs=aspnetcore2x) provided in the ASP.NET Core framework. You can enable server side logging by using `ConfigureLogging`, a sample usage as follows: -```cs -.ConfigureLogging((hostingContext, logging) => - { - logging.AddConsole(); - logging.AddDebug(); - }) -``` -Logger categories for Azure SignalR always starts with `Microsoft.Azure.SignalR`. To enable detailed logs from Azure SignalR, configure the preceding prefixes to `Debug` level in your **appsettings.json** file like below: -```JSON -{ - "Logging": { - "LogLevel": { - ... - "Microsoft.Azure.SignalR": "Debug", - ... - } - } -} -``` - -#### Enable server side traces for ASP.NET SignalR -When using SDK version >= `1.0.0`, you can enable traces by adding the following to `web.config`: ([Details](https://github.com/Azure/azure-signalr/issues/452#issuecomment-478858102)) -```xml - - - - - - - - - - - - - - - - - - -``` - -## Client connection drops - -When the client is connected to the Azure SignalR, the persistent connection between the client and Azure SignalR can sometimes drop for different reasons. This section describes several possibilities causing such connection drop and provides some guidance on how to identify the root cause. - -### Possible errors seen from the client-side -1. `The remote party closed the WebSocket connection without completing the close handshake` -2. `Service timeout. 30.00ms elapsed without receiving a message from service.` -3. `{"type":7,"error":"Connection closed with an error."}` -4. `{"type":7,"error":"Internal server error."}` - -### Root cause: -Client connections can drop under various circumstances: -1. When `Hub` throws exceptions with the incoming request. -2. When the server connection the client routed to drops, see below section for details on [server connection drops](#server_connection_drop). -3. When a network connectivity issue happens between client and SignalR Service. -4. When SignalR Service has some internal errors like instance restart, failover, deployment, and so on. - -### Troubleshooting Guide -1. Open app server-side log to see if anything abnormal took place -2. Check app server-side event log to see if the app server restarted -3. Create an issue to us providing the time frame, and email the resource name to us - - - -## Client connection increases constantly -It might be caused by improper usage of client connection. If someone forgets to stop/dispose SignalR client, the connection remains open. - -### Possible errors seen from the SignalR's metrics blade -Client connections rise constantly for a long time in Azure SignalR's metrics blade. -![client_connection_increasing_constantly](./images/client_connection_increasing_constantly.jpg) - -### Root cause: -SignalR client connection's `DisposeAsync` never be called, the connection keeps open. - -### Troubleshooting Guide -1. Check if the SignalR client **never** close. - -### Solution -Check if you close connection. Please manually call `HubConnection.DisposeAsync()` to stop the connection after using it. - -For example: - -```C# -var connection = new HubConnectionBuilder() - .WithUrl(...) - .Build(); -try -{ - await connection.StartAsync(); - // Do your stuff - await connection.StopAsync(); -} -finally -{ - await connection.DisposeAsync(); -} -``` - -### Common Improper Client Connection Usage - -#### Azure Function Example -This issue often occurs when someone establishes SignalR client connection in Azure Function method instead of making it a static member to your Function class. You might expect only one client connection is established, but you see client connection count increases constantly in metrics blade, all these connections drop only after the Azure Function or Azure SignalR service restarts. This is because for **each** request, Azure Function creates **one** client connection, if you don't stop client connection in Function method, the client keeps the connections alive to Azure SignalR service. - -#### Solution -1. Remember to close client connection if you use SignalR clients in Azure function or use SignalR client as a singleton. -1. Instead of using SignalR clients in Azure function, you can create SignalR clients anywhere else and use [Azure Functions Bindings for Azure SignalR Service](https://github.com/Azure/azure-functions-signalrservice-extension) to [negotiate](https://github.com/Azure/azure-functions-signalrservice-extension/blob/dev/samples/simple-chat/csharp/FunctionApp/Functions.cs#L22) the client to Azure SignalR. And you can also utilize the binding to [send messages](https://github.com/Azure/azure-functions-signalrservice-extension/blob/dev/samples/simple-chat/csharp/FunctionApp/Functions.cs#L40). Samples to negotiate client and send messages can be found [here](https://github.com/Azure/azure-functions-signalrservice-extension/tree/dev/samples). Further information can be found [here](https://github.com/Azure/azure-functions-signalrservice-extension). -1. When you use SignalR clients in Azure function, there might be a better architecture to your scenario. Check if you design a proper serverless architecture. You can refer to [Real-time serverless applications with the SignalR Service bindings in Azure Functions](https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Extensions.SignalRService). - - -## Server connection drops - -When the app server starts, in the background, the Azure SDK starts to initiate server connections to the remote Azure SignalR. As described in [Internals of Azure SignalR Service](internal.md), Azure SignalR routes incoming client traffics to these server connections. Once a server connection is dropped, all the client connections it serves will be closed too. - -As the connections between the app server and SignalR Service are persistent connections, they may experience network connectivity issues. In the Server SDK, we have **Always Reconnect** strategy to server connections. As the best practice, we also encourage users to add continuous reconnect logic to the clients with a random delay time to avoid massive simultaneous requests to the server. - -On a regular basis there are new version releases for the Azure SignalR Service, and sometimes the Azure wide OS patching or upgrades or occasionally interruption from our dependent services. These may bring in a very short period of service disruption, but as long as client-side has the disconnect/reconnect mechanism, the impact is minimal like any client-side caused disconnect-reconnect. - -This section describes several possibilities leading to server connection drop and provides some guidance on how to identify the root cause. - -### Possible errors seen from server-side: -1. `[Error]Connection "..." to the service was dropped` -2. `The remote party closed the WebSocket connection without completing the close handshake` -3. `Service timeout. 30.00ms elapsed without receiving a message from service.` - -### Root cause: -Server-service connection is closed by **ASRS**(**A**zure **S**ignal**R** **S**ervice). - -### Troubleshooting Guide -1. Open app server-side log to see if anything abnormal took place -2. Check app server-side event log to see if the app server restarted -3. Create an issue to us providing the time frame, and email the resource name to us - -## Tips - - -* How to view the outgoing request from client? -Take ASP.NET Core one for example (ASP.NET one is similar): - 1. From browser: - - Take Chrome as an example, you can use **F12** to open the console window, and switch to **Network** tab. You might need to refresh the page using **F5** to capture the network from the very beginning. - - ![Chrome View Network](./images/chrome_network.gif) - - 2. From C# client: - - You can view local web traffics using [Fiddler](https://www.telerik.com/fiddler). WebSocket traffics are supported since Fiddler 4.5. - - ![Fiddler View Network](./images/fiddler_view_network.png) - - - -* How to restart client connection? - - Here are the [Sample codes](../samples/) containing restarting connection logic with *ALWAYS RETRY* strategy: - - * [ASP.NET Core C# Client](../samples/ChatSample/ChatSample.CSharpClient/Program.cs#L64) - - * [ASP.NET Core JavaScript Client](../samples/ChatSample/ChatSample/wwwroot/index.html#L164) - - * [ASP.NET C# Client](../samples/AspNet.ChatSample/AspNet.ChatSample.CSharpClient/Program.cs#L78) - - * [ASP.NET JavaScript Client](../samples/AspNet.ChatSample/AspNet.ChatSample.JavaScriptClient/wwwroot/index.html#L71) - +This article has been moved to [here](https://docs.microsoft.com/azure/azure-signalr/signalr-howto-troubleshoot-guide). From 346970a237819e995bc9811be3b53a8d28982993 Mon Sep 17 00:00:00 2001 From: Wanpeng Li Date: Tue, 17 Nov 2020 15:32:01 +0800 Subject: [PATCH 09/18] add configurable timeout (#1103) * add configurable timeout * move reflection to cache (_negotiateEndpointCache) * move get handshake timeout part outside of buildClaims * remove method info outside of lambda to avoid re-evaluating * make static readonly --- .../Constants.cs | 5 ++ .../Utilities/ClaimsUtility.cs | 7 +- .../DependencyInjectionExtensions.cs | 2 +- .../HubHost/NegotiateHandler.cs | 89 ++++++++++++++++--- .../ServiceRouteBuilder.cs | 2 +- .../Startup/NegotiateMatcherPolicy.cs | 20 ++++- .../Utilities/ServiceRouteHelper.cs | 7 +- .../ClaimsUtilityTests.cs | 1 - .../AddAzureSignalRFacts.cs | 60 +++++++++++++ .../NegotiateHandlerFacts.cs | 63 +++++++------ 10 files changed, 204 insertions(+), 52 deletions(-) diff --git a/src/Microsoft.Azure.SignalR.Common/Constants.cs b/src/Microsoft.Azure.SignalR.Common/Constants.cs index 3f35dd72c..cee53be7c 100644 --- a/src/Microsoft.Azure.SignalR.Common/Constants.cs +++ b/src/Microsoft.Azure.SignalR.Common/Constants.cs @@ -41,6 +41,10 @@ public static class Periods public static readonly TimeSpan DefaultServersPingInterval = TimeSpan.FromSeconds(5); // Depends on DefaultStatusPingInterval, make 1/2 to fast check. public static readonly TimeSpan DefaultCloseDelayInterval = TimeSpan.FromSeconds(5); + + // Custom handshake timeout of SignalR Service + public const int DefaultHandshakeTimeout = 15; + public const int MaxCustomHandshakeTimeout = 30; } public static class ClaimType @@ -59,6 +63,7 @@ public static class ClaimType public const string ServiceEndpointsCount = AzureSignalRSysPrefix + "secn"; public const string MaxPollInterval = AzureSignalRSysPrefix + "ttl"; public const string DiagnosticClient = AzureSignalRSysPrefix + "dc"; + public const string CustomHandshakeTimeout = AzureSignalRSysPrefix + "cht"; public const string AzureSignalRUserPrefix = "asrs.u."; } diff --git a/src/Microsoft.Azure.SignalR.Common/Utilities/ClaimsUtility.cs b/src/Microsoft.Azure.SignalR.Common/Utilities/ClaimsUtility.cs index 86c359fc8..bb6e7c02b 100644 --- a/src/Microsoft.Azure.SignalR.Common/Utilities/ClaimsUtility.cs +++ b/src/Microsoft.Azure.SignalR.Common/Utilities/ClaimsUtility.cs @@ -34,7 +34,7 @@ public static IEnumerable BuildJwtClaims( bool enableDetailedErrors = false, int endpointsCount = 1, int? maxPollInterval = null, - bool isDiagnosticClient = false) + bool isDiagnosticClient = false, int handshakeTimeout = Constants.Periods.DefaultHandshakeTimeout) { if (userId != null) { @@ -52,6 +52,11 @@ public static IEnumerable BuildJwtClaims( yield return new Claim(Constants.ClaimType.DiagnosticClient, "true"); } + if (handshakeTimeout != Constants.Periods.DefaultHandshakeTimeout) + { + yield return new Claim(Constants.ClaimType.CustomHandshakeTimeout, handshakeTimeout.ToString()); + } + var authenticationType = user?.Identity?.AuthenticationType; // No need to pass it when the authentication type is Bearer diff --git a/src/Microsoft.Azure.SignalR/DependencyInjectionExtensions.cs b/src/Microsoft.Azure.SignalR/DependencyInjectionExtensions.cs index 23c290a9b..b794e28a1 100644 --- a/src/Microsoft.Azure.SignalR/DependencyInjectionExtensions.cs +++ b/src/Microsoft.Azure.SignalR/DependencyInjectionExtensions.cs @@ -83,7 +83,7 @@ private static ISignalRServerBuilder AddAzureSignalRCore(this ISignalRServerBuil .AddSingleton(typeof(AzureSignalRMarkerService)) .AddSingleton() .AddSingleton() - .AddSingleton(); + .AddSingleton(typeof(NegotiateHandler<>)); // If a custom router is added, do not add the default router builder.Services.TryAddSingleton(typeof(IEndpointRouter), typeof(DefaultEndpointRouter)); diff --git a/src/Microsoft.Azure.SignalR/HubHost/NegotiateHandler.cs b/src/Microsoft.Azure.SignalR/HubHost/NegotiateHandler.cs index b32ed551d..4fb5d1ff5 100644 --- a/src/Microsoft.Azure.SignalR/HubHost/NegotiateHandler.cs +++ b/src/Microsoft.Azure.SignalR/HubHost/NegotiateHandler.cs @@ -11,11 +11,12 @@ using Microsoft.AspNetCore.Http.Connections; using Microsoft.AspNetCore.Localization; using Microsoft.AspNetCore.SignalR; +using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; namespace Microsoft.Azure.SignalR { - internal class NegotiateHandler + internal class NegotiateHandler where THub : Hub { private readonly IUserIdProvider _userIdProvider; private readonly IConnectionRequestIdProvider _connectionRequestIdProvider; @@ -29,17 +30,23 @@ internal class NegotiateHandler private readonly bool _enableDetailedErrors; private readonly int _endpointsCount; private readonly int? _maxPollInterval; + private readonly int _customHandshakeTimeout; + private readonly string _hubName; + private readonly ILogger> _logger; public NegotiateHandler( - IOptions hubOptions, + IOptions globalHubOptions, + IOptions> hubOptions, IServiceEndpointManager endpointManager, IEndpointRouter router, IUserIdProvider userIdProvider, IServerNameProvider nameProvider, IConnectionRequestIdProvider connectionRequestIdProvider, IOptions options, - IBlazorDetector blazorDetector) + IBlazorDetector blazorDetector, + ILogger> logger) { + _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _endpointManager = endpointManager ?? throw new ArgumentNullException(nameof(endpointManager)); _router = router ?? throw new ArgumentNullException(nameof(router)); _serverName = nameProvider?.GetName(); @@ -49,18 +56,20 @@ public NegotiateHandler( _diagnosticClientFilter = options?.Value?.DiagnosticClientFilter; _blazorDetector = blazorDetector ?? new DefaultBlazorDetector(); _mode = options.Value.ServerStickyMode; - _enableDetailedErrors = hubOptions.Value.EnableDetailedErrors == true; + _enableDetailedErrors = globalHubOptions.Value.EnableDetailedErrors == true; _endpointsCount = options.Value.Endpoints.Length; _maxPollInterval = options.Value.MaxPollIntervalInSeconds; + _customHandshakeTimeout = GetCustomHandshakeTimeout(hubOptions.Value.HandshakeTimeout ?? globalHubOptions.Value.HandshakeTimeout); + _hubName = typeof(THub).Name; } - public async Task Process(HttpContext context, string hubName) + public async Task Process(HttpContext context) { - var claims = BuildClaims(context, hubName); + var claims = BuildClaims(context); var request = context.Request; var cultureName = context.Features.Get()?.RequestCulture.Culture.Name; var originalPath = GetOriginalPath(request.Path); - var provider = _endpointManager.GetEndpointProvider(_router.GetNegotiateEndpoint(context, _endpointManager.GetEndpoints(hubName))); + var provider = _endpointManager.GetEndpointProvider(_router.GetNegotiateEndpoint(context, _endpointManager.GetEndpoints(_hubName))); if (provider == null) { @@ -71,8 +80,8 @@ public async Task Process(HttpContext context, string hubNa return new NegotiationResponse { - Url = provider.GetClientEndpoint(hubName, originalPath, queryString), - AccessToken = await provider.GenerateClientAccessTokenAsync(hubName, claims), + Url = provider.GetClientEndpoint(_hubName, originalPath, queryString), + AccessToken = await provider.GenerateClientAccessTokenAsync(_hubName, claims), // Need to set this even though it's technically protocol violation https://github.com/aspnet/SignalR/issues/2133 AvailableTransports = new List() }; @@ -97,12 +106,12 @@ private string GetQueryString(string originalQueryString, string cultureName) : queryString; } - private IEnumerable BuildClaims(HttpContext context, string hubName) + private IEnumerable BuildClaims(HttpContext context) { // Make sticky mode required if detect using blazor - var mode = _blazorDetector.IsBlazor(hubName) ? ServerStickyMode.Required : _mode; + var mode = _blazorDetector.IsBlazor(_hubName) ? ServerStickyMode.Required : _mode; var userId = _userIdProvider.GetUserId(new ServiceHubConnectionContext(context)); - return ClaimsUtility.BuildJwtClaims(context.User, userId, GetClaimsProvider(context), _serverName, mode, _enableDetailedErrors, _endpointsCount, _maxPollInterval, IsDiagnosticClient(context)).ToList(); + return ClaimsUtility.BuildJwtClaims(context.User, userId, GetClaimsProvider(context), _serverName, mode, _enableDetailedErrors, _endpointsCount, _maxPollInterval, IsDiagnosticClient(context), _customHandshakeTimeout).ToList(); } private Func> GetClaimsProvider(HttpContext context) @@ -120,6 +129,35 @@ private bool IsDiagnosticClient(HttpContext context) return _diagnosticClientFilter != null && _diagnosticClientFilter(context); } + private int GetCustomHandshakeTimeout(TimeSpan? handshakeTimeout) + { + if (!handshakeTimeout.HasValue) + { + Log.UseDefaultHandshakeTimeout(_logger); + return Constants.Periods.DefaultHandshakeTimeout; + } + + var timeout = (int)handshakeTimeout.Value.TotalSeconds; + + // use default handshake timeout + if (timeout == Constants.Periods.DefaultHandshakeTimeout) + { + Log.UseDefaultHandshakeTimeout(_logger); + return Constants.Periods.DefaultHandshakeTimeout; + } + + // the custom handshake timeout is invalid, use default hanshake timeout instead + if (timeout <= 0 || timeout > Constants.Periods.MaxCustomHandshakeTimeout) + { + Log.FailToSetCustomHandshakeTimeout(_logger, new ArgumentOutOfRangeException(nameof(handshakeTimeout))); + return Constants.Periods.DefaultHandshakeTimeout; + } + + // the custom handshake timeout is valid + Log.SucceedToSetCustomHandshakeTimeout(_logger, timeout); + return timeout; + } + private static string GetOriginalPath(string path) { path = path.TrimEnd('/'); @@ -127,5 +165,32 @@ private static string GetOriginalPath(string path) ? path.Substring(0, path.Length - Constants.Path.Negotiate.Length) : string.Empty; } + + private static class Log + { + private static readonly Action _useDefaultHandshakeTimeout = + LoggerMessage.Define(LogLevel.Information, new EventId(0, "UseDefaultHandshakeTimeout"), "Use default handshake timeout."); + + private static readonly Action _succeedToSetCustomHandshakeTimeout = + LoggerMessage.Define(LogLevel.Information, new EventId(1, "SucceedToSetCustomHandshakeTimeout"), "Succeed to set custom handshake timeout: {timeout} seconds."); + + private static readonly Action _failToSetCustomHandshakeTimeout = + LoggerMessage.Define(LogLevel.Warning, new EventId(2, "FailToSetCustomHandshakeTimeout"), $"Fail to set custom handshake timeout, use default handshake timeout {Constants.Periods.DefaultHandshakeTimeout} seconds instead. The range of custom handshake timeout should between 1 second to {Constants.Periods.MaxCustomHandshakeTimeout} seconds."); + + public static void UseDefaultHandshakeTimeout(ILogger logger) + { + _useDefaultHandshakeTimeout(logger, null); + } + + public static void SucceedToSetCustomHandshakeTimeout(ILogger logger, int customHandshakeTimeout) + { + _succeedToSetCustomHandshakeTimeout(logger, customHandshakeTimeout, null); + } + + public static void FailToSetCustomHandshakeTimeout(ILogger logger, Exception exception) + { + _failToSetCustomHandshakeTimeout(logger, exception); + } + } } } diff --git a/src/Microsoft.Azure.SignalR/ServiceRouteBuilder.cs b/src/Microsoft.Azure.SignalR/ServiceRouteBuilder.cs index 911acd09f..2e0be940e 100644 --- a/src/Microsoft.Azure.SignalR/ServiceRouteBuilder.cs +++ b/src/Microsoft.Azure.SignalR/ServiceRouteBuilder.cs @@ -45,7 +45,7 @@ public void MapHub(PathString path) where THub : Hub { // Get auth attributes var authorizationData = AuthorizeHelper.BuildAuthorizePolicy(typeof(THub)); - _routes.MapRoute(path + Constants.Path.Negotiate, c => ServiceRouteHelper.RedirectToService(c, typeof(THub).Name, authorizationData)); + _routes.MapRoute(path + Constants.Path.Negotiate, c => ServiceRouteHelper.RedirectToService(c, authorizationData)); Start(); } diff --git a/src/Microsoft.Azure.SignalR/Startup/NegotiateMatcherPolicy.cs b/src/Microsoft.Azure.SignalR/Startup/NegotiateMatcherPolicy.cs index ee58a7892..619a1ae13 100644 --- a/src/Microsoft.Azure.SignalR/Startup/NegotiateMatcherPolicy.cs +++ b/src/Microsoft.Azure.SignalR/Startup/NegotiateMatcherPolicy.cs @@ -5,6 +5,7 @@ using System; using System.Collections.Concurrent; using System.Collections.Generic; +using System.Reflection; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Connections; @@ -16,9 +17,11 @@ namespace Microsoft.Azure.SignalR { internal class NegotiateMatcherPolicy : MatcherPolicy, IEndpointSelectorPolicy { + private static readonly MethodInfo _createNegotiateEndpointCoreMethodInfo = typeof(NegotiateMatcherPolicy).GetMethod(nameof(CreateNegotiateEndpointCore), BindingFlags.NonPublic | BindingFlags.Static); + // This caches the replacement endpoints for negotiate so they are not recomputed on every request private readonly ConcurrentDictionary _negotiateEndpointCache = new ConcurrentDictionary(); - + public override int Order => 1; public bool AppliesToEndpoints(IReadOnlyList endpoints) @@ -49,7 +52,7 @@ public Task ApplyAsync(HttpContext httpContext, CandidateSet candidates) // skip endpoint not apply hub. if (hubMetadata != null) { - var newEndpoint = _negotiateEndpointCache.GetOrAdd(hubMetadata.HubType, e => CreateNegotiateEndpoint(routeEndpoint)); + var newEndpoint = _negotiateEndpointCache.GetOrAdd(hubMetadata.HubType, CreateNegotiateEndpoint(hubMetadata.HubType, routeEndpoint)); candidates.ReplaceEndpoint(i, newEndpoint, candidate.Values); } @@ -59,14 +62,23 @@ public Task ApplyAsync(HttpContext httpContext, CandidateSet candidates) return Task.CompletedTask; } - private Endpoint CreateNegotiateEndpoint(RouteEndpoint routeEndpoint) + private Func CreateNegotiateEndpoint(Type hubType, RouteEndpoint routeEndpoint) + { + var genericMethodInfo = _createNegotiateEndpointCoreMethodInfo.MakeGenericMethod(hubType); + return type => + { + return (Endpoint)genericMethodInfo.Invoke(this, new object[] { routeEndpoint }); + }; + } + + private static Endpoint CreateNegotiateEndpointCore(RouteEndpoint routeEndpoint) where THub : Hub { var hubMetadata = routeEndpoint.Metadata.GetMetadata(); // Replaces the negotiate endpoint with one that does the service redirect var routeEndpointBuilder = new RouteEndpointBuilder(async context => { - await ServiceRouteHelper.RedirectToService(context, hubMetadata.HubType.Name, null); + await ServiceRouteHelper.RedirectToService(context, null); }, routeEndpoint.RoutePattern, routeEndpoint.Order); diff --git a/src/Microsoft.Azure.SignalR/Utilities/ServiceRouteHelper.cs b/src/Microsoft.Azure.SignalR/Utilities/ServiceRouteHelper.cs index b0deef3eb..230eb5ac3 100644 --- a/src/Microsoft.Azure.SignalR/Utilities/ServiceRouteHelper.cs +++ b/src/Microsoft.Azure.SignalR/Utilities/ServiceRouteHelper.cs @@ -7,6 +7,7 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Connections; +using Microsoft.AspNetCore.SignalR; using Microsoft.Azure.SignalR.Common; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; @@ -15,9 +16,9 @@ namespace Microsoft.Azure.SignalR { internal class ServiceRouteHelper { - public static async Task RedirectToService(HttpContext context, string hubName, IList authorizationData) + public static async Task RedirectToService(HttpContext context, IList authorizationData) where THub : Hub { - var handler = context.RequestServices.GetRequiredService(); + var handler = context.RequestServices.GetRequiredService>(); var loggerFactory = context.RequestServices.GetService(); var logger = loggerFactory.CreateLogger(); @@ -29,7 +30,7 @@ public static async Task RedirectToService(HttpContext context, string hubName, NegotiationResponse negotiateResponse = null; try { - negotiateResponse = await handler.Process(context, hubName); + negotiateResponse = await handler.Process(context); if (context.Response.HasStarted) { diff --git a/test/Microsoft.Azure.SignalR.Common.Tests/ClaimsUtilityTests.cs b/test/Microsoft.Azure.SignalR.Common.Tests/ClaimsUtilityTests.cs index 1cbf6bf9f..49141a480 100644 --- a/test/Microsoft.Azure.SignalR.Common.Tests/ClaimsUtilityTests.cs +++ b/test/Microsoft.Azure.SignalR.Common.Tests/ClaimsUtilityTests.cs @@ -2,7 +2,6 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; -using System.Collections; using System.Collections.Generic; using System.Linq; using System.Security.Claims; diff --git a/test/Microsoft.Azure.SignalR.Tests/AddAzureSignalRFacts.cs b/test/Microsoft.Azure.SignalR.Tests/AddAzureSignalRFacts.cs index f66a3a5b2..e398df6ee 100644 --- a/test/Microsoft.Azure.SignalR.Tests/AddAzureSignalRFacts.cs +++ b/test/Microsoft.Azure.SignalR.Tests/AddAzureSignalRFacts.cs @@ -3,14 +3,18 @@ using System; using System.Collections.Generic; +using System.IdentityModel.Tokens.Jwt; using System.IO; using System.Linq; +using System.Security.Claims; using System.Threading.Tasks; +using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; using Microsoft.Azure.SignalR.Common; using Microsoft.Azure.SignalR.Tests.Common; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Newtonsoft.Json; @@ -500,5 +504,61 @@ public async Task AddAzureSignalRHotReloadConfigValue() Assert.Single(manager.Endpoints.Where(x => x.Value.ConnectionString == customeCS)); } } + + [Fact] + public async Task AddAzureSignalRWithCustomHandshakeTimeout() + { + // set custom handshake timeout in global hub options + var claims = await GetClaims(sc => sc.AddSignalR(o => o.HandshakeTimeout = TimeSpan.FromSeconds(1)).AddAzureSignalR()); + Assert.Contains(claims, c => c.Type == Constants.ClaimType.CustomHandshakeTimeout && c.Value == "1"); + + // set custom handshake timeout in particular hub options to override the settings in global hub options + claims = await GetClaims(sc => sc.AddSignalR(o => o.HandshakeTimeout = TimeSpan.FromSeconds(1)).AddHubOptions(o => o.HandshakeTimeout = TimeSpan.FromSeconds(2)).AddAzureSignalR()); + Assert.Contains(claims, c => c.Type == Constants.ClaimType.CustomHandshakeTimeout && c.Value == "2"); + + // no custom timeout + claims = await GetClaims(sc => sc.AddSignalR().AddAzureSignalR()); + Assert.DoesNotContain(claims, c => c.Type == Constants.ClaimType.CustomHandshakeTimeout); + + // invalid timeout: larger than 30s + claims = await GetClaims(sc => sc.AddSignalR(o => o.HandshakeTimeout = TimeSpan.FromSeconds(31)).AddAzureSignalR()); + Assert.DoesNotContain(claims, c => c.Type == Constants.ClaimType.CustomHandshakeTimeout); + + // invalid timeout: smaller than 1s + claims = await GetClaims(sc => sc.AddSignalR(o => o.HandshakeTimeout = TimeSpan.FromSeconds(0)).AddAzureSignalR()); + Assert.DoesNotContain(claims, c => c.Type == Constants.ClaimType.CustomHandshakeTimeout); + } + + private static async Task> GetClaims(Action addSignalR) + { + var config = new ConfigurationBuilder() + .AddInMemoryCollection(new Dictionary + { + {"Azure:SignalR:ConnectionString", "Endpoint=http://localhost;AccessKey=ABCDEFGHIJKLMNOPQR55555555012345678933333333;Version=1.0;"} + }) + .Build(); + + var services = new ServiceCollection(); + addSignalR(services); + + var sp = services + .AddLogging() + .AddSingleton(new EmptyApplicationLifetime()) + .AddSingleton(config) + .BuildServiceProvider(); + + var app = new ApplicationBuilder(sp); + app.UseRouting(); + app.UseEndpoints(routes => + { + routes.MapHub("/chat"); + }); + + var h = sp.GetRequiredService>(); + var r = await h.Process(new DefaultHttpContext()); + var jwtSecurityTokenHandler = new JwtSecurityTokenHandler(); + var t = jwtSecurityTokenHandler.ReadJwtToken(r.AccessToken); + return t.Claims; + } } } \ No newline at end of file diff --git a/test/Microsoft.Azure.SignalR.Tests/NegotiateHandlerFacts.cs b/test/Microsoft.Azure.SignalR.Tests/NegotiateHandlerFacts.cs index 4615cebf0..b2636894e 100644 --- a/test/Microsoft.Azure.SignalR.Tests/NegotiateHandlerFacts.cs +++ b/test/Microsoft.Azure.SignalR.Tests/NegotiateHandlerFacts.cs @@ -14,6 +14,7 @@ using System.Security.Claims; using System.Text; using System.Threading.Tasks; +using Castle.DynamicProxy.Generators.Emitters.SimpleAST; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Features; using Microsoft.AspNetCore.Localization; @@ -69,8 +70,8 @@ public async Task GenerateNegotiateResponseWithUserId(Type type, string expected })) }; - var handler = serviceProvider.GetRequiredService(); - var negotiateResponse = await handler.Process(httpContext, "hub"); + var handler = serviceProvider.GetRequiredService>(); + var negotiateResponse = await handler.Process(httpContext); Assert.NotNull(negotiateResponse); Assert.StartsWith("http://redirect/client/?hub=hub", negotiateResponse.Url); @@ -98,7 +99,7 @@ public async Task GenerateNegotiateResponseWithDiagnosticClient() { o.ConnectionString = DefaultConnectionString; o.AccessTokenLifetime = TimeSpan.FromDays(1); - o.DiagnosticClientFilter = ctx => { return ctx.Request.Query["diag"].FirstOrDefault() != default; } ; + o.DiagnosticClientFilter = ctx => { return ctx.Request.Query["diag"].FirstOrDefault() != default; }; }) .Services .AddLogging() @@ -107,8 +108,8 @@ public async Task GenerateNegotiateResponseWithDiagnosticClient() var httpContext = new DefaultHttpContext(); httpContext.Request.QueryString = new QueryString("?diag"); - var handler = serviceProvider.GetRequiredService(); - var negotiateResponse = await handler.Process(httpContext, "hub"); + var handler = serviceProvider.GetRequiredService>(); + var negotiateResponse = await handler.Process(httpContext); Assert.NotNull(negotiateResponse); Assert.NotNull(negotiateResponse.AccessToken); @@ -151,8 +152,8 @@ public async Task GenerateNegotiateResponseWithUserIdAndServerSticky() })) }; - var handler = serviceProvider.GetRequiredService(); - var negotiateResponse = await handler.Process(httpContext, "hub"); + var handler = serviceProvider.GetRequiredService>(); + var negotiateResponse = await handler.Process(httpContext); Assert.NotNull(negotiateResponse); Assert.NotNull(negotiateResponse.Url); @@ -198,8 +199,8 @@ public async Task GenerateNegotiateResponseWithPathAndQuery(string path, string features.Set(requestFeature); var httpContext = new DefaultHttpContext(features); - var handler = serviceProvider.GetRequiredService(); - var negotiateResponse = await handler.Process(httpContext, "chat"); + var handler = serviceProvider.GetRequiredService>(); + var negotiateResponse = await handler.Process(httpContext); Assert.NotNull(negotiateResponse); Assert.EndsWith($"?hub=chat&{expectedQueryString}", negotiateResponse.Url); @@ -231,8 +232,8 @@ public async Task GenerateNegotiateResponseWithAppName(string appName, string id features.Set(requestFeature); var httpContext = new DefaultHttpContext(features); - var handler = serviceProvider.GetRequiredService(); - var negotiateResponse = await handler.Process(httpContext, "chat"); + var handler = serviceProvider.GetRequiredService>(); + var negotiateResponse = await handler.Process(httpContext); Assert.NotNull(negotiateResponse); Assert.EndsWith(expectedResponse, negotiateResponse.Url); @@ -254,13 +255,13 @@ public async Task CustomUserIdProviderAccessUnavailablePropertyThrowsException(T .AddSingleton(typeof(IUserIdProvider), type) .BuildServiceProvider(); - var handler = serviceProvider.GetRequiredService(); + var handler = serviceProvider.GetRequiredService>(); var httpContext = new DefaultHttpContext { User = new ClaimsPrincipal() }; - var exception = await Assert.ThrowsAsync(async () => await handler.Process(httpContext, "hub")); + var exception = await Assert.ThrowsAsync(async () => await handler.Process(httpContext)); Assert.Equal(errorMessage, exception.Message); } @@ -298,8 +299,8 @@ public async Task TestNegotiateHandlerWithMultipleEndpointsAndCustomerRouterAndA features.Set(requestFeature); var httpContext = new DefaultHttpContext(features); - var handler = serviceProvider.GetRequiredService(); - var negotiateResponse = await handler.Process(httpContext, "chat"); + var handler = serviceProvider.GetRequiredService>(); + var negotiateResponse = await handler.Process(httpContext); Assert.NotNull(negotiateResponse); Assert.Equal($"http://localhost3/client/?hub=testprefix_chat&asrs.op=%2Fuser%2Fpath&endpoint=chosen&asrs_request_id=a", negotiateResponse.Url); @@ -335,8 +336,8 @@ public async Task TestNegotiateHandlerWithMultipleEndpointsAndCustomRouter() features.Set(requestFeature); var httpContext = new DefaultHttpContext(features); - var handler = serviceProvider.GetRequiredService(); - var negotiateResponse = await handler.Process(httpContext, "chat"); + var handler = serviceProvider.GetRequiredService>(); + var negotiateResponse = await handler.Process(httpContext); Assert.NotNull(negotiateResponse); Assert.Equal($"http://localhost3/client/?hub=chat&asrs.op=%2Fuser%2Fpath&endpoint=chosen&asrs_request_id=a", negotiateResponse.Url); @@ -352,8 +353,8 @@ public async Task TestNegotiateHandlerWithMultipleEndpointsAndCustomRouter() features.Set(responseFeature); httpContext = new DefaultHttpContext(features); - handler = serviceProvider.GetRequiredService(); - negotiateResponse = await handler.Process(httpContext, "chat"); + handler = serviceProvider.GetRequiredService>(); + negotiateResponse = await handler.Process(httpContext); Assert.Null(negotiateResponse); @@ -371,8 +372,8 @@ public async Task TestNegotiateHandlerWithMultipleEndpointsAndCustomRouter() features.Set(responseFeature); httpContext = new DefaultHttpContext(features); - handler = serviceProvider.GetRequiredService(); - await Assert.ThrowsAsync(() => handler.Process(httpContext, "chat")); + handler = serviceProvider.GetRequiredService>(); + await Assert.ThrowsAsync(() => handler.Process(httpContext)); } [Fact] @@ -406,8 +407,8 @@ public async Task TestNegotiateHandlerRespectClientRequestCulture() var httpContext = new DefaultHttpContext(features); - var handler = serviceProvider.GetRequiredService(); - var negotiateResponse = await handler.Process(httpContext, "hub"); + var handler = serviceProvider.GetRequiredService>(); + var negotiateResponse = await handler.Process(httpContext); var queryContainsCulture = negotiateResponse.Url.Contains($"{Constants.QueryParameter.RequestCulture}=ar-SA"); Assert.True(queryContainsCulture); @@ -431,7 +432,7 @@ public void TestInvalidDisconnectTimeoutThrowsAfterBuild(int maxPollInterval) .AddSingleton(config) .BuildServiceProvider(); - Assert.Throws(() => serviceProvider.GetRequiredService()); + Assert.Throws(() => serviceProvider.GetRequiredService>()); } [Theory] @@ -463,8 +464,8 @@ public async Task TestNegotiateHandlerResponseContainsValidMaxPollInterval(int m features.Set(responseFeature); var httpContext = new DefaultHttpContext(features); - var handler = serviceProvider.GetRequiredService(); - var response = await handler.Process(httpContext, "chat"); + var handler = serviceProvider.GetRequiredService>(); + var response = await handler.Process(httpContext); Assert.Equal(200, responseFeature.StatusCode); @@ -478,7 +479,7 @@ public async Task TestNegotiateHandlerResponseContainsValidMaxPollInterval(int m [InlineData(false)] public async Task TestNegotiateHandlerServerStickyRespectBlazor(bool isBlazor) { - var hubName = nameof(TestNegotiateHandlerServerStickyRespectBlazor); + var hubName = typeof(Chat).Name; var blazorDetector = new DefaultBlazorDetector(); var config = new ConfigurationBuilder().Build(); var serviceProvider = new ServiceCollection() @@ -507,8 +508,8 @@ public async Task TestNegotiateHandlerServerStickyRespectBlazor(bool isBlazor) })) }; - var handler = serviceProvider.GetRequiredService(); - var negotiateResponse = await handler.Process(httpContext, hubName); + var handler = serviceProvider.GetRequiredService>(); + var negotiateResponse = await handler.Process(httpContext); Assert.NotNull(negotiateResponse); Assert.NotNull(negotiateResponse.Url); @@ -596,6 +597,10 @@ private class ProtocolUserIdProvider : IUserIdProvider { public string GetUserId(HubConnectionContext connection) => connection.Protocol.Name; } + + private sealed class Chat : Hub + { + } } } From 1dcfaab8ee90f9a18f96f9bdb7f0a25ab72a8d70 Mon Sep 17 00:00:00 2001 From: yzt Date: Tue, 17 Nov 2020 16:10:40 +0800 Subject: [PATCH 10/18] Add singleton factories to create instance per hub in management SDK (#1070) * Allow customization of the setup of options * Add singleton factories to create instance per hub in management SDK --- .../RestClients/RestClientFactory.cs | 13 +- .../ServiceManagerOptionsSetup.cs | 2 +- .../DependencyInjectionExtensions.cs | 66 ++++++++-- ...MultiEndpointConnectionContainerFactory.cs | 40 ++++++ .../ServiceHubContextFactory.cs | 33 +++++ .../ServiceHubLifetimeManagerFactory.cs | 50 ++++++++ .../ManagementConnectionFactory.cs | 7 +- .../ServiceManager.cs | 118 ++---------------- .../ServiceManagerBuilder.cs | 17 ++- .../DependencyInjectionExtensions.cs | 19 ++- .../RestClients/RestClientBuilderFacts.cs | 2 +- .../Management/ServiceHubContextE2EFacts.cs | 7 +- .../Management/ServiceManagerE2EFacts.cs | 6 +- .../ServiceManagerFacts.cs | 96 +++++++------- 14 files changed, 273 insertions(+), 203 deletions(-) create mode 100644 src/Microsoft.Azure.SignalR.Management/HubInstanceFactories/MultiEndpointConnectionContainerFactory.cs create mode 100644 src/Microsoft.Azure.SignalR.Management/HubInstanceFactories/ServiceHubContextFactory.cs create mode 100644 src/Microsoft.Azure.SignalR.Management/HubInstanceFactories/ServiceHubLifetimeManagerFactory.cs diff --git a/src/Microsoft.Azure.SignalR.Common/RestClients/RestClientFactory.cs b/src/Microsoft.Azure.SignalR.Common/RestClients/RestClientFactory.cs index 8409b49f6..0b8418a55 100644 --- a/src/Microsoft.Azure.SignalR.Common/RestClients/RestClientFactory.cs +++ b/src/Microsoft.Azure.SignalR.Common/RestClients/RestClientFactory.cs @@ -3,7 +3,6 @@ using System; using System.Net.Http; -using Microsoft.Extensions.DependencyInjection; namespace Microsoft.Azure.SignalR { @@ -13,21 +12,13 @@ internal class RestClientFactory private readonly string _userAgent; private readonly string _serverName; - internal RestClientFactory(string userAgent) + public RestClientFactory(string userAgent, IHttpClientFactory httpClientFactory) { - var serviceCollection = new ServiceCollection() - .AddHttpClient(); - _httpClientFactory = serviceCollection.BuildServiceProvider().GetRequiredService(); + _httpClientFactory = httpClientFactory; _userAgent = userAgent; _serverName = RestApiAccessTokenGenerator.GenerateServerName(); } - protected RestClientFactory(string userAgent, IHttpClientFactory httpClientFactory) - { - _userAgent = userAgent; - _httpClientFactory = httpClientFactory; - } - protected virtual HttpClient CreateHttpClient() => _httpClientFactory.CreateClient(); internal SignalRServiceRestClient Create(ServiceEndpoint endpoint) diff --git a/src/Microsoft.Azure.SignalR.Management/Configuration/ServiceManagerOptionsSetup.cs b/src/Microsoft.Azure.SignalR.Management/Configuration/ServiceManagerOptionsSetup.cs index 6a26d3511..4b25d28c4 100644 --- a/src/Microsoft.Azure.SignalR.Management/Configuration/ServiceManagerOptionsSetup.cs +++ b/src/Microsoft.Azure.SignalR.Management/Configuration/ServiceManagerOptionsSetup.cs @@ -6,7 +6,7 @@ using Microsoft.Extensions.Options; using Microsoft.Extensions.Primitives; -namespace Microsoft.Azure.SignalR.Management.Configuration +namespace Microsoft.Azure.SignalR.Management { internal class ServiceManagerOptionsSetup : IConfigureOptions, IOptionsChangeTokenSource { diff --git a/src/Microsoft.Azure.SignalR.Management/DependencyInjectionExtensions.cs b/src/Microsoft.Azure.SignalR.Management/DependencyInjectionExtensions.cs index 3587ff241..44ebf342c 100644 --- a/src/Microsoft.Azure.SignalR.Management/DependencyInjectionExtensions.cs +++ b/src/Microsoft.Azure.SignalR.Management/DependencyInjectionExtensions.cs @@ -2,8 +2,11 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.ComponentModel; +using System.Net.Http; using System.Reflection; -using Microsoft.Azure.SignalR.Management.Configuration; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Connections; +using Microsoft.AspNetCore.SignalR; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; @@ -16,17 +19,7 @@ namespace Microsoft.Azure.SignalR.Management /// public static IServiceCollection AddSignalRServiceManager(this IServiceCollection services) { - services.AddSingleton() - .AddSingleton>(sp => sp.GetService()) - .AddSingleton>(sp => sp.GetService()); - services.PostConfigure(o => o.ValidateOptions()); - services.AddSingleton() - .AddSingleton>(sp => sp.GetService()) - .AddSingleton>(sp => sp.GetService()); - services.AddSingleton() - .AddSingleton>(sp => sp.GetService()) - .AddSingleton>(sp => sp.GetService()); - return services.TrySetProductInfo(); + return services.AddSignalRServiceManager(); } /// @@ -38,6 +31,43 @@ public static IServiceCollection AddSignalRServiceManager(this IServiceCollectio return services.AddSignalRServiceManager(); } + /// + /// Adds the essential SignalR Service Manager services to the specified services collection. + /// + /// Designed for Azure Function extension where the setup of is different from SDK + /// The type of class used to setup . + [EditorBrowsable(EditorBrowsableState.Never)] + public static IServiceCollection AddSignalRServiceManager(this IServiceCollection services) where TOptionsSetup : class, IConfigureOptions, IOptionsChangeTokenSource + { + //cascade options setup + services.AddSingleton() + .AddSingleton>(sp => sp.GetService()) + .AddSingleton>(sp => sp.GetService()); + services.PostConfigure(o => o.ValidateOptions()); + services.AddSingleton() + .AddSingleton>(sp => sp.GetService()) + .AddSingleton>(sp => sp.GetService()); + + services.AddSignalR() + .AddAzureSignalR(); + + //add dependencies for persistent mode only + services + .AddSingleton() + .AddSingleton() + .AddSingleton((connectionContext) => Task.CompletedTask) + .AddSingleton() + .AddSingleton() + .AddSingleton, ManagementHubOptionsSetup>(); + + services.AddLogging() + .AddSingleton() + .AddSingleton(); + services.AddSingleton(); + services.AddRestClientFactory(); + return services.TrySetProductInfo(); + } + /// /// Adds product info to /// @@ -53,7 +83,17 @@ private static IServiceCollection TrySetProductInfo(this IServiceCollection serv { var assembly = Assembly.GetExecutingAssembly(); var productInfo = ProductInfo.GetProductInfo(assembly); - return services.Configure(o => o.ProductInfo = o.ProductInfo ?? productInfo); + return services.Configure(o => o.ProductInfo ??= productInfo); } + + private static IServiceCollection AddRestClientFactory(this IServiceCollection services) => services + .AddHttpClient() + .AddSingleton(sp => + { + var options = sp.GetRequiredService>().Value; + var productInfo = options.ProductInfo; + var httpClientFactory = sp.GetRequiredService(); + return new RestClientFactory(productInfo, httpClientFactory); + }); } } \ No newline at end of file diff --git a/src/Microsoft.Azure.SignalR.Management/HubInstanceFactories/MultiEndpointConnectionContainerFactory.cs b/src/Microsoft.Azure.SignalR.Management/HubInstanceFactories/MultiEndpointConnectionContainerFactory.cs new file mode 100644 index 000000000..97c0ae1d2 --- /dev/null +++ b/src/Microsoft.Azure.SignalR.Management/HubInstanceFactories/MultiEndpointConnectionContainerFactory.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; +using Microsoft.Azure.SignalR.Common; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Options; + +namespace Microsoft.Azure.SignalR.Management +{ + internal class MultiEndpointConnectionContainerFactory + { + private readonly IServiceConnectionFactory _connectionFactory; + private readonly ILoggerFactory _loggerFactory; + private readonly IServiceEndpointManager _endpointManager; + private readonly int _connectionCount; + private readonly IEndpointRouter _router; + + public MultiEndpointConnectionContainerFactory(IServiceConnectionFactory connectionFactory, ILoggerFactory loggerFactory, IServiceEndpointManager serviceEndpointManager, IOptions options, IEndpointRouter router = null) + { + _connectionFactory = connectionFactory; + _loggerFactory = loggerFactory; + _endpointManager = serviceEndpointManager; + _connectionCount = options.Value.ConnectionCount; + _router = router; + } + + public MultiEndpointServiceConnectionContainer Create(string hubName, ILoggerFactory loggerFactoryPerHub = null) + { + var loggerFactory = loggerFactoryPerHub ?? _loggerFactory; + return new MultiEndpointServiceConnectionContainer( + hubName, + endpoint => new WeakServiceConnectionContainer(_connectionFactory, _connectionCount, endpoint, loggerFactory.CreateLogger()), + _endpointManager, + _router, + loggerFactory); + } + } +} \ No newline at end of file diff --git a/src/Microsoft.Azure.SignalR.Management/HubInstanceFactories/ServiceHubContextFactory.cs b/src/Microsoft.Azure.SignalR.Management/HubInstanceFactories/ServiceHubContextFactory.cs new file mode 100644 index 000000000..f316500d8 --- /dev/null +++ b/src/Microsoft.Azure.SignalR.Management/HubInstanceFactories/ServiceHubContextFactory.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System.Threading; +using System.Threading.Tasks; +using Microsoft.AspNetCore.SignalR; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging; + +namespace Microsoft.Azure.SignalR.Management +{ + internal class ServiceHubContextFactory + { + private readonly ServiceHubLifetimeManagerFactory _managerFactory; + + public ServiceHubContextFactory(ServiceHubLifetimeManagerFactory managerFactory) + { + _managerFactory = managerFactory; + } + + public async Task CreateAsync(string hubName, ILoggerFactory loggerFactory = null, CancellationToken cancellationToken = default) + { + var manager = await _managerFactory.CreateAsync(hubName, cancellationToken, loggerFactory); + var servicesPerHub = new ServiceCollection(); + servicesPerHub.AddSignalRCore(); + servicesPerHub.AddSingleton((HubLifetimeManager)manager); + var serviceProviderPerHub = servicesPerHub.BuildServiceProvider(); + // The impl of IHubContext we want is an internal class. We can only get it by this way. + var hubContext = serviceProviderPerHub.GetRequiredService>(); + return new ServiceHubContext(hubContext, manager, serviceProviderPerHub); + } + } +} \ No newline at end of file diff --git a/src/Microsoft.Azure.SignalR.Management/HubInstanceFactories/ServiceHubLifetimeManagerFactory.cs b/src/Microsoft.Azure.SignalR.Management/HubInstanceFactories/ServiceHubLifetimeManagerFactory.cs new file mode 100644 index 000000000..87876b345 --- /dev/null +++ b/src/Microsoft.Azure.SignalR.Management/HubInstanceFactories/ServiceHubLifetimeManagerFactory.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; +using System.ComponentModel; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Microsoft.AspNetCore.SignalR; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Options; + +namespace Microsoft.Azure.SignalR.Management +{ + internal class ServiceHubLifetimeManagerFactory + { + private readonly IServiceProvider _serviceProvider; + private readonly MultiEndpointConnectionContainerFactory _connectionContainerFactory; + private readonly ServiceManagerContext _context; + + public ServiceHubLifetimeManagerFactory(IServiceProvider sp, IOptions context, MultiEndpointConnectionContainerFactory connectionContainerFactory) + { + _serviceProvider = sp; + _connectionContainerFactory = connectionContainerFactory; + _context = context.Value; + } + + public async Task CreateAsync(string hubName, CancellationToken cancellationToken, ILoggerFactory loggerFactoryPerHub = null) + { + switch (_context.ServiceTransportType) + { + case ServiceTransportType.Persistent: + { + var container = _connectionContainerFactory.Create(hubName, loggerFactoryPerHub); + var connectionManager = new ServiceConnectionManager(); + connectionManager.SetServiceConnection(container); + _ = connectionManager.StartAsync(); + await container.ConnectionInitializedTask.OrTimeout(cancellationToken); + return loggerFactoryPerHub == null ? ActivatorUtilities.CreateInstance>(_serviceProvider, connectionManager) : ActivatorUtilities.CreateInstance>(_serviceProvider, connectionManager, loggerFactoryPerHub); + } + case ServiceTransportType.Transient: + { + return new RestHubLifetimeManager(hubName, _context.ServiceEndpoints.Single(), _context.ProductInfo, _context.ApplicationName); + } + default: throw new InvalidEnumArgumentException(nameof(ServiceManagerContext.ServiceTransportType), (int)_context.ServiceTransportType, typeof(ServiceTransportType)); + } + } + } +} \ No newline at end of file diff --git a/src/Microsoft.Azure.SignalR.Management/ManagementConnectionFactory.cs b/src/Microsoft.Azure.SignalR.Management/ManagementConnectionFactory.cs index d10b65115..95eea6878 100644 --- a/src/Microsoft.Azure.SignalR.Management/ManagementConnectionFactory.cs +++ b/src/Microsoft.Azure.SignalR.Management/ManagementConnectionFactory.cs @@ -5,17 +5,18 @@ using System.Threading; using System.Threading.Tasks; using Microsoft.AspNetCore.Connections; +using Microsoft.Extensions.Options; namespace Microsoft.Azure.SignalR.Management { internal class ManagementConnectionFactory : IConnectionFactory { private readonly string _productInfo; - private readonly IConnectionFactory _connectionFactory; + private readonly ConnectionFactory _connectionFactory; - public ManagementConnectionFactory(string productInfo, IConnectionFactory connectionFactory) + public ManagementConnectionFactory(IOptions context, ConnectionFactory connectionFactory) { - _productInfo = productInfo; + _productInfo = context.Value.ProductInfo; _connectionFactory = connectionFactory; } diff --git a/src/Microsoft.Azure.SignalR.Management/ServiceManager.cs b/src/Microsoft.Azure.SignalR.Management/ServiceManager.cs index a9792f358..470179580 100644 --- a/src/Microsoft.Azure.SignalR.Management/ServiceManager.cs +++ b/src/Microsoft.Azure.SignalR.Management/ServiceManager.cs @@ -7,14 +7,8 @@ using System.Security.Claims; using System.Threading; using System.Threading.Tasks; -using Microsoft.AspNetCore.Connections; -using Microsoft.AspNetCore.SignalR; -using Microsoft.Azure.SignalR.Common; using Microsoft.Azure.SignalR.Common.RestClients; -using Microsoft.Azure.SignalR.Protocol; -using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; -using Microsoft.Extensions.Logging.Abstractions; using Microsoft.Extensions.Options; using Microsoft.Rest; @@ -25,127 +19,37 @@ internal class ServiceManager : IServiceManager private readonly ServiceEndpointProvider _endpointProvider; private readonly IServerNameProvider _serverNameProvider; private readonly ServiceEndpoint _endpoint; - private readonly string _productInfo; - private readonly ServiceManagerContext _context; private readonly RestClientFactory _restClientFactory; + private readonly ServiceHubContextFactory _serviceHubContextFactory; private readonly IServiceProvider _serviceProvider; + private readonly bool _disposeServiceProvider; - internal ServiceManager(ServiceManagerContext context, RestClientFactory restClientFactory, IServiceProvider serviceProvider) + public ServiceManager(IOptions context, RestClientFactory restClientFactory, ServiceHubContextFactory serviceHubContextFactory, IServiceProvider serviceProvider) { - _endpoint = context.ServiceEndpoints.Single();//temp solution + _endpoint = context.Value.ServiceEndpoints.Single();//temp solution _serverNameProvider = new DefaultServerNameProvider(); var serviceOptions = Options.Create(new ServiceOptions { - ApplicationName = context.ApplicationName, - Proxy = context.Proxy + ApplicationName = context.Value.ApplicationName, + Proxy = context.Value.Proxy }).Value; _endpointProvider = new ServiceEndpointProvider(_serverNameProvider, _endpoint, serviceOptions); - _productInfo = context.ProductInfo; - _context = context; _restClientFactory = restClientFactory; + _serviceHubContextFactory = serviceHubContextFactory; _serviceProvider = serviceProvider; + _disposeServiceProvider = context.Value.DisposeServiceProvider; } - public async Task CreateHubContextAsync(string hubName, ILoggerFactory loggerFactory = null, CancellationToken cancellationToken = default) - { - loggerFactory = loggerFactory ?? NullLoggerFactory.Instance; - switch (_context.ServiceTransportType) - { - case ServiceTransportType.Persistent: - { - var connectionFactory = new ManagementConnectionFactory(_productInfo, new ConnectionFactory(_serverNameProvider, loggerFactory)); - var serviceProtocol = new ServiceProtocol(); - var clientConnectionManager = new ClientConnectionManager(); - var clientConnectionFactory = new ClientConnectionFactory(); - ConnectionDelegate connectionDelegate = connectionContext => Task.CompletedTask; - var serviceConnectionFactory = new ServiceConnectionFactory( - serviceProtocol, - clientConnectionManager, - connectionFactory, - loggerFactory, - connectionDelegate, - clientConnectionFactory, - new DefaultServerNameProvider() - ); - var weakConnectionContainer = new WeakServiceConnectionContainer( - serviceConnectionFactory, - _context.ConnectionCount, - new HubServiceEndpoint(hubName, _endpointProvider, _endpoint), - loggerFactory?.CreateLogger(nameof(WeakServiceConnectionContainer)) ?? NullLogger.Instance); - - var serviceCollection = new ServiceCollection(); - serviceCollection.AddSignalRCore(); - serviceCollection.AddSingleton, ManagementHubOptionsSetup>(); - - if (loggerFactory != null) - { - serviceCollection.AddSingleton(typeof(ILoggerFactory), loggerFactory); - } - - serviceCollection - .AddLogging() - .AddSingleton(typeof(IConnectionFactory), sp => connectionFactory) - .AddSingleton(typeof(HubLifetimeManager<>), typeof(WebSocketsHubLifetimeManager<>)) - .AddSingleton(typeof(IServiceConnectionManager<>), typeof(ServiceConnectionManager<>)) - .AddSingleton(typeof(IServiceConnectionContainer), sp => weakConnectionContainer); - - var success = false; - ServiceProvider serviceProvider = null; - try - { - serviceProvider = serviceCollection.BuildServiceProvider(); - - var serviceConnectionManager = serviceProvider.GetRequiredService>(); - serviceConnectionManager.SetServiceConnection(weakConnectionContainer); - _ = serviceConnectionManager.StartAsync(); - - // wait until service connection established - await weakConnectionContainer.ConnectionInitializedTask.OrTimeout(cancellationToken); - - var webSocketsHubLifetimeManager = (WebSocketsHubLifetimeManager)serviceProvider.GetRequiredService>(); - - var hubContext = serviceProvider.GetRequiredService>(); - var serviceHubContext = new ServiceHubContext(hubContext, webSocketsHubLifetimeManager, serviceProvider); - success = true; - return serviceHubContext; - } - finally - { - if (!success) - { - serviceProvider?.Dispose(); - } - } - } - case ServiceTransportType.Transient: - { - var serviceCollection = new ServiceCollection(); - serviceCollection.AddSignalRCore(); - - // remove default hub lifetime manager - var serviceDescriptor = serviceCollection.FirstOrDefault(descriptor => descriptor.ServiceType == typeof(HubLifetimeManager<>)); - serviceCollection.Remove(serviceDescriptor); - - // add rest hub lifetime manager - var restHubLifetimeManager = new RestHubLifetimeManager(hubName, _endpoint, _productInfo, _context.ApplicationName); - serviceCollection.AddSingleton(typeof(HubLifetimeManager), sp => restHubLifetimeManager); - - var serviceProvider = serviceCollection.BuildServiceProvider(); - var hubContext = serviceProvider.GetRequiredService>(); - return new ServiceHubContext(hubContext, restHubLifetimeManager, serviceProvider); - } - default: - throw new ArgumentException("Not supported service transport type."); - } - } + public Task CreateHubContextAsync(string hubName, ILoggerFactory loggerFactory = null, CancellationToken cancellationToken = default) => + _serviceHubContextFactory.CreateAsync(hubName, loggerFactory, cancellationToken); public void Dispose() { - if (_context.DisposeServiceProvider) + if (_disposeServiceProvider) { (_serviceProvider as IDisposable).Dispose(); } diff --git a/src/Microsoft.Azure.SignalR.Management/ServiceManagerBuilder.cs b/src/Microsoft.Azure.SignalR.Management/ServiceManagerBuilder.cs index 14cbd4167..8f4a7ec7f 100644 --- a/src/Microsoft.Azure.SignalR.Management/ServiceManagerBuilder.cs +++ b/src/Microsoft.Azure.SignalR.Management/ServiceManagerBuilder.cs @@ -1,12 +1,15 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + using System; using System.ComponentModel; using System.Reflection; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Options; +using Microsoft.Extensions.Logging; namespace Microsoft.Azure.SignalR.Management { @@ -28,6 +31,12 @@ public ServiceManagerBuilder WithOptions(Action configure return this; } + public ServiceManagerBuilder WithLoggerFactory(ILoggerFactory loggerFactory) + { + _services.AddSingleton(loggerFactory); + return this; + } + /// /// Registers a configuration instance to configure /// @@ -55,11 +64,7 @@ public IServiceManager Build() { _services.AddSignalRServiceManager(); _services.Configure(c => c.DisposeServiceProvider = true); - var serviceProvider = _services.BuildServiceProvider(); - var context = serviceProvider.GetRequiredService>().Value; - var productInfo = context.ProductInfo; - var restClientBuilder = new RestClientFactory(productInfo); - return new ServiceManager(context, restClientBuilder, serviceProvider); + return _services.BuildServiceProvider().GetRequiredService(); } } } \ No newline at end of file diff --git a/src/Microsoft.Azure.SignalR/DependencyInjectionExtensions.cs b/src/Microsoft.Azure.SignalR/DependencyInjectionExtensions.cs index b794e28a1..81bf68f77 100644 --- a/src/Microsoft.Azure.SignalR/DependencyInjectionExtensions.cs +++ b/src/Microsoft.Azure.SignalR/DependencyInjectionExtensions.cs @@ -2,10 +2,12 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; + #if !NETSTANDARD2_0 using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Routing; #endif + using Microsoft.AspNetCore.SignalR; using Microsoft.Azure.SignalR; using Microsoft.Azure.SignalR.Protocol; @@ -31,12 +33,7 @@ public static class AzureSignalRDependencyInjectionExtensions /// public static ISignalRServerBuilder AddAzureSignalR(this ISignalRServerBuilder builder) { - builder.Services - .AddSingleton() - .AddSingleton>(s => s.GetService()) - .AddSingleton>(s => s.GetService()); - - return builder.AddAzureSignalRCore(); + return builder.AddAzureSignalR(); } /// @@ -68,6 +65,16 @@ public static ISignalRServerBuilder AddAzureSignalR(this ISignalRServerBuilder b return builder; } + /// The set up class used to configure and track changes. + internal static ISignalRServerBuilder AddAzureSignalR(this ISignalRServerBuilder builder) where TOptionsSetup : class, IConfigureOptions, IOptionsChangeTokenSource + { + builder.Services + .AddSingleton() + .AddSingleton>(s => s.GetService()) + .AddSingleton>(s => s.GetService()); + return builder.AddAzureSignalRCore(); + } + private static ISignalRServerBuilder AddAzureSignalRCore(this ISignalRServerBuilder builder) { builder.Services diff --git a/test/Microsoft.Azure.SignalR.Common.Tests/RestClients/RestClientBuilderFacts.cs b/test/Microsoft.Azure.SignalR.Common.Tests/RestClients/RestClientBuilderFacts.cs index c4f54cb12..69d22f660 100644 --- a/test/Microsoft.Azure.SignalR.Common.Tests/RestClients/RestClientBuilderFacts.cs +++ b/test/Microsoft.Azure.SignalR.Common.Tests/RestClients/RestClientBuilderFacts.cs @@ -46,7 +46,7 @@ void assertion(HttpRequestMessage request, CancellationToken t) [Fact] public void GetCustomiazeClient_BaseUriRightFact() { - var restClientFactory = new RestClientFactory(productInfo); + var restClientFactory = new TestRestClientFactory(productInfo, null); using var restClient = restClientFactory.Create(_serviceEndpoint); Assert.Equal(Endpoint, restClient.BaseUri.AbsoluteUri); } diff --git a/test/Microsoft.Azure.SignalR.E2ETests/Management/ServiceHubContextE2EFacts.cs b/test/Microsoft.Azure.SignalR.E2ETests/Management/ServiceHubContextE2EFacts.cs index f16579b12..55047b132 100644 --- a/test/Microsoft.Azure.SignalR.E2ETests/Management/ServiceHubContextE2EFacts.cs +++ b/test/Microsoft.Azure.SignalR.E2ETests/Management/ServiceHubContextE2EFacts.cs @@ -5,8 +5,6 @@ using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; -using System.Reflection; -using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; using Microsoft.AspNetCore.SignalR; @@ -298,6 +296,8 @@ await RunTestCore(clientEndpoint, clientAccessTokens, [ConditionalFact] [SkipIfConnectionStringNotPresent] + //TODO this test doesn't work anymore. + //https://github.com/Azure/azure-signalr/pull/707/files ServiceConnectionContainerBase or WeakConnectionContainer should be tested separately. internal async Task StopServiceHubContextTest() { using (StartVerifiableLog(out var loggerFactory, LogLevel.Debug, expectedErrors: context => context.EventId == new EventId(2, "EndpointOffline"))) @@ -311,7 +311,7 @@ internal async Task StopServiceHubContextTest() }) .Build(); var serviceHubContext = await serviceManager.CreateHubContextAsync("hub", loggerFactory); - var connectionContainer = ((ServiceHubContext)serviceHubContext).ServiceProvider.GetRequiredService(); + var connectionContainer = ((ServiceHubContext)serviceHubContext).ServiceProvider.GetRequiredService();//TODO await serviceHubContext.DisposeAsync(); await Task.Delay(500); Assert.Equal(ServiceConnectionStatus.Disconnected, connectionContainer.Status); @@ -407,6 +407,7 @@ private static string[] GetTestStringList(string prefix, int count) select $"{prefix}{i}").ToArray(); } + private async Task<(string ClientEndpoint, IEnumerable ClientAccessTokens, IServiceHubContext ServiceHubContext)> InitAsync(ServiceTransportType serviceTransportType, string appName, IEnumerable userNames) { using (StartVerifiableLog(out var loggerFactory, LogLevel.Debug)) diff --git a/test/Microsoft.Azure.SignalR.E2ETests/Management/ServiceManagerE2EFacts.cs b/test/Microsoft.Azure.SignalR.E2ETests/Management/ServiceManagerE2EFacts.cs index 96ed14c6c..c252ec07e 100644 --- a/test/Microsoft.Azure.SignalR.E2ETests/Management/ServiceManagerE2EFacts.cs +++ b/test/Microsoft.Azure.SignalR.E2ETests/Management/ServiceManagerE2EFacts.cs @@ -1,9 +1,6 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -using System; -using System.Collections.Generic; -using System.Text; using System.Threading.Tasks; using Microsoft.AspNetCore.Testing.xunit; using Microsoft.Azure.SignalR.Management; @@ -18,7 +15,8 @@ public class ServiceManagerE2EFacts [SkipIfConnectionStringNotPresent] public async Task CheckServiceHealthTest() { - var serviceManager = new ServiceManagerBuilder() + var builder = new ServiceManagerBuilder(); + var serviceManager = builder .WithOptions(o => { o.ConnectionString = TestConfiguration.Instance.ConnectionString; diff --git a/test/Microsoft.Azure.SignalR.Management.Tests/ServiceManagerFacts.cs b/test/Microsoft.Azure.SignalR.Management.Tests/ServiceManagerFacts.cs index c70d55286..effc4215c 100644 --- a/test/Microsoft.Azure.SignalR.Management.Tests/ServiceManagerFacts.cs +++ b/test/Microsoft.Azure.SignalR.Management.Tests/ServiceManagerFacts.cs @@ -10,9 +10,9 @@ using Microsoft.Azure.SignalR.Common; using Microsoft.Azure.SignalR.Tests; using Microsoft.Azure.SignalR.Tests.Common; +using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; -using Moq; using Xunit; namespace Microsoft.Azure.SignalR.Management.Tests @@ -48,18 +48,17 @@ from claims in _claimLists from appName in _appNames select new object[] { userId, claims, appName }; - private static readonly IServiceProvider MockServiceProvider = Mock.Of(); - [Theory] [MemberData(nameof(TestGenerateAccessTokenData))] internal void GenerateClientAccessTokenTest(string userId, Claim[] claims, string appName) { - var context = new ServiceManagerContext - { - ApplicationName = appName, - ServiceEndpoints = new ServiceEndpoint[] { new ServiceEndpoint(_testConnectionString) } - }; - var manager = new ServiceManager(context, new RestClientFactory(UserAgent), MockServiceProvider); + var builder = new ServiceManagerBuilder() + .WithOptions(o => + { + o.ApplicationName = appName; + o.ConnectionString = _testConnectionString; + }); + var manager = builder.Build(); var tokenString = manager.GenerateClientAccessToken(HubName, userId, claims, _tokenLifeTime); var token = JwtTokenHelper.JwtHandler.ReadJwtToken(tokenString); @@ -72,12 +71,13 @@ internal void GenerateClientAccessTokenTest(string userId, Claim[] claims, strin [MemberData(nameof(TestGenerateClientEndpointData))] internal void GenerateClientEndpointTest(string appName, string expectedClientEndpoint) { - var context = new ServiceManagerContext - { - ApplicationName = appName, - ServiceEndpoints = new ServiceEndpoint[] { new ServiceEndpoint(_testConnectionString) } - }; - var manager = new ServiceManager(context, new RestClientFactory(UserAgent), MockServiceProvider); + var builder = new ServiceManagerBuilder() + .WithOptions(o => + { + o.ApplicationName = appName; + o.ConnectionString = _testConnectionString; + }); + var manager = builder.Build(); var clientEndpoint = manager.GetClientEndpoint(HubName); Assert.Equal(expectedClientEndpoint, clientEndpoint); @@ -86,45 +86,44 @@ internal void GenerateClientEndpointTest(string appName, string expectedClientEn [Fact] internal void GenerateClientEndpointTestWithClientEndpoint() { - var context = new ServiceManagerContext + var manager = new ServiceManagerBuilder().WithOptions(o => { - ServiceEndpoints = new ServiceEndpoint[] { new ServiceEndpoint($"Endpoint=http://localhost;AccessKey=ABC;Version=1.0;ClientEndpoint=https://remote") } - }; - - var manager = new ServiceManager(context, new RestClientFactory(UserAgent), MockServiceProvider); + o.ServiceEndpoints = new ServiceEndpoint[] { new ServiceEndpoint($"Endpoint=http://localhost;AccessKey=ABC;Version=1.0;ClientEndpoint=https://remote") }; + }).Build(); var clientEndpoint = manager.GetClientEndpoint(HubName); Assert.Equal("https://remote/client/?hub=signalrbench", clientEndpoint); } - [Theory] + [Theory(Skip = "Reenable when it is ready")] [MemberData(nameof(TestServiceManagerOptionData))] internal async Task CreateServiceHubContextTest(ServiceTransportType serviceTransportType, bool useLoggerFacory, string appName, int connectionCount) { - var context = new ServiceManagerContext - { - ServiceTransportType = serviceTransportType, - ApplicationName = appName, - ConnectionCount = connectionCount, - ServiceEndpoints = new ServiceEndpoint[] { new ServiceEndpoint(_testConnectionString) } - }; - var serviceManager = new ServiceManager(context, new RestClientFactory(UserAgent), MockServiceProvider); + var builder = new ServiceManagerBuilder() + .WithOptions(o => + { + o.ServiceTransportType = serviceTransportType; + o.ApplicationName = appName; + o.ConnectionCount = connectionCount; + o.ConnectionString = _testConnectionString; + }); + var serviceManager = builder.Build(); using (var loggerFactory = useLoggerFacory ? (ILoggerFactory)new LoggerFactory() : NullLoggerFactory.Instance) { - var hubContext = await serviceManager.CreateHubContextAsync(HubName, loggerFactory); + var hubContext = await serviceManager.CreateHubContextAsync(HubName, default); } } [Fact] internal async Task IsServiceHealthy_ReturnTrue_Test() { - var context = new ServiceManagerContext - { - ServiceEndpoints = new ServiceEndpoint[] { new ServiceEndpoint(_testConnectionString) } - }; - var factory = new TestRestClientFactory(UserAgent, HttpStatusCode.OK); - var serviceManager = new ServiceManager(context, factory, null); + var services = new ServiceCollection(); + services.AddSignalRServiceManager(); + services.Configure(o => o.ConnectionString = _testConnectionString); + services.AddSingleton(new TestRestClientFactory(UserAgent, HttpStatusCode.OK)); + using var serviceProvider = services.BuildServiceProvider(); + var serviceManager = serviceProvider.GetRequiredService(); var actual = await serviceManager.IsServiceHealthy(default); Assert.True(actual); @@ -136,12 +135,13 @@ internal async Task IsServiceHealthy_ReturnTrue_Test() [InlineData(HttpStatusCode.GatewayTimeout)] internal async Task IsServiceHealthy_ReturnFalse_Test(HttpStatusCode statusCode) { - var context = new ServiceManagerContext - { - ServiceEndpoints = new ServiceEndpoint[] { new ServiceEndpoint(_testConnectionString) } - }; - var factory = new TestRestClientFactory(UserAgent, statusCode); - var serviceManager = new ServiceManager(context, factory, null); + var services = new ServiceCollection(); + services.Configure(o => o.ConnectionString = _testConnectionString); + services.AddSignalRServiceManager(); + services.AddSingleton(new TestRestClientFactory(UserAgent, statusCode)); + using var serviceProvider = services.BuildServiceProvider(); + var serviceManager = serviceProvider.GetRequiredService(); + var actual = await serviceManager.IsServiceHealthy(default); Assert.False(actual); @@ -154,12 +154,12 @@ internal async Task IsServiceHealthy_ReturnFalse_Test(HttpStatusCode statusCode) [InlineData(HttpStatusCode.Ambiguous, typeof(AzureSignalRRuntimeException))] internal async Task IsServiceHealthy_Throw_Test(HttpStatusCode statusCode, Type expectedException) { - var context = new ServiceManagerContext - { - ServiceEndpoints = new ServiceEndpoint[] { new ServiceEndpoint(_testConnectionString) } - }; - var factory = new TestRestClientFactory(UserAgent, statusCode); - var serviceManager = new ServiceManager(context, factory, MockServiceProvider); + var services = new ServiceCollection(); + services.AddSignalRServiceManager(); + services.Configure(o => o.ConnectionString = _testConnectionString); + services.AddSingleton(new TestRestClientFactory(UserAgent, statusCode)); + using var serviceProvider = services.BuildServiceProvider(); + var serviceManager = serviceProvider.GetRequiredService(); var exception = await Assert.ThrowsAnyAsync(() => serviceManager.IsServiceHealthy(default)); Assert.IsType(expectedException, exception); From 303dd5f7d1d3c2f76261a041248642894da6e690 Mon Sep 17 00:00:00 2001 From: Wanpeng Li Date: Wed, 18 Nov 2020 11:52:24 +0800 Subject: [PATCH 11/18] skip test (#1112) --- .../Management/ServiceHubContextE2EFacts.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Microsoft.Azure.SignalR.E2ETests/Management/ServiceHubContextE2EFacts.cs b/test/Microsoft.Azure.SignalR.E2ETests/Management/ServiceHubContextE2EFacts.cs index 55047b132..8e2f4a0bb 100644 --- a/test/Microsoft.Azure.SignalR.E2ETests/Management/ServiceHubContextE2EFacts.cs +++ b/test/Microsoft.Azure.SignalR.E2ETests/Management/ServiceHubContextE2EFacts.cs @@ -294,7 +294,7 @@ await RunTestCore(clientEndpoint, clientAccessTokens, } } - [ConditionalFact] + [ConditionalFact(Skip = "TODO: move this test into ServiceConnectionContainerBase or WeakConnectionContainer")] [SkipIfConnectionStringNotPresent] //TODO this test doesn't work anymore. //https://github.com/Azure/azure-signalr/pull/707/files ServiceConnectionContainerBase or WeakConnectionContainer should be tested separately. From 4dc471794641bdf0dec4d64fbcbd53be2f164ab9 Mon Sep 17 00:00:00 2001 From: yzt Date: Wed, 18 Nov 2020 14:33:43 +0800 Subject: [PATCH 12/18] make validation function in ServiceManagerOptions internal (#1114) --- .../Configuration/ServiceManagerOptions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.Azure.SignalR.Management/Configuration/ServiceManagerOptions.cs b/src/Microsoft.Azure.SignalR.Management/Configuration/ServiceManagerOptions.cs index f58a726c7..12688528d 100644 --- a/src/Microsoft.Azure.SignalR.Management/Configuration/ServiceManagerOptions.cs +++ b/src/Microsoft.Azure.SignalR.Management/Configuration/ServiceManagerOptions.cs @@ -49,7 +49,7 @@ public class ServiceManagerOptions /// /// Method called by management SDK to validate options. /// - public void ValidateOptions() + internal void ValidateOptions() { ValidateServiceEndpoint(); ValidateServiceTransportType(); From 3aee92191c35972bd16b4973439226a8c673bca4 Mon Sep 17 00:00:00 2001 From: yzt Date: Wed, 18 Nov 2020 15:02:19 +0800 Subject: [PATCH 13/18] refactor options set up method (#1113) --- .../Utilities/IServiceCollectionExtension.cs | 18 ++++++++++++++++++ .../DependencyInjectionExtensions.cs | 9 ++------- .../DependencyInjectionExtensions.cs | 5 +---- 3 files changed, 21 insertions(+), 11 deletions(-) create mode 100644 src/Microsoft.Azure.SignalR.Common/Utilities/IServiceCollectionExtension.cs diff --git a/src/Microsoft.Azure.SignalR.Common/Utilities/IServiceCollectionExtension.cs b/src/Microsoft.Azure.SignalR.Common/Utilities/IServiceCollectionExtension.cs new file mode 100644 index 000000000..1002910d5 --- /dev/null +++ b/src/Microsoft.Azure.SignalR.Common/Utilities/IServiceCollectionExtension.cs @@ -0,0 +1,18 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Options; + +namespace Microsoft.Azure.SignalR +{ + internal static class IServiceCollectionExtension + { + public static IServiceCollection SetupOptions(this IServiceCollection services) where TOptions : class where TOptionsSetup : class, IConfigureOptions, IOptionsChangeTokenSource + { + return services.AddSingleton() + .AddSingleton>(sp => sp.GetService()) + .AddSingleton>(sp => sp.GetService()); + } + } +} diff --git a/src/Microsoft.Azure.SignalR.Management/DependencyInjectionExtensions.cs b/src/Microsoft.Azure.SignalR.Management/DependencyInjectionExtensions.cs index 44ebf342c..d9f323abf 100644 --- a/src/Microsoft.Azure.SignalR.Management/DependencyInjectionExtensions.cs +++ b/src/Microsoft.Azure.SignalR.Management/DependencyInjectionExtensions.cs @@ -36,17 +36,12 @@ public static IServiceCollection AddSignalRServiceManager(this IServiceCollectio /// /// Designed for Azure Function extension where the setup of is different from SDK /// The type of class used to setup . - [EditorBrowsable(EditorBrowsableState.Never)] public static IServiceCollection AddSignalRServiceManager(this IServiceCollection services) where TOptionsSetup : class, IConfigureOptions, IOptionsChangeTokenSource { //cascade options setup - services.AddSingleton() - .AddSingleton>(sp => sp.GetService()) - .AddSingleton>(sp => sp.GetService()); + services.SetupOptions(); services.PostConfigure(o => o.ValidateOptions()); - services.AddSingleton() - .AddSingleton>(sp => sp.GetService()) - .AddSingleton>(sp => sp.GetService()); + services.SetupOptions(); services.AddSignalR() .AddAzureSignalR(); diff --git a/src/Microsoft.Azure.SignalR/DependencyInjectionExtensions.cs b/src/Microsoft.Azure.SignalR/DependencyInjectionExtensions.cs index 81bf68f77..88eea5aad 100644 --- a/src/Microsoft.Azure.SignalR/DependencyInjectionExtensions.cs +++ b/src/Microsoft.Azure.SignalR/DependencyInjectionExtensions.cs @@ -68,10 +68,7 @@ public static ISignalRServerBuilder AddAzureSignalR(this ISignalRServerBuilder b /// The set up class used to configure and track changes. internal static ISignalRServerBuilder AddAzureSignalR(this ISignalRServerBuilder builder) where TOptionsSetup : class, IConfigureOptions, IOptionsChangeTokenSource { - builder.Services - .AddSingleton() - .AddSingleton>(s => s.GetService()) - .AddSingleton>(s => s.GetService()); + builder.Services.SetupOptions(); return builder.AddAzureSignalRCore(); } From 65f194ceaebf80218ee8b68fd76712c91fec1960 Mon Sep 17 00:00:00 2001 From: Stan Date: Thu, 19 Nov 2020 05:52:06 +0300 Subject: [PATCH 14/18] Fixed options variable name in one of code samples (#1116) --- docs/use-signalr-service.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/use-signalr-service.md b/docs/use-signalr-service.md index 98ddbd049..072bcfe20 100644 --- a/docs/use-signalr-service.md +++ b/docs/use-signalr-service.md @@ -174,8 +174,8 @@ services.AddSignalR() options.AccessTokenLifetime = TimeSpan.FromDays(1); options.ClaimsProvider = context => context.User.Claims; - option.GracefulShutdown.Mode = GracefulShutdownMode.WaitForClientsClose; - option.GracefulShutdown.Timeout = TimeSpan.FromSeconds(10); + options.GracefulShutdown.Mode = GracefulShutdownMode.WaitForClientsClose; + options.GracefulShutdown.Timeout = TimeSpan.FromSeconds(10); }); ``` From acc9770ccc67223be6b1bedccfb3eb9ab955a234 Mon Sep 17 00:00:00 2001 From: Terence Fan Date: Thu, 19 Nov 2020 14:19:23 +0800 Subject: [PATCH 15/18] Add aad properties to ConnectionString. (#1089) --- samples/ChatSample/ChatSample/Startup.cs | 2 +- .../Auth/AadApplicationOptions.cs | 5 +- .../Auth/AadManagedIdentityOptions.cs | 2 +- .../Auth/AuthOptions.cs | 7 +- .../Endpoints/AadAccessKey.cs | 115 +++++++++++++++--- .../Endpoints/AccessKey.cs | 19 ++- .../Endpoints/ServiceEndpoint.cs | 27 +--- .../Utilities/ConnectionStringParser.cs | 110 +++++++++++++---- .../ServiceManager.cs | 3 +- .../ServiceEndpointProvider.cs | 55 +-------- .../GracefulShutdownOptions.cs | 7 +- .../RunAzureSignalRTests.cs | 2 +- .../Auth/AccessKeyTests.cs | 12 +- .../Auth/AuthUtilityTests.cs | 6 +- .../ConnectionStringParserFacts.cs | 54 ++++++-- .../AzureSignalRMarkerServiceFact.cs | 2 +- .../JwtTokenHelper.cs | 8 +- .../ServiceEndpointProviderFacts.cs | 19 +-- 18 files changed, 292 insertions(+), 163 deletions(-) diff --git a/samples/ChatSample/ChatSample/Startup.cs b/samples/ChatSample/ChatSample/Startup.cs index b8cb34ccc..cce6fa1df 100644 --- a/samples/ChatSample/ChatSample/Startup.cs +++ b/samples/ChatSample/ChatSample/Startup.cs @@ -18,7 +18,7 @@ public void ConfigureServices(IServiceCollection services) .AddAzureSignalR(option => { option.GracefulShutdown.Mode = GracefulShutdownMode.WaitForClientsClose; - option.GracefulShutdown.Timeout = TimeSpan.FromSeconds(10); + option.GracefulShutdown.Timeout = TimeSpan.FromSeconds(30); }) .AddMessagePackProtocol(); } diff --git a/src/Microsoft.Azure.SignalR.Common/Auth/AadApplicationOptions.cs b/src/Microsoft.Azure.SignalR.Common/Auth/AadApplicationOptions.cs index d46c3ab81..04cb2ac8c 100644 --- a/src/Microsoft.Azure.SignalR.Common/Auth/AadApplicationOptions.cs +++ b/src/Microsoft.Azure.SignalR.Common/Auth/AadApplicationOptions.cs @@ -48,9 +48,10 @@ public Uri BuildAuthority() return GetUri(AzureActiveDirectoryInstance, TenantId); } - public async Task AcquireAccessToken() + public override async Task AcquireAccessToken() { - var result = await AzureActiveDirectoryHelper.BuildApplication(this).AcquireTokenForClient(DefaultScopes).WithSendX5C(true).ExecuteAsync(); + var app = AzureActiveDirectoryHelper.BuildApplication(this); + var result = await app.AcquireTokenForClient(DefaultScopes).WithSendX5C(true).ExecuteAsync(); return result.AccessToken; } } diff --git a/src/Microsoft.Azure.SignalR.Common/Auth/AadManagedIdentityOptions.cs b/src/Microsoft.Azure.SignalR.Common/Auth/AadManagedIdentityOptions.cs index fc96962ce..3d9e70424 100644 --- a/src/Microsoft.Azure.SignalR.Common/Auth/AadManagedIdentityOptions.cs +++ b/src/Microsoft.Azure.SignalR.Common/Auth/AadManagedIdentityOptions.cs @@ -7,7 +7,7 @@ public class AadManagedIdentityOptions : AuthOptions, IAadTokenGenerator { internal override string AuthType => "ManagedIdentity"; - public async Task AcquireAccessToken() + public override async Task AcquireAccessToken() { var azureServiceTokenProvider = new AzureServiceTokenProvider(azureAdInstance: AzureActiveDirectoryInstance); return await azureServiceTokenProvider.GetAccessTokenAsync(Audience); diff --git a/src/Microsoft.Azure.SignalR.Common/Auth/AuthOptions.cs b/src/Microsoft.Azure.SignalR.Common/Auth/AuthOptions.cs index 6b93c9316..85f91f086 100644 --- a/src/Microsoft.Azure.SignalR.Common/Auth/AuthOptions.cs +++ b/src/Microsoft.Azure.SignalR.Common/Auth/AuthOptions.cs @@ -2,6 +2,7 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; +using System.Threading.Tasks; namespace Microsoft.Azure.SignalR { @@ -19,8 +20,12 @@ public abstract class AuthOptions internal const string USGovernmentInstance = "https://login.microsoftonline.us/"; + internal abstract string AuthType { get; } + protected string AzureActiveDirectoryInstance { get; set; } = GlobalInstance; + public abstract Task AcquireAccessToken(); + public AuthOptions WithChina() { AzureActiveDirectoryInstance = ChinaInstance; @@ -57,7 +62,5 @@ internal Uri BuildMetadataAddress() } protected Uri GetUri(string baseUri, string path) => new Uri(new Uri(baseUri), path); - - internal abstract string AuthType { get; } } } diff --git a/src/Microsoft.Azure.SignalR.Common/Endpoints/AadAccessKey.cs b/src/Microsoft.Azure.SignalR.Common/Endpoints/AadAccessKey.cs index 644d182a8..7aeb4f951 100644 --- a/src/Microsoft.Azure.SignalR.Common/Endpoints/AadAccessKey.cs +++ b/src/Microsoft.Azure.SignalR.Common/Endpoints/AadAccessKey.cs @@ -5,30 +5,57 @@ using System.Security.Claims; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Microsoft.Extensions.Primitives; using Newtonsoft.Json.Linq; namespace Microsoft.Azure.SignalR { - internal class AadAccessKey : AccessKey + internal class AadAccessKey : AccessKey, IDisposable { - private readonly AuthOptions _authOptions; + private const int AuthorizeIntervalInMinute = 55; + private const int AuthorizeMaxRetryTimes = 3; + private const int AuthorizeRetryIntervalInSec = 3; + + private static readonly TimeSpan AuthorizeInterval = TimeSpan.FromMinutes(AuthorizeIntervalInMinute); + private static readonly TimeSpan AuthorizeRetryInterval = TimeSpan.FromSeconds(AuthorizeRetryIntervalInSec); + private static readonly TimeSpan AuthorizeTimeout = TimeSpan.FromSeconds(10); + + private int initialized = 0; private readonly TaskCompletionSource _authorizeTcs = new TaskCompletionSource(); + private readonly TimerAwaitable _timer = new TimerAwaitable(TimeSpan.Zero, AuthorizeInterval); + public bool Authorized => AuthorizeTask.IsCompleted && AuthorizeTask.Result; + public AuthOptions Options { get; } + private Task AuthorizeTask => _authorizeTcs.Task; - public AadAccessKey(AuthOptions options) : base() + public AadAccessKey(AuthOptions options, string endpoint, int? port) : base(endpoint, port) { - _authOptions = options; + Options = options; } - public async Task AuthorizeAsync(string endpoint, int? port, string serverId, CancellationToken token = default) + internal async Task AuthorizeAsync(string serverId, CancellationToken token = default) { var aadToken = await GenerateAadToken(); - await AuthorizeWithTokenAsync(endpoint, port, serverId, aadToken, token); + await AuthorizeWithTokenAsync(Endpoint, Port, serverId, aadToken, token); + } + + public void Dispose() + { + ((IDisposable)_timer).Dispose(); + } + + public Task GenerateAadToken() + { + if (Options is IAadTokenGenerator options) + { + return options.AcquireAccessToken(); + } + throw new InvalidOperationException("This accesskey is not able to generate AccessToken, a TokenBasedAuthOptions is required."); } public override async Task GenerateAccessToken( @@ -41,13 +68,42 @@ public override async Task GenerateAccessToken( return await base.GenerateAccessToken(audience, claims, lifetime, algorithm); } - public Task GenerateAadToken() + public async Task UpdateAccessKeyAsync(IServerNameProvider provider, ILoggerFactory loggerFactory) { - if (_authOptions is IAadTokenGenerator options) + if (Interlocked.CompareExchange(ref initialized, 1, 0) == 1) { - return options.AcquireAccessToken(); + return; + } + + _timer.Start(); + + var logger = loggerFactory.CreateLogger(); + + while (await _timer) + { + var isAuthorized = false; + for (int i = 0; i < AuthorizeMaxRetryTimes; i++) + { + var source = new CancellationTokenSource(AuthorizeTimeout); + try + { + await AuthorizeAsync(provider.GetName(), source.Token); + Log.SucceedAuthorizeAccessKey(logger, Endpoint); + isAuthorized = true; + break; + } + catch (Exception e) + { + Log.FailedAuthorizeAccessKey(logger, Endpoint, e); + await Task.Delay(AuthorizeRetryInterval); + } + } + + if (!isAuthorized) + { + Log.ErrorAuthorizeAccessKey(logger, Endpoint); + } } - throw new InvalidOperationException("This accesskey is not able to generate AccessToken, a TokenBasedAuthOptions is required."); } private async Task AuthorizeWithTokenAsync(string endpoint, int? port, string serverId, string accessToken, CancellationToken token = default) @@ -79,26 +135,45 @@ private async Task HandleHttpResponseAsync(HttpResponseMessage response) var json = await response.Content.ReadAsStringAsync(); var obj = JObject.Parse(json); - if (obj.TryGetValue("KeyId", out var keyId) && keyId.Type == JTokenType.String) + if (!obj.TryGetValue("KeyId", out var keyId) || keyId.Type != JTokenType.String) { - Id = keyId.ToString(); + throw new ArgumentNullException("Missing required field."); } - else + if (!obj.TryGetValue("AccessKey", out var key) || key.Type != JTokenType.String) { - throw new ArgumentNullException("Missing required field."); + throw new ArgumentNullException("Missing required field."); } + Key = new Tuple(keyId.ToString(), key.ToString()); + + _authorizeTcs.TrySetResult(true); + return true; + } - if (obj.TryGetValue("AccessKey", out var key) && key.Type == JTokenType.String) + private static class Log + { + private static readonly Action _errorAuthorize = + LoggerMessage.Define(LogLevel.Error, new EventId(1, "ErrorAuthorizeAccessKey"), "Failed in authorizing AccessKey for '{endpoint}' after retried " + AuthorizeMaxRetryTimes + " times."); + + private static readonly Action _failedAuthorize = + LoggerMessage.Define(LogLevel.Warning, new EventId(2, "FailedAuthorizeAccessKey"), "Failed in authorizing AccessKey for '{endpoint}', will retry in " + AuthorizeRetryIntervalInSec + " seconds"); + + private static readonly Action _succeedAuthorize = + LoggerMessage.Define(LogLevel.Information, new EventId(3, "SucceedAuthorizeAccessKey"), "Succeed in authorizing AccessKey for '{endpoint}'"); + + public static void ErrorAuthorizeAccessKey(ILogger logger, string endpoint) { - Value = key.ToString(); + _errorAuthorize(logger, endpoint, null); } - else + + public static void FailedAuthorizeAccessKey(ILogger logger, string endpoint, Exception e) { - throw new ArgumentNullException("Missing required field."); + _failedAuthorize(logger, endpoint, e); } - _authorizeTcs.TrySetResult(true); - return true; + public static void SucceedAuthorizeAccessKey(ILogger logger, string endpoint) + { + _succeedAuthorize(logger, endpoint, null); + } } } } diff --git a/src/Microsoft.Azure.SignalR.Common/Endpoints/AccessKey.cs b/src/Microsoft.Azure.SignalR.Common/Endpoints/AccessKey.cs index a04267341..e3d5a9c80 100644 --- a/src/Microsoft.Azure.SignalR.Common/Endpoints/AccessKey.cs +++ b/src/Microsoft.Azure.SignalR.Common/Endpoints/AccessKey.cs @@ -10,17 +10,24 @@ namespace Microsoft.Azure.SignalR { internal class AccessKey { - public string Id { get; protected set; } + public string Id => Key?.Item1; + public string Value => Key?.Item2; - public string Value { get; protected set; } + protected Tuple Key { get; set; } - public AccessKey(string key) + public string Endpoint { get; } + public int? Port { get; } + + public AccessKey(string key, string endpoint, int? port) : this(endpoint, port) { - Id = key.GetHashCode().ToString(); - Value = key; + Key = new Tuple(key.GetHashCode().ToString(), key); } - protected AccessKey() { } + protected AccessKey(string endpoint, int? port) + { + Endpoint = endpoint; + Port = port; + } public virtual Task GenerateAccessToken( string audience, diff --git a/src/Microsoft.Azure.SignalR.Common/Endpoints/ServiceEndpoint.cs b/src/Microsoft.Azure.SignalR.Common/Endpoints/ServiceEndpoint.cs index cab5e68f7..77f6a8b88 100644 --- a/src/Microsoft.Azure.SignalR.Common/Endpoints/ServiceEndpoint.cs +++ b/src/Microsoft.Azure.SignalR.Common/Endpoints/ServiceEndpoint.cs @@ -13,7 +13,7 @@ public class ServiceEndpoint public virtual string Name { get; internal set; } - public string Endpoint { get; } + public string Endpoint => AccessKey?.Endpoint; /// /// The customized endpoint that the client will be redirected to @@ -24,7 +24,7 @@ public class ServiceEndpoint internal AccessKey AccessKey { get; private set; } - internal int? Port { get; } + internal int? Port => AccessKey?.Port; /// /// When current app server instance has server connections connected to the target endpoint for current hub, it can deliver messages to that endpoint. @@ -47,18 +47,6 @@ public class ServiceEndpoint /// public EndpointMetrics EndpointMetrics { get; internal set; } = new EndpointMetrics(); - internal ServiceEndpoint(string endpoint, AuthOptions authOptions, int port = 443, EndpointType type = EndpointType.Primary) - { - Endpoint = endpoint; - AccessKey = new AadAccessKey(authOptions); - - Version = "1.0"; - Port = port; - Name = ""; - - EndpointType = type; - } - public ServiceEndpoint(string key, string connectionString) : this(connectionString) { (Name, EndpointType) = ParseKey(key); @@ -71,9 +59,7 @@ public ServiceEndpoint(string connectionString, EndpointType type = EndpointType throw new ArgumentException($"'{nameof(connectionString)}' cannot be null or whitespace", nameof(connectionString)); } - string key; - (Endpoint, key, Version, Port, ClientEndpoint) = ConnectionStringParser.Parse(connectionString); - AccessKey = new AccessKey(key); + (AccessKey, Version, ClientEndpoint) = ConnectionStringParser.Parse(connectionString); EndpointType = type; ConnectionString = connectionString; @@ -87,10 +73,8 @@ public ServiceEndpoint(ServiceEndpoint endpoint) ConnectionString = endpoint.ConnectionString; EndpointType = endpoint.EndpointType; Name = endpoint.Name; - Endpoint = endpoint.Endpoint; Version = endpoint.Version; AccessKey = endpoint.AccessKey; - Port = endpoint.Port; ClientEndpoint = endpoint.ClientEndpoint; } } @@ -98,11 +82,6 @@ public ServiceEndpoint(ServiceEndpoint endpoint) // test only internal ServiceEndpoint() { } - internal void UpdateAccessKey(AccessKey key) - { - AccessKey = key; - } - public override string ToString() { var prefix = string.IsNullOrEmpty(Name) ? "" : $"[{Name}]"; diff --git a/src/Microsoft.Azure.SignalR.Common/Utilities/ConnectionStringParser.cs b/src/Microsoft.Azure.SignalR.Common/Utilities/ConnectionStringParser.cs index 641a4a371..06ae523db 100644 --- a/src/Microsoft.Azure.SignalR.Common/Utilities/ConnectionStringParser.cs +++ b/src/Microsoft.Azure.SignalR.Common/Utilities/ConnectionStringParser.cs @@ -3,38 +3,53 @@ using System; using System.Collections.Generic; +using System.IO; +using System.Security.Cryptography.X509Certificates; using System.Text.RegularExpressions; namespace Microsoft.Azure.SignalR { internal static class ConnectionStringParser { - private const string EndpointProperty = "endpoint"; private const string AccessKeyProperty = "accesskey"; - private const string VersionProperty = "version"; - private const string PortProperty = "port"; + private const string AuthTypeProperty = "authtype"; + private const string ClientCertProperty = "clientCert"; private const string ClientEndpointProperty = "ClientEndpoint"; - + private const string ClientIdProperty = "clientId"; + private const string ClientSecretProperty = "clientSecret"; + private const string EndpointProperty = "endpoint"; + private const string FileNotExists = "Client cert file not exists."; + private const string InvalidVersionValueFormat = "Version {0} is not supported."; + private const string PortProperty = "port"; // For SDK 1.x, only support Azure SignalR Service 1.x private const string SupportedVersion = "1"; + + private const string TenantIdProperty = "tenantId"; private const string ValidVersionRegex = "^" + SupportedVersion + @"\.\d+(?:[\w-.]+)?$"; + private const string VersionProperty = "version"; + private static readonly string InvalidPortValue = $"Invalid value for {PortProperty} property."; - private static readonly string MissingRequiredProperty = - $"Connection string missing required properties {EndpointProperty} and {AccessKeyProperty}."; + private static readonly char[] KeyValueSeparator = { '=' }; - private const string InvalidVersionValueFormat = "Version {0} is not supported."; + private static readonly string MissingAccessKeyProperty = + $"{AccessKeyProperty} is required."; - private static readonly string InvalidPortValue = $"Invalid value for {PortProperty} property."; + private static readonly string MissingClientSecretProperty = + $"Connection string missing required properties {ClientSecretProperty} or {ClientCertProperty}."; + + private static readonly string MissingEndpointProperty = + $"Connection string missing required properties {EndpointProperty}."; + private static readonly string MissingTenantIdProperty = + $"Connection string missing required properties {TenantIdProperty}."; private static readonly char[] PropertySeparator = { ';' }; - private static readonly char[] KeyValueSeparator = { '=' }; - internal static (string endpoint, string accessKey, string version, int? port, string clientEndpoint) Parse(string connectionString) + internal static (AccessKey accessKey, string version, string clientEndpoint) Parse(string connectionString) { var properties = connectionString.Split(PropertySeparator, StringSplitOptions.RemoveEmptyEntries); if (properties.Length < 2) { - throw new ArgumentException(MissingRequiredProperty, nameof(connectionString)); + throw new ArgumentException(MissingEndpointProperty, nameof(connectionString)); } var dict = new Dictionary(StringComparer.OrdinalIgnoreCase); @@ -52,34 +67,34 @@ internal static (string endpoint, string accessKey, string version, int? port, s dict.Add(key, kvp[1].Trim()); } - if (!dict.ContainsKey(EndpointProperty) || !dict.ContainsKey(AccessKeyProperty)) + // parse and validate endpoint. + if (!dict.TryGetValue(EndpointProperty, out var endpoint)) { - throw new ArgumentException(MissingRequiredProperty, nameof(connectionString)); + throw new ArgumentException(MissingEndpointProperty, nameof(connectionString)); } + endpoint = endpoint.TrimEnd('/'); - if (!ValidateEndpoint(dict[EndpointProperty])) + if (!ValidateEndpoint(endpoint)) { throw new ArgumentException($"Endpoint property in connection string is not a valid URI: {dict[EndpointProperty]}."); } + // parse and validate version. string version = null; if (dict.TryGetValue(VersionProperty, out var v)) { - if (Regex.IsMatch(v, ValidVersionRegex)) - { - version = v; - } - else + if (!Regex.IsMatch(v, ValidVersionRegex)) { throw new ArgumentException(string.Format(InvalidVersionValueFormat, v), nameof(connectionString)); } + version = v; } + // parse and validate port. int? port = null; if (dict.TryGetValue(PortProperty, out var s)) { - if (int.TryParse(s, out var p) && - p > 0 && p <= 0xFFFF) + if (int.TryParse(s, out var p) && p > 0 && p <= 0xFFFF) { port = p; } @@ -89,6 +104,7 @@ internal static (string endpoint, string accessKey, string version, int? port, s } } + // parse and validate clientEndpoint. if (dict.TryGetValue(ClientEndpointProperty, out var clientEndpoint)) { if (!ValidateEndpoint(clientEndpoint)) @@ -97,7 +113,13 @@ internal static (string endpoint, string accessKey, string version, int? port, s } } - return (dict[EndpointProperty].TrimEnd('/'), dict[AccessKeyProperty], version, port, clientEndpoint); + dict.TryGetValue(AuthTypeProperty, out string type); + AccessKey accessKey = type?.ToLower() switch + { + "aad" => BuildAadAccessKey(dict, endpoint, port), + _ => BuildAccessKey(dict, endpoint, port), + }; + return (accessKey, version, clientEndpoint); } internal static bool ValidateEndpoint(string endpoint) @@ -105,5 +127,49 @@ internal static bool ValidateEndpoint(string endpoint) return Uri.TryCreate(endpoint, UriKind.Absolute, out var uriResult) && (uriResult.Scheme == Uri.UriSchemeHttp || uriResult.Scheme == Uri.UriSchemeHttps); } + + private static AccessKey BuildAadAccessKey(Dictionary dict, string endpoint, int? port) + { + if (dict.ContainsKey(ClientIdProperty)) + { + if (!dict.ContainsKey(TenantIdProperty)) + { + throw new ArgumentException(MissingTenantIdProperty, TenantIdProperty); + } + + var options = new AadApplicationOptions(dict[ClientIdProperty], dict[TenantIdProperty]); + + if (dict.TryGetValue(ClientSecretProperty, out var clientSecret)) + { + return new AadAccessKey(options.WithClientSecret(clientSecret), endpoint, port); + } + else if (dict.TryGetValue(ClientCertProperty, out var clientCert)) + { + if (!File.Exists(clientCert)) + { + throw new FileNotFoundException(FileNotExists, clientCert); + } + var cert = new X509Certificate2(clientCert); + return new AadAccessKey(options.WithClientCert(cert), endpoint, port); + } + else + { + throw new ArgumentException(MissingClientSecretProperty, ClientSecretProperty); + } + } + else + { + return new AadAccessKey(new AadManagedIdentityOptions(), endpoint, port); + } + } + + private static AccessKey BuildAccessKey(Dictionary dict, string endpoint, int? port) + { + if (dict.TryGetValue(AccessKeyProperty, out var key)) + { + return new AccessKey(key, endpoint, port); + } + throw new ArgumentException(MissingAccessKeyProperty, AccessKeyProperty); + } } } \ No newline at end of file diff --git a/src/Microsoft.Azure.SignalR.Management/ServiceManager.cs b/src/Microsoft.Azure.SignalR.Management/ServiceManager.cs index 470179580..869775956 100644 --- a/src/Microsoft.Azure.SignalR.Management/ServiceManager.cs +++ b/src/Microsoft.Azure.SignalR.Management/ServiceManager.cs @@ -9,6 +9,7 @@ using System.Threading.Tasks; using Microsoft.Azure.SignalR.Common.RestClients; using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Logging.Abstractions; using Microsoft.Extensions.Options; using Microsoft.Rest; @@ -36,7 +37,7 @@ public ServiceManager(IOptions context, RestClientFactory Proxy = context.Value.Proxy }).Value; - _endpointProvider = new ServiceEndpointProvider(_serverNameProvider, _endpoint, serviceOptions); + _endpointProvider = new ServiceEndpointProvider(_serverNameProvider, _endpoint, serviceOptions, NullLoggerFactory.Instance); _restClientFactory = restClientFactory; _serviceHubContextFactory = serviceHubContextFactory; diff --git a/src/Microsoft.Azure.SignalR/EndpointProvider/ServiceEndpointProvider.cs b/src/Microsoft.Azure.SignalR/EndpointProvider/ServiceEndpointProvider.cs index 307823551..b2f10cbaa 100644 --- a/src/Microsoft.Azure.SignalR/EndpointProvider/ServiceEndpointProvider.cs +++ b/src/Microsoft.Azure.SignalR/EndpointProvider/ServiceEndpointProvider.cs @@ -12,21 +12,13 @@ namespace Microsoft.Azure.SignalR { - internal class ServiceEndpointProvider : IServiceEndpointProvider, IDisposable + internal class ServiceEndpointProvider : IServiceEndpointProvider { public static readonly string ConnectionStringNotFound = "No connection string was specified. " + $"Please specify a configuration entry for {Constants.Keys.ConnectionStringDefaultKey}, " + "or explicitly pass one using IServiceCollection.AddAzureSignalR(connectionString) in Startup.ConfigureServices."; - private const int AuthorizeRetryIntervalInSec = 3; - private const int AuthorizeIntervalInMinute = 55; - private const int AuthorizeMaxRetryTimes = 3; - - private static readonly TimeSpan AuthorizeRetryInterval = TimeSpan.FromSeconds(AuthorizeRetryIntervalInSec); - private static readonly TimeSpan AuthorizeInterval = TimeSpan.FromMinutes(AuthorizeIntervalInMinute); - private static readonly TimeSpan AuthorizeTimeout = TimeSpan.FromSeconds(10); - private readonly AccessKey _accessKey; private readonly string _appName; private readonly TimeSpan _accessTokenLifetime; @@ -35,13 +27,11 @@ internal class ServiceEndpointProvider : IServiceEndpointProvider, IDisposable public IWebProxy Proxy { get; } - private readonly TimerAwaitable _timer = new TimerAwaitable(TimeSpan.Zero, AuthorizeInterval); - public ServiceEndpointProvider( IServerNameProvider provider, ServiceEndpoint endpoint, ServiceOptions serviceOptions, - ILoggerFactory loggerFactory = null + ILoggerFactory loggerFactory ) { _accessTokenLifetime = serviceOptions.AccessTokenLifetime; @@ -53,43 +43,9 @@ public ServiceEndpointProvider( _generator = new DefaultServiceEndpointGenerator(endpoint); - _ = UpdateAccessKeyAsync(provider, endpoint, loggerFactory ?? NullLoggerFactory.Instance); - } - - public async Task UpdateAccessKeyAsync(IServerNameProvider provider, ServiceEndpoint endpoint, ILoggerFactory loggerFactory) - { if (endpoint.AccessKey is AadAccessKey key) - _timer.Start(); - else - return; - - var logger = loggerFactory.CreateLogger(); - - while (await _timer) { - var isAuthorized = false; - for (int i = 0; i < AuthorizeMaxRetryTimes; i++) - { - logger.LogInformation($"Try authorizing AccessKey...({i})"); - var source = new CancellationTokenSource(AuthorizeTimeout); - try - { - await key.AuthorizeAsync(endpoint.Endpoint, endpoint.Port, provider.GetName(), source.Token); - logger.LogInformation("AccessKey has been authorized successfully."); - isAuthorized = true; - break; - } - catch (Exception e) - { - logger.LogWarning(e, $"Failed to authorize AccessKey, will retry in {AuthorizeRetryIntervalInSec} seconds."); - await Task.Delay(AuthorizeRetryInterval); - } - } - - if (!isAuthorized) - { - logger.LogError($"AccessKey authorized failed more than {AuthorizeMaxRetryTimes} times."); - } + _ = key.UpdateAccessKeyAsync(provider, loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory))); } } @@ -142,10 +98,5 @@ public string GetServerEndpoint(string hubName) return _generator.GetServerEndpoint(hubName, _appName); } - - public void Dispose() - { - ((IDisposable)_timer).Dispose(); - } } } diff --git a/src/Microsoft.Azure.SignalR/GracefulShutdownOptions.cs b/src/Microsoft.Azure.SignalR/GracefulShutdownOptions.cs index 9d64e131d..1cd56e0aa 100644 --- a/src/Microsoft.Azure.SignalR/GracefulShutdownOptions.cs +++ b/src/Microsoft.Azure.SignalR/GracefulShutdownOptions.cs @@ -5,15 +5,12 @@ namespace Microsoft.Azure.SignalR public class GracefulShutdownOptions { /// - /// Specifies the timeout of a graceful shutdown process (in seconds). - /// Default value is 30 seconds. + /// Define the maximum waiting time to do the graceful shutdown process. /// public TimeSpan Timeout { get; set; } = Constants.Periods.DefaultShutdownTimeout; /// - /// Specifies if the client-connection assigned to this server can be migrated to another server. - /// Default value is 0. - /// 1: Migrate client-connection if the server was shutdown gracefully. + /// This mode defines the server's behavior after receiving a `Ctrl+C` (SIGINT). /// public GracefulShutdownMode Mode { get; set; } = GracefulShutdownMode.Off; } diff --git a/test/Microsoft.Azure.SignalR.AspNet.Tests/RunAzureSignalRTests.cs b/test/Microsoft.Azure.SignalR.AspNet.Tests/RunAzureSignalRTests.cs index 16b149789..8dd5182df 100644 --- a/test/Microsoft.Azure.SignalR.AspNet.Tests/RunAzureSignalRTests.cs +++ b/test/Microsoft.Azure.SignalR.AspNet.Tests/RunAzureSignalRTests.cs @@ -103,7 +103,7 @@ public void TestRunAzureSignalRWithInvalidConnectionString() { } }); - Assert.StartsWith("Connection string missing required properties endpoint and accesskey.", exception.Message); + Assert.StartsWith("Connection string missing required properties endpoint.", exception.Message); } [Fact] diff --git a/test/Microsoft.Azure.SignalR.Common.Tests/Auth/AccessKeyTests.cs b/test/Microsoft.Azure.SignalR.Common.Tests/Auth/AccessKeyTests.cs index 9f85851a6..e53753e25 100644 --- a/test/Microsoft.Azure.SignalR.Common.Tests/Auth/AccessKeyTests.cs +++ b/test/Microsoft.Azure.SignalR.Common.Tests/Auth/AccessKeyTests.cs @@ -9,28 +9,32 @@ public class AccessKeyTests private const string TestClientSecret = ""; private const string TestTenantId = ""; + private const string TestEndpoint = "http://localhost"; + private int? TestPort = 8080; + [Fact] public void TestConsturctor() { - var key = new AccessKey("abcde"); + var key = new AccessKey("abcde", TestEndpoint, TestPort); Assert.NotNull(key.Id); } [Fact] public void TestConstructorForAad() { - var key = new AadAccessKey(new AadManagedIdentityOptions()); + var key = new AadAccessKey(new AadManagedIdentityOptions(), TestEndpoint, TestPort); Assert.IsAssignableFrom(key); Assert.False(key.Authorized); Assert.Null(key.Id); + Assert.Null(key.Value); } [Fact(Skip ="Provide valid aad options")] public async Task TestAuthenticateAsync() { var options = new AadApplicationOptions(TestClientId, TestTenantId).WithClientSecret(TestClientSecret); - var key = new AadAccessKey(options); - await key.AuthorizeAsync("http://localhost", 8080, "serverId"); + var key = new AadAccessKey(options, TestEndpoint, TestPort); + await key.AuthorizeAsync("serverId"); Assert.True(key.Authorized); Assert.NotNull(key.Id); diff --git a/test/Microsoft.Azure.SignalR.Common.Tests/Auth/AuthUtilityTests.cs b/test/Microsoft.Azure.SignalR.Common.Tests/Auth/AuthUtilityTests.cs index 862141406..f6ef99987 100644 --- a/test/Microsoft.Azure.SignalR.Common.Tests/Auth/AuthUtilityTests.cs +++ b/test/Microsoft.Azure.SignalR.Common.Tests/Auth/AuthUtilityTests.cs @@ -21,7 +21,8 @@ public class AuthUtilityTests public void TestAccessTokenTooLongThrowsException() { var claims = GenerateClaims(100); - var exception = Assert.Throws(() => AuthUtility.GenerateAccessToken(new AccessKey(SigningKey), Audience, claims, DefaultLifetime, AccessTokenAlgorithm.HS256)); + var accessKey = new AccessKey(SigningKey, "http://localhost", 443); + var exception = Assert.Throws(() => AuthUtility.GenerateAccessToken(accessKey, Audience, claims, DefaultLifetime, AccessTokenAlgorithm.HS256)); Assert.Equal("AccessToken must not be longer than 4K.", exception.Message); } @@ -32,7 +33,8 @@ public void TestGenerateJwtBearerCaching() var count = 0; while (count < 1000) { - AuthUtility.GenerateJwtBearer(audience: Audience, expires: DateTime.UtcNow.Add(DefaultLifetime), signingKey: new AccessKey(SigningKey)); + var accessKey = new AccessKey(SigningKey, "http://localhost", 443); + AuthUtility.GenerateJwtBearer(audience: Audience, expires: DateTime.UtcNow.Add(DefaultLifetime), signingKey: accessKey); count++; }; diff --git a/test/Microsoft.Azure.SignalR.Common.Tests/ConnectionStringParserFacts.cs b/test/Microsoft.Azure.SignalR.Common.Tests/ConnectionStringParserFacts.cs index daee25a1d..db1d7bb0b 100644 --- a/test/Microsoft.Azure.SignalR.Common.Tests/ConnectionStringParserFacts.cs +++ b/test/Microsoft.Azure.SignalR.Common.Tests/ConnectionStringParserFacts.cs @@ -8,6 +8,7 @@ namespace Microsoft.Azure.SignalR.Common.Tests { public class ConnectionStringParserFacts { + [Theory] [InlineData("https://aaa", "endpoint=https://aaa;AccessKey=bbb;")] [InlineData("https://aaa", "ENDPOINT=https://aaa/;ACCESSKEY=bbb;")] @@ -15,12 +16,49 @@ public class ConnectionStringParserFacts [InlineData("http://aaa", "ENDPOINT=http://aaa/;ACCESSKEY=bbb;")] public void ValidPreviewConnectionString(string expectedEndpoint, string connectionString) { - var (endpoint, accessKey, version, port, clientEndpoint) = ConnectionStringParser.Parse(connectionString); + var (accessKey, version, clientEndpoint) = ConnectionStringParser.Parse(connectionString); + + Assert.Equal(expectedEndpoint, accessKey.Endpoint); + Assert.Equal("bbb", accessKey.Value); + Assert.Null(version); + Assert.Null(accessKey.Port); + } + + [Theory] + [InlineData("endpoint=https://aaa;AuthType=aad;clientId=123")] + [InlineData("endpoint=https://aaa;AuthType=aad;clientId=123;tenantId=aaaaaaaa-bbbb-bbbb-bbbb-cccccccccccc")] + public void InvliadApplicationConnectionString(string connectionString) + { + Assert.Throws(() => ConnectionStringParser.Parse(connectionString)); + } + + [Theory] + [InlineData("https://aaa", "endpoint=https://aaa;AuthType=aad;")] + [InlineData("https://aaa", "endpoint=https://aaa;AuthType=aad;clientSecret=xxxx;")] + [InlineData("https://aaa", "endpoint=https://aaa;AuthType=aad;tenantId=xxxx;")] + public void ValidMSIConnectionString(string expectedEndpoint, string connectionString) + { + var (accessKey, version, clientEndpoint) = ConnectionStringParser.Parse(connectionString); + + Assert.Equal(expectedEndpoint, accessKey.Endpoint); + Assert.IsType(accessKey); + Assert.IsType(((AadAccessKey)accessKey).Options); + Assert.Null(version); + Assert.Null(accessKey.Port); + Assert.Null(clientEndpoint); + } + + [Theory] + [InlineData("https://aaa", "endpoint=https://aaa;AuthType=aad;clientId=foo;clientSecret=bar;tenantId=aaaaaaaa-bbbb-bbbb-bbbb-cccccccccccc")] + public void ValidApplicationConnectionString(string expectedEndpoint, string connectionString) + { + var (accessKey, version, clientEndpoint) = ConnectionStringParser.Parse(connectionString); - Assert.Equal(expectedEndpoint, endpoint); - Assert.Equal("bbb", accessKey); + Assert.Equal(expectedEndpoint, accessKey.Endpoint); + Assert.IsType(accessKey); + Assert.IsType(((AadAccessKey)accessKey).Options); Assert.Null(version); - Assert.Null(port); + Assert.Null(accessKey.Port); Assert.Null(clientEndpoint); } @@ -31,12 +69,12 @@ public void ValidPreviewConnectionString(string expectedEndpoint, string connect [InlineData("http://aaa", "1.1-beta2", 1234, "ENDPOINT=http://aaa/;ACCESSKEY=bbb;Version=1.1-beta2;Port=1234")] public void ValidConnectionString(string expectedEndpoint, string expectedVersion, int? expectedPort, string connectionString) { - var (endpoint, accessKey, version, port, clientEndpoint) = ConnectionStringParser.Parse(connectionString); + var (accessKey, version, clientEndpoint) = ConnectionStringParser.Parse(connectionString); - Assert.Equal(expectedEndpoint, endpoint); - Assert.Equal("bbb", accessKey); + Assert.Equal(expectedEndpoint, accessKey.Endpoint); + Assert.Equal("bbb", accessKey.Value); Assert.Equal(expectedVersion, version); - Assert.Equal(expectedPort, port); + Assert.Equal(expectedPort, accessKey.Port); Assert.Null(clientEndpoint); } diff --git a/test/Microsoft.Azure.SignalR.Tests/AzureSignalRMarkerServiceFact.cs b/test/Microsoft.Azure.SignalR.Tests/AzureSignalRMarkerServiceFact.cs index f673c04c1..b477e9e4f 100644 --- a/test/Microsoft.Azure.SignalR.Tests/AzureSignalRMarkerServiceFact.cs +++ b/test/Microsoft.Azure.SignalR.Tests/AzureSignalRMarkerServiceFact.cs @@ -122,7 +122,7 @@ public void UseAzureSignalRWithInvalidConnectionString() { routes.MapHub("/chat"); })); - Assert.StartsWith("Connection string missing required properties endpoint and accesskey.", exception.Message); + Assert.StartsWith("Connection string missing required properties endpoint.", exception.Message); } [Fact] diff --git a/test/Microsoft.Azure.SignalR.Tests/JwtTokenHelper.cs b/test/Microsoft.Azure.SignalR.Tests/JwtTokenHelper.cs index 6bc584321..50821f97d 100644 --- a/test/Microsoft.Azure.SignalR.Tests/JwtTokenHelper.cs +++ b/test/Microsoft.Azure.SignalR.Tests/JwtTokenHelper.cs @@ -13,6 +13,10 @@ internal static class JwtTokenHelper { public static readonly JwtSecurityTokenHandler JwtHandler = new JwtSecurityTokenHandler(); + private const string TestEndpoint = "http://localhost"; + + private const int TestPort = 443; + public static string GenerateExpectedAccessToken(JwtSecurityToken token, string audience, AccessKey accessKey, IEnumerable customClaims = null) { var requestId = token.Claims.FirstOrDefault(claim => claim.Type == Constants.ClaimType.Id)?.Value; @@ -43,7 +47,7 @@ public static string GenerateExpectedAccessToken(JwtSecurityToken token, string public static string GenerateExpectedAccessToken(JwtSecurityToken token, string audience, string key, IEnumerable customClaims = null) { - return GenerateExpectedAccessToken(token, audience, new AccessKey(key), customClaims: customClaims); + return GenerateExpectedAccessToken(token, audience, new AccessKey(key, TestEndpoint, TestPort), customClaims: customClaims); } public static string GenerateJwtBearer( @@ -75,7 +79,7 @@ public static string GenerateJwtBearer( string signingKey ) { - return GenerateJwtBearer(audience, subject, expires, notBefore, issueAt, new AccessKey(signingKey)); + return GenerateJwtBearer(audience, subject, expires, notBefore, issueAt, new AccessKey(signingKey, TestEndpoint, TestPort)); } } } diff --git a/test/Microsoft.Azure.SignalR.Tests/ServiceEndpointProviderFacts.cs b/test/Microsoft.Azure.SignalR.Tests/ServiceEndpointProviderFacts.cs index 7e71a9722..e5675e52b 100644 --- a/test/Microsoft.Azure.SignalR.Tests/ServiceEndpointProviderFacts.cs +++ b/test/Microsoft.Azure.SignalR.Tests/ServiceEndpointProviderFacts.cs @@ -7,6 +7,7 @@ using System.Security.Claims; using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting.Server; +using Microsoft.Extensions.Logging.Abstractions; using Microsoft.Extensions.Options; using Xunit; @@ -32,16 +33,16 @@ public class ServiceEndpointProviderFacts private static readonly ServiceEndpointProvider[] EndpointProviderArray = { - new ServiceEndpointProvider(new DefaultServerNameProvider(), new ServiceEndpoint(ConnectionStringWithoutVersion), _optionsWithoutAppName), - new ServiceEndpointProvider(new DefaultServerNameProvider(), new ServiceEndpoint(ConnectionStringWithPreviewVersion), _optionsWithoutAppName), - new ServiceEndpointProvider(new DefaultServerNameProvider(), new ServiceEndpoint(ConnectionStringWithV1Version), _optionsWithoutAppName) + new ServiceEndpointProvider(new DefaultServerNameProvider(), new ServiceEndpoint(ConnectionStringWithoutVersion), _optionsWithoutAppName, NullLoggerFactory.Instance), + new ServiceEndpointProvider(new DefaultServerNameProvider(), new ServiceEndpoint(ConnectionStringWithPreviewVersion), _optionsWithoutAppName, NullLoggerFactory.Instance), + new ServiceEndpointProvider(new DefaultServerNameProvider(), new ServiceEndpoint(ConnectionStringWithV1Version), _optionsWithoutAppName, NullLoggerFactory.Instance) }; private static readonly ServiceEndpointProvider[] EndpointProviderArrayWithPrefix = { - new ServiceEndpointProvider(new DefaultServerNameProvider(), new ServiceEndpoint(ConnectionStringWithoutVersion), _optionsWithAppName), - new ServiceEndpointProvider(new DefaultServerNameProvider(), new ServiceEndpoint(ConnectionStringWithPreviewVersion), _optionsWithAppName), - new ServiceEndpointProvider(new DefaultServerNameProvider(), new ServiceEndpoint(ConnectionStringWithV1Version), _optionsWithAppName) + new ServiceEndpointProvider(new DefaultServerNameProvider(), new ServiceEndpoint(ConnectionStringWithoutVersion), _optionsWithAppName, NullLoggerFactory.Instance), + new ServiceEndpointProvider(new DefaultServerNameProvider(), new ServiceEndpoint(ConnectionStringWithPreviewVersion), _optionsWithAppName, NullLoggerFactory.Instance), + new ServiceEndpointProvider(new DefaultServerNameProvider(), new ServiceEndpoint(ConnectionStringWithV1Version), _optionsWithAppName, NullLoggerFactory.Instance) }; private static readonly (string path, string queryString, string expectedQuery)[] PathAndQueryArray = @@ -112,7 +113,7 @@ internal void GetClientEndpointWithAppName(IServiceEndpointProvider provider, st internal async Task GenerateMultipleAccessTokenShouldBeUnique() { var count = 1000; - var sep = new ServiceEndpointProvider(new DefaultServerNameProvider(), new ServiceEndpoint(ConnectionStringWithPreviewVersion), _optionsWithoutAppName); + var sep = new ServiceEndpointProvider(new DefaultServerNameProvider(), new ServiceEndpoint(ConnectionStringWithPreviewVersion), _optionsWithoutAppName, NullLoggerFactory.Instance); var userId = Guid.NewGuid().ToString(); var tokens = new List(); for (int i = 0; i < count; i++) @@ -211,7 +212,7 @@ internal async Task GenerateClientAccessTokenWithPrefix(IServiceEndpointProvider [InlineData(AccessTokenAlgorithm.HS512)] public async Task GenerateServerAccessTokenWithSpecifedAlgorithm(AccessTokenAlgorithm algorithm) { - var provider = new ServiceEndpointProvider(new DefaultServerNameProvider(), new ServiceEndpoint(ConnectionStringWithV1Version), new ServiceOptions() { AccessTokenAlgorithm = algorithm }); + var provider = new ServiceEndpointProvider(new DefaultServerNameProvider(), new ServiceEndpoint(ConnectionStringWithV1Version), new ServiceOptions() { AccessTokenAlgorithm = algorithm }, NullLoggerFactory.Instance); var generatedToken = await provider.GenerateServerAccessTokenAsync("hub1", "user1"); var token = JwtTokenHelper.JwtHandler.ReadJwtToken(generatedToken); @@ -224,7 +225,7 @@ public async Task GenerateServerAccessTokenWithSpecifedAlgorithm(AccessTokenAlgo [InlineData(AccessTokenAlgorithm.HS512)] public async Task GenerateClientAccessTokenWithSpecifedAlgorithm(AccessTokenAlgorithm algorithm) { - var provider = new ServiceEndpointProvider(new DefaultServerNameProvider(), new ServiceEndpoint(ConnectionStringWithV1Version), new ServiceOptions() { AccessTokenAlgorithm = algorithm }); + var provider = new ServiceEndpointProvider(new DefaultServerNameProvider(), new ServiceEndpoint(ConnectionStringWithV1Version), new ServiceOptions() { AccessTokenAlgorithm = algorithm }, NullLoggerFactory.Instance); var generatedToken = await provider.GenerateClientAccessTokenAsync("hub1"); var token = JwtTokenHelper.JwtHandler.ReadJwtToken(generatedToken); From 7d162b9a7572c6941a466d22727a661f6060e7e6 Mon Sep 17 00:00:00 2001 From: Terence Fan Date: Thu, 19 Nov 2020 14:47:18 +0800 Subject: [PATCH 16/18] graceful shutdown (#1108) --- samples/ChatSample/ChatSample/Startup.cs | 6 ++ .../ChatSample/ChatSample/wwwroot/index.html | 22 +++++- .../HubHost/ServiceHubDispatcher.cs | 2 - .../GracefulShutdownOptions.cs | 79 ++++++++++++++++++- .../HubHost/ServiceHubDispatcher.cs | 76 +++++++++++++++--- .../ServiceConnectionManager.cs | 1 - .../MockServiceHubDispatcher.cs | 2 + .../ServiceHubDispatcherTests.cs | 1 + .../TestHubContext.cs | 17 ++++ 9 files changed, 184 insertions(+), 22 deletions(-) create mode 100644 test/Microsoft.Azure.SignalR.Tests/TestHubContext.cs diff --git a/samples/ChatSample/ChatSample/Startup.cs b/samples/ChatSample/ChatSample/Startup.cs index cce6fa1df..9d62184db 100644 --- a/samples/ChatSample/ChatSample/Startup.cs +++ b/samples/ChatSample/ChatSample/Startup.cs @@ -1,6 +1,7 @@ using System; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; +using Microsoft.AspNetCore.SignalR; using Microsoft.Azure.SignalR; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; @@ -19,6 +20,11 @@ public void ConfigureServices(IServiceCollection services) { option.GracefulShutdown.Mode = GracefulShutdownMode.WaitForClientsClose; option.GracefulShutdown.Timeout = TimeSpan.FromSeconds(30); + + option.GracefulShutdown.Add(async (c) => + { + await c.Clients.All.SendAsync("exit"); + }); }) .AddMessagePackProtocol(); } diff --git a/samples/ChatSample/ChatSample/wwwroot/index.html b/samples/ChatSample/ChatSample/wwwroot/index.html index b71043a24..e8a78cc93 100644 --- a/samples/ChatSample/ChatSample/wwwroot/index.html +++ b/samples/ChatSample/ChatSample/wwwroot/index.html @@ -28,7 +28,17 @@

+ + + +

public IWebProxy Proxy { get; set; } - /// - /// Gets or sets a service endpoint of Azure SignalR Service. - /// - internal ServiceEndpoint ServiceEndpoint { get; set; } - /// /// Sets multiple service endpoints of Azure SignalR Service. /// - internal ServiceEndpoint[] ServiceEndpoints { get; set; } //not ready for public use + ServiceEndpoint[] IServiceEndpointOptions.Endpoints => _serviceEndpoints; //todo not ready for public use + + internal ServiceEndpoint[] Endpoints { get => _serviceEndpoints; set => _serviceEndpoints = value; } /// /// Gets or sets the transport type to Azure SignalR Service. Default value is Transient. /// public ServiceTransportType ServiceTransportType { get; set; } = ServiceTransportType.Transient; - - /// - /// Method called by management SDK to validate options. - /// - internal void ValidateOptions() - { - ValidateServiceEndpoint(); - ValidateServiceTransportType(); - } - - private void ValidateServiceEndpoint() - { - var notNullCount = 0; - if (ConnectionString != null) - { - notNullCount += 1; - } - if (ServiceEndpoint != null) - { - notNullCount += 1; - } - if (ServiceEndpoints != null) - { - notNullCount += 1; - } - - if (notNullCount == 0) - { - throw new InvalidOperationException($"Service endpoint(s) is/are not configured. Please set one of the following properties {nameof(ConnectionString)}, {nameof(ServiceEndpoint)}, {nameof(ServiceEndpoints)}."); - } - if (notNullCount > 1) - { - throw new InvalidOperationException($"Please set ONLY one of the following properties: {nameof(ConnectionString)}, {nameof(ServiceEndpoint)}, {nameof(ServiceEndpoints)}."); - } - if (ServiceEndpoints != null && ServiceEndpoints.Length == 0) - { - throw new InvalidOperationException($"The length of parameter {nameof(ServiceEndpoints)} is zero."); - } - } - - private void ValidateServiceTransportType() - { - if (!Enum.IsDefined(typeof(ServiceTransportType), ServiceTransportType)) - { - throw new ArgumentOutOfRangeException($"Not supported service transport type. " + - $"Supported transport types are {ServiceTransportType.Transient} and {ServiceTransportType.Persistent}."); - } - } } } \ No newline at end of file diff --git a/src/Microsoft.Azure.SignalR.Management/Configuration/ServiceManagerOptionsSetup.cs b/src/Microsoft.Azure.SignalR.Management/Configuration/ServiceManagerOptionsSetup.cs index 4b25d28c4..ef008eff6 100644 --- a/src/Microsoft.Azure.SignalR.Management/Configuration/ServiceManagerOptionsSetup.cs +++ b/src/Microsoft.Azure.SignalR.Management/Configuration/ServiceManagerOptionsSetup.cs @@ -24,6 +24,9 @@ public void Configure(ServiceManagerOptions options) if (_configuration != null) { _configuration.GetSection(Constants.Keys.AzureSignalRSectionKey).Bind(options); + + //Our configuration format of service endoints array is not the standard format to configure array supported by .NET + options.Endpoints = _configuration.GetSignalRServiceEndpoints(Constants.Keys.ConnectionStringDefaultKey); } } diff --git a/src/Microsoft.Azure.SignalR.Management/DependencyInjectionExtensions.cs b/src/Microsoft.Azure.SignalR.Management/DependencyInjectionExtensions.cs index d9f323abf..782cb6640 100644 --- a/src/Microsoft.Azure.SignalR.Management/DependencyInjectionExtensions.cs +++ b/src/Microsoft.Azure.SignalR.Management/DependencyInjectionExtensions.cs @@ -40,7 +40,7 @@ public static IServiceCollection AddSignalRServiceManager(this IS { //cascade options setup services.SetupOptions(); - services.PostConfigure(o => o.ValidateOptions()); + services.PostConfigure(o => o.ValidateOptions()); services.SetupOptions(); services.AddSignalR() diff --git a/src/Microsoft.Azure.SignalR/EndpointProvider/ServiceEndpointManager.cs b/src/Microsoft.Azure.SignalR/EndpointProvider/ServiceEndpointManager.cs index 63bc7326f..3148c75ff 100644 --- a/src/Microsoft.Azure.SignalR/EndpointProvider/ServiceEndpointManager.cs +++ b/src/Microsoft.Azure.SignalR/EndpointProvider/ServiceEndpointManager.cs @@ -4,6 +4,7 @@ using System; using System.Collections.Generic; using System.Threading.Tasks; +using Microsoft.Azure.SignalR.Common.Endpoints; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; @@ -52,7 +53,7 @@ private void OnChange(ServiceOptions options) { Log.DetectConfigurationChanges(_logger); - ReloadServiceEndpointsAsync(GetEndpoints(options)); + ReloadServiceEndpointsAsync(options.GetMergedEndpoints()); } private Task ReloadServiceEndpointsAsync(IEnumerable serviceEndpoints) diff --git a/test/Microsoft.Azure.SignalR.Management.Tests/ServiceManagerFacts.cs b/test/Microsoft.Azure.SignalR.Management.Tests/ServiceManagerFacts.cs index effc4215c..a1cca5b69 100644 --- a/test/Microsoft.Azure.SignalR.Management.Tests/ServiceManagerFacts.cs +++ b/test/Microsoft.Azure.SignalR.Management.Tests/ServiceManagerFacts.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft. All rights reserved. +// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; @@ -88,7 +88,7 @@ internal void GenerateClientEndpointTestWithClientEndpoint() { var manager = new ServiceManagerBuilder().WithOptions(o => { - o.ServiceEndpoints = new ServiceEndpoint[] { new ServiceEndpoint($"Endpoint=http://localhost;AccessKey=ABC;Version=1.0;ClientEndpoint=https://remote") }; + o.Endpoints = new ServiceEndpoint[] { new ServiceEndpoint($"Endpoint=http://localhost;AccessKey=ABC;Version=1.0;ClientEndpoint=https://remote") }; }).Build(); var clientEndpoint = manager.GetClientEndpoint(HubName); From 410b53af06b1f671b85addd258574b47f3709282 Mon Sep 17 00:00:00 2001 From: yzt Date: Thu, 19 Nov 2020 16:37:23 +0800 Subject: [PATCH 18/18] remove unused dependency in management SDK (#1119) --- build/dependencies.props | 1 - .../Microsoft.Azure.SignalR.Management.csproj | 1 - 2 files changed, 2 deletions(-) diff --git a/build/dependencies.props b/build/dependencies.props index 29bd69045..4a2a53d68 100644 --- a/build/dependencies.props +++ b/build/dependencies.props @@ -46,7 +46,6 @@ 2.2.0 2.2.0 1.0.11 - 2.1.0 0.3.0 diff --git a/src/Microsoft.Azure.SignalR.Management/Microsoft.Azure.SignalR.Management.csproj b/src/Microsoft.Azure.SignalR.Management/Microsoft.Azure.SignalR.Management.csproj index ef3591a1f..b8b522027 100644 --- a/src/Microsoft.Azure.SignalR.Management/Microsoft.Azure.SignalR.Management.csproj +++ b/src/Microsoft.Azure.SignalR.Management/Microsoft.Azure.SignalR.Management.csproj @@ -34,6 +34,5 @@ -