5 types derived from ReadOnlySequenceFactory
Microsoft.AspNetCore.SignalR.Common.Tests (5)
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (5)
27
internal sealed class ArrayTestSequenceFactory :
ReadOnlySequenceFactory
42
internal sealed class MemoryTestSequenceFactory :
ReadOnlySequenceFactory
57
internal sealed class OwnedMemoryTestSequenceFactory :
ReadOnlySequenceFactory
72
internal sealed class SingleSegmentTestSequenceFactory :
ReadOnlySequenceFactory
85
internal sealed class BytePerSegmentTestSequenceFactory :
ReadOnlySequenceFactory
7 references to ReadOnlySequenceFactory
Microsoft.AspNetCore.SignalR.Common.Tests (7)
Internal\Protocol\HandshakeProtocolTests.cs (2)
37
var message =
ReadOnlySequenceFactory
.SegmentPerByteFactory.CreateWithContent("{\"protocol\":\"json\",\"version\":1}\u001e");
61
var message =
ReadOnlySequenceFactory
.SegmentPerByteFactory.CreateWithContent("{\"error\":\"dummy\"}\u001e");
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (5)
13
public static
ReadOnlySequenceFactory
ArrayFactory { get; } = new ArrayTestSequenceFactory();
14
public static
ReadOnlySequenceFactory
MemoryFactory { get; } = new MemoryTestSequenceFactory();
15
public static
ReadOnlySequenceFactory
OwnedMemoryFactory { get; } = new OwnedMemoryTestSequenceFactory();
16
public static
ReadOnlySequenceFactory
SingleSegmentFactory { get; } = new SingleSegmentTestSequenceFactory();
17
public static
ReadOnlySequenceFactory
SegmentPerByteFactory { get; } = new BytePerSegmentTestSequenceFactory();