17 references to CreateNegotiationContent
Microsoft.AspNetCore.SignalR.Client.Tests (17)
HttpConnectionTests.ConnectionLifecycle.cs (1)
521
return ResponseUtils.CreateResponse(HttpStatusCode.OK, ResponseUtils.
CreateNegotiationContent
());
HttpConnectionTests.cs (2)
81
ResponseUtils.
CreateNegotiationContent
());
176
return ResponseUtils.CreateResponse(HttpStatusCode.OK, ResponseUtils.
CreateNegotiationContent
());
HttpConnectionTests.Negotiate.cs (5)
37
return RunInvalidNegotiateResponseTest<FormatException>(ResponseUtils.
CreateNegotiationContent
(connectionId: string.Empty), "Invalid connection id.");
43
return RunInvalidNegotiateResponseTest<InvalidDataException>(ResponseUtils.
CreateNegotiationContent
(negotiateVersion: 1, connectionToken: null), "Invalid negotiation response received.");
49
return RunInvalidNegotiateResponseTest<AggregateException>(ResponseUtils.
CreateNegotiationContent
(transportTypes: HttpTransportType.ServerSentEvents),
56
return RunInvalidNegotiateResponseTest<NoTransportSupportedException>(ResponseUtils.
CreateNegotiationContent
(transportTypes: HttpTransportType.None), "None of the transports supported by the client are supported by the server.");
77
ResponseUtils.
CreateNegotiationContent
());
HttpConnectionTests.Transport.cs (8)
39
return ResponseUtils.CreateResponse(HttpStatusCode.OK, ResponseUtils.
CreateNegotiationContent
());
87
testHttpHandler.OnNegotiate((_, cancellationToken) => ResponseUtils.CreateResponse(HttpStatusCode.OK, ResponseUtils.
CreateNegotiationContent
()));
114
return ResponseUtils.CreateResponse(HttpStatusCode.OK, ResponseUtils.
CreateNegotiationContent
());
162
return ResponseUtils.CreateResponse(HttpStatusCode.OK, ResponseUtils.
CreateNegotiationContent
());
354
return ResponseUtils.CreateResponse(HttpStatusCode.OK, ResponseUtils.
CreateNegotiationContent
());
428
return ResponseUtils.CreateResponse(HttpStatusCode.OK, ResponseUtils.
CreateNegotiationContent
());
463
return ResponseUtils.CreateResponse(HttpStatusCode.OK, ResponseUtils.
CreateNegotiationContent
());
524
return ResponseUtils.CreateResponse(HttpStatusCode.OK, ResponseUtils.
CreateNegotiationContent
());
TestHttpMessageHandler.cs (1)
44
OnNegotiate((_, cancellationToken) => ResponseUtils.CreateResponse(HttpStatusCode.OK, ResponseUtils.
CreateNegotiationContent
()));