58 references to Binary
Microsoft.AspNetCore.Components.Server (1)
BlazorPack\BlazorPackHubProtocol.cs (1)
30public TransferFormat TransferFormat => TransferFormat.Binary;
Microsoft.AspNetCore.Http.Connections (4)
Internal\HttpConnectionContext.cs (1)
81SupportedFormats = TransferFormat.Binary | TransferFormat.Text;
Internal\HttpConnectionDispatcher.cs (2)
25TransferFormats = new List<string> { nameof(TransferFormat.Text), nameof(TransferFormat.Binary) } 39TransferFormats = new List<string> { nameof(TransferFormat.Text), nameof(TransferFormat.Binary) }
Internal\Transports\WebSocketsServerTransport.cs (1)
228var webSocketMessageType = (_connection.ActiveFormat == TransferFormat.Binary
Microsoft.AspNetCore.Http.Connections.Client (5)
HttpConnectionOptions.cs (1)
251public TransferFormat DefaultTransferFormat { get; set; } = TransferFormat.Binary;
Internal\LongPollingTransport.cs (1)
45if (transferFormat != TransferFormat.Binary && transferFormat != TransferFormat.Text)
Internal\WebSocketsTransport.cs (3)
291if (transferFormat != TransferFormat.Binary && transferFormat != TransferFormat.Text) 296_webSocketMessageType = transferFormat == TransferFormat.Binary 409await StartAsync(url, _webSocketMessageType == WebSocketMessageType.Binary ? TransferFormat.Binary : TransferFormat.Text,
Microsoft.AspNetCore.Http.Connections.Tests (2)
HttpConnectionDispatcherTests.cs (1)
1792[InlineData(HttpTransportType.WebSockets, TransferFormat.Binary | TransferFormat.Text)]
WebSocketsTests.cs (1)
75[InlineData(TransferFormat.Binary, nameof(WebSocketMessageType.Binary))]
Microsoft.AspNetCore.SignalR.Client.Tests (28)
HttpConnectionTests.cs (1)
37Assert.Equal(TransferFormat.Binary, httpOptions.DefaultTransferFormat);
HttpConnectionTests.Negotiate.cs (4)
515.Returns(new TestTransport(transferFormat: TransferFormat.Text | TransferFormat.Binary)); 520CreateConnection(testHttpHandler, transportFactory: transportFactory.Object, loggerFactory: noErrorScope.LoggerFactory, transferFormat: TransferFormat.Binary), 564.Returns(new TestTransport(transferFormat: TransferFormat.Text | TransferFormat.Binary)); 567CreateConnection(testHttpHandler, transportFactory: transportFactory.Object, transferFormat: TransferFormat.Binary),
HttpConnectionTests.Transport.cs (1)
306CreateConnection(transport: transport, transferFormat: TransferFormat.Binary),
HubConnectionTests.cs (1)
989public TransferFormat TransferFormat => TransferFormat.Binary;
LongPollingTransportTests.cs (16)
50await longPollingTransport.StartAsync(TestUri, TransferFormat.Binary); 83await longPollingTransport.StartAsync(TestUri, TransferFormat.Binary); 141await longPollingTransport.StartAsync(TestUri, TransferFormat.Binary); 171var exception = await Assert.ThrowsAsync<HttpRequestException>(() => longPollingTransport.StartAsync(TestUri, TransferFormat.Binary)); 204await longPollingTransport.StartAsync(TestUri, TransferFormat.Binary); 261await longPollingTransport.StartAsync(TestUri, TransferFormat.Binary).DefaultTimeout(); 303await longPollingTransport.StartAsync(TestUri, TransferFormat.Binary); 349await longPollingTransport.StartAsync(TestUri, TransferFormat.Binary); 382await longPollingTransport.StartAsync(TestUri, TransferFormat.Binary); 433await longPollingTransport.StartAsync(TestUri, TransferFormat.Binary); 499await longPollingTransport.StartAsync(TestUri, TransferFormat.Binary); 570await longPollingTransport.StartAsync(TestUri, TransferFormat.Binary); 581[InlineData(TransferFormat.Binary)] 610[InlineData(TransferFormat.Text | TransferFormat.Binary)] // Multiple values not allowed 668await longPollingTransport.StartAsync(TestUri, TransferFormat.Binary); 689await longPollingTransport.StartAsync(TestUri, TransferFormat.Binary);
ResponseUtils.cs (2)
75transferFormats = new[] { nameof(TransferFormat.Text), nameof(TransferFormat.Binary) } 91transferFormats = new[] { nameof(TransferFormat.Text), nameof(TransferFormat.Binary) }
ServerSentEventsTransportTests.cs (3)
374var ex = await Assert.ThrowsAsync<ArgumentException>(() => sseTransport.StartAsync(new Uri("http://fakeuri.org"), TransferFormat.Binary).DefaultTimeout()); 382[InlineData(TransferFormat.Binary)] // Binary not supported 383[InlineData(TransferFormat.Text | TransferFormat.Binary)] // Multiple values not allowed
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
Protocol\MessagePackHubProtocol.cs (1)
33public TransferFormat TransferFormat => TransferFormat.Binary;
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\SignalR\common\testassets\Tests.Utils\TestClient.cs (1)
37public TransferFormat SupportedFormats { get; set; } = TransferFormat.Text | TransferFormat.Binary;
Microsoft.AspNetCore.SignalR.Tests (14)
EndToEndTests.cs (1)
779yield return new[] { transport[0], TransferFormat.Binary };
HubConnectionHandlerTests.cs (4)
2460client.SupportedFormats = TransferFormat.Binary; 2498client.SupportedFormats = TransferFormat.Binary; 2522client.SupportedFormats = TransferFormat.Binary; 3896testProtocol.Setup(m => m.TransferFormat).Returns(TransferFormat.Binary);
WebSocketsTransportTests.cs (9)
48TransferFormat.Binary).DefaultTimeout(); 81await webSocketsTransport.StartAsync(new Uri("http://FakeEndpot.com/echo"), TransferFormat.Binary).DefaultTimeout(); 96TransferFormat.Binary).DefaultTimeout(); 110TransferFormat.Binary).DefaultTimeout(); 141TransferFormat.Binary).DefaultTimeout(); 164TransferFormat.Binary); 173[InlineData(TransferFormat.Binary)] 195[InlineData(TransferFormat.Binary)] 211[InlineData(TransferFormat.Text | TransferFormat.Binary)] // Multiple values not allowed
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
TestClient.cs (1)
37public TransferFormat SupportedFormats { get; set; } = TransferFormat.Text | TransferFormat.Binary;
SocialWeather (1)
PersistentConnectionLifeTimeManager.cs (1)
30transferFormatFeature.ActiveFormat = TransferFormat.Binary;