5 writes to SupportedProtocols
Microsoft.AspNetCore.SignalR.Core (2)
HubOptionsSetup.cs (1)
68options.SupportedProtocols = new List<string>(_defaultProtocols.Count);
HubOptionsSetup`T.cs (1)
32options.SupportedProtocols = new List<string>(_hubOptions.SupportedProtocols ?? Array.Empty<string>());
Microsoft.AspNetCore.SignalR.Tests (3)
AddSignalRTests.cs (1)
147options.SupportedProtocols = null;
HubConnectionHandlerTests.cs (2)
2489o.SupportedProtocols = null; 2513o.SupportedProtocols = new List<string>();
21 references to SupportedProtocols
Microsoft.AspNetCore.Components.Server (2)
DependencyInjection\ComponentServiceCollectionExtensions.cs (2)
53options.SupportedProtocols.Clear(); 54options.SupportedProtocols.Add(BlazorPackHubProtocol.ProtocolName);
Microsoft.AspNetCore.Components.Server.Tests (5)
DependencyInjection\ComponentServiceCollectionExtensionsTest.cs (5)
24var protocol = Assert.Single(options.Value.SupportedProtocols); 37options.SupportedProtocols.Add("test"); 45var protocol = Assert.Single(options.Value.SupportedProtocols); 63options.SupportedProtocols.Add("test"); 72var protocol = Assert.Single(options.Value.SupportedProtocols);
Microsoft.AspNetCore.SignalR.Core (5)
HubConnectionHandler.cs (2)
113var supportedProtocols = _hubOptions.SupportedProtocols ?? _globalHubOptions.SupportedProtocols;
HubOptionsSetup.cs (2)
66if (options.SupportedProtocols == null) 78options.SupportedProtocols.Add(protocol);
HubOptionsSetup`T.cs (1)
32options.SupportedProtocols = new List<string>(_hubOptions.SupportedProtocols ?? Array.Empty<string>());
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
RedisHubLifetimeManager.cs (2)
78_protocol = new RedisProtocol(new DefaultHubMessageSerializer(hubProtocolResolver, globalHubOptions.Value.SupportedProtocols, hubOptions.Value.SupportedProtocols));
Microsoft.AspNetCore.SignalR.Tests (7)
AddSignalRTests.cs (7)
81options.SupportedProtocols.Clear(); 86Assert.Single(serviceProvider.GetRequiredService<IOptions<HubOptions>>().Value.SupportedProtocols); 87Assert.Empty(serviceProvider.GetRequiredService<IOptions<HubOptions<CustomHub>>>().Value.SupportedProtocols); 111Assert.Equal(globalHubOptions.SupportedProtocols, hubOptions.SupportedProtocols); 162Assert.Null(globalOptions.SupportedProtocols); 182Assert.Collection(serviceProvider.GetRequiredService<IOptions<HubOptions<CustomHub>>>().Value.SupportedProtocols,