5 types derived from ReadOnlySequenceFactory
Microsoft.AspNetCore.Http.Connections.Tests (5)
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (5)
27internal sealed class ArrayTestSequenceFactory : ReadOnlySequenceFactory 42internal sealed class MemoryTestSequenceFactory : ReadOnlySequenceFactory 57internal sealed class OwnedMemoryTestSequenceFactory : ReadOnlySequenceFactory 72internal sealed class SingleSegmentTestSequenceFactory : ReadOnlySequenceFactory 85internal sealed class BytePerSegmentTestSequenceFactory : ReadOnlySequenceFactory
7 references to ReadOnlySequenceFactory
Microsoft.AspNetCore.Http.Connections.Tests (7)
ServerSentEventsMessageFormatterTests.cs (1)
32var buffer = ReadOnlySequenceFactory.SegmentPerByteFactory.CreateWithContent(Encoding.UTF8.GetBytes(payload));
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (5)
13public static ReadOnlySequenceFactory ArrayFactory { get; } = new ArrayTestSequenceFactory(); 14public static ReadOnlySequenceFactory MemoryFactory { get; } = new MemoryTestSequenceFactory(); 15public static ReadOnlySequenceFactory OwnedMemoryFactory { get; } = new OwnedMemoryTestSequenceFactory(); 16public static ReadOnlySequenceFactory SingleSegmentFactory { get; } = new SingleSegmentTestSequenceFactory(); 17public static ReadOnlySequenceFactory SegmentPerByteFactory { get; } = new BytePerSegmentTestSequenceFactory();
WebSocketsTests.cs (1)
404var sequence = ReadOnlySequenceFactory.CreateSegments(new byte[] { 1 }, new byte[] { 15 });