66 references to Text
ClientSample (1)
RawSample.cs (1)
40DefaultTransferFormat = TransferFormat.Text,
Microsoft.AspNetCore.Http.Connections (6)
Internal\HttpConnectionContext.cs (2)
81SupportedFormats = TransferFormat.Binary | TransferFormat.Text; 82ActiveFormat = TransferFormat.Text;
Internal\HttpConnectionDispatcher.cs (4)
25TransferFormats = new List<string> { nameof(TransferFormat.Text), nameof(TransferFormat.Binary) } 32TransferFormats = new List<string> { nameof(TransferFormat.Text) } 39TransferFormats = new List<string> { nameof(TransferFormat.Text), nameof(TransferFormat.Binary) } 151connection.SupportedFormats = TransferFormat.Text;
Microsoft.AspNetCore.Http.Connections.Client (4)
Internal\LongPollingTransport.cs (1)
45if (transferFormat != TransferFormat.Binary && transferFormat != TransferFormat.Text)
Internal\ServerSentEventsTransport.cs (1)
48if (transferFormat != TransferFormat.Text)
Internal\WebSocketsTransport.cs (2)
291if (transferFormat != TransferFormat.Binary && transferFormat != TransferFormat.Text) 409await StartAsync(url, _webSocketMessageType == WebSocketMessageType.Binary ? TransferFormat.Binary : TransferFormat.Text,
Microsoft.AspNetCore.Http.Connections.Tests (8)
HttpConnectionDispatcherTests.cs (7)
1791[InlineData(HttpTransportType.ServerSentEvents, TransferFormat.Text)] 1792[InlineData(HttpTransportType.WebSockets, TransferFormat.Binary | TransferFormat.Text)] 3271DefaultTransferFormat = TransferFormat.Text, 3332DefaultTransferFormat = TransferFormat.Text, 3433DefaultTransferFormat = TransferFormat.Text, 3472DefaultTransferFormat = TransferFormat.Text, 3546DefaultTransferFormat = TransferFormat.Text,
WebSocketsTests.cs (1)
74[InlineData(TransferFormat.Text, nameof(WebSocketMessageType.Text))]
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
HubProtocolVersionTests.cs (1)
110DefaultTransferFormat = TransferFormat.Text
Microsoft.AspNetCore.SignalR.Client.Tests (28)
HttpConnectionFactoryTests.cs (4)
34DefaultTransferFormat = TransferFormat.Text, 50Options.Create(new HttpConnectionOptions { DefaultTransferFormat = TransferFormat.Text }), 68DefaultTransferFormat = TransferFormat.Text 98{ $"{nameof(HttpConnectionOptions.DefaultTransferFormat)}", TransferFormat.Text },
HttpConnectionTests.Helpers.cs (2)
26TransferFormat transferFormat = TransferFormat.Text, 48TransferFormat transferFormat = TransferFormat.Text)
HttpConnectionTests.Negotiate.cs (2)
515.Returns(new TestTransport(transferFormat: TransferFormat.Text | TransferFormat.Binary)); 564.Returns(new TestTransport(transferFormat: TransferFormat.Text | TransferFormat.Binary));
HttpConnectionTests.Transport.cs (2)
309await connection.StartAsync(TransferFormat.Text).DefaultTimeout(); 311Assert.Equal(TransferFormat.Text, transport.Format);
LongPollingTransportTests.cs (3)
582[InlineData(TransferFormat.Text)] 610[InlineData(TransferFormat.Text | TransferFormat.Binary)] // Multiple values not allowed 741var startTask = transport.StartAsync(TestUri, TransferFormat.Text);
ResponseUtils.cs (3)
75transferFormats = new[] { nameof(TransferFormat.Text), nameof(TransferFormat.Binary) } 83transferFormats = new[] { nameof(TransferFormat.Text) } 91transferFormats = new[] { nameof(TransferFormat.Text), nameof(TransferFormat.Binary) }
ServerSentEventsTransportTests.cs (10)
54new Uri("http://fakeuri.org"), TransferFormat.Text).DefaultTimeout(); 103new Uri("http://fakeuri.org"), TransferFormat.Text).DefaultTimeout(); 153new Uri("http://fakeuri.org"), TransferFormat.Text).DefaultTimeout(); 209new Uri("http://fakeuri.org"), TransferFormat.Text).DefaultTimeout(); 259new Uri("http://fakeuri.org"), TransferFormat.Text).DefaultTimeout(); 286new Uri("http://fakeuri.org"), TransferFormat.Text).DefaultTimeout(); 340new Uri("http://fakeuri.org"), TransferFormat.Text).DefaultTimeout(); 383[InlineData(TransferFormat.Text | TransferFormat.Binary)] // Multiple values not allowed 433await sseTransport.StartAsync(new Uri("http://fakeuri.org"), TransferFormat.Text).DefaultTimeout(); 487new Uri("http://fakeuri.org"), TransferFormat.Text).DefaultTimeout();
TestTransport.cs (1)
29public TestTransport(Func<Task> onTransportStop = null, Func<Task> onTransportStart = null, TransferFormat transferFormat = TransferFormat.Text)
WebSocketsTransportTests.cs (1)
33new Uri("http://fakeuri.org"), TransferFormat.Text).DefaultTimeout();
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
RedisProtocolBenchmark.cs (1)
131public TransferFormat TransferFormat => TransferFormat.Text;
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Protocol\JsonHubProtocol.cs (1)
80public TransferFormat TransferFormat => TransferFormat.Text;
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
Protocol\NewtonsoftJsonHubProtocol.cs (1)
70public TransferFormat TransferFormat => TransferFormat.Text;
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 (12)
EndToEndTests.cs (4)
66var connection = new HttpConnection(new HttpConnectionOptions { Url = new Uri(url), DefaultTransferFormat = TransferFormat.Text }, LoggerFactory, new TestTransportFactory()); 80var connection = new HttpConnection(new HttpConnectionOptions { Url = new Uri(url), Transports = transportType, DefaultTransferFormat = TransferFormat.Text }, LoggerFactory); 492DefaultTransferFormat = TransferFormat.Text, 775yield return new[] { transport[0], TransferFormat.Text };
HubConnectionHandlerTests.cs (5)
285client.SupportedFormats = TransferFormat.Text; 315client.SupportedFormats = TransferFormat.Text; 345client.SupportedFormats = TransferFormat.Text; 388client.SupportedFormats = TransferFormat.Text; 427client.SupportedFormats = TransferFormat.Text;
WebSocketsTransportTests.cs (3)
172[InlineData(TransferFormat.Text)] 194[InlineData(TransferFormat.Text)] 211[InlineData(TransferFormat.Text | TransferFormat.Binary)] // Multiple values not allowed
Microsoft.AspNetCore.SignalR.Tests.Utils (2)
DummyHubProtocol.cs (1)
21public TransferFormat TransferFormat => TransferFormat.Text;
TestClient.cs (1)
37public TransferFormat SupportedFormats { get; set; } = TransferFormat.Text | TransferFormat.Binary;