Disambiguate between protocol abstractions and sockets (this is temporary)
This commit is contained in:
parent
342c4c44f6
commit
01f4bf01cc
|
|
@ -30,7 +30,7 @@ namespace Microsoft.AspNetCore.SignalR.Tests
|
||||||
public TestClient(bool synchronousCallbacks = false, IHubProtocol protocol = null, IInvocationBinder invocationBinder = null, bool addClaimId = false)
|
public TestClient(bool synchronousCallbacks = false, IHubProtocol protocol = null, IInvocationBinder invocationBinder = null, bool addClaimId = false)
|
||||||
{
|
{
|
||||||
var options = new PipeOptions(readerScheduler: synchronousCallbacks ? PipeScheduler.Inline : null);
|
var options = new PipeOptions(readerScheduler: synchronousCallbacks ? PipeScheduler.Inline : null);
|
||||||
var pair = DuplexPipe.CreateConnectionPair(options, options);
|
var pair = Microsoft.AspNetCore.Sockets.DuplexPipe.CreateConnectionPair(options, options);
|
||||||
Connection = new DefaultConnectionContext(Guid.NewGuid().ToString(), pair.Transport, pair.Application);
|
Connection = new DefaultConnectionContext(Guid.NewGuid().ToString(), pair.Transport, pair.Application);
|
||||||
|
|
||||||
var claimValue = Interlocked.Increment(ref _id).ToString();
|
var claimValue = Interlocked.Increment(ref _id).ToString();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue