7 references to new
Microsoft.AspNetCore.Components.Server (2)
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\ExtensionResult.cs (1)
19this.Data = new ReadOnlySequence<byte>(data);
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\SequenceReader.cs (1)
116this.sequence = new ReadOnlySequence<T>(this.memory);
Microsoft.AspNetCore.OutputCaching (4)
OutputCacheEntryFormatter.cs (3)
49await bufferStore.SetAsync(key, new(buffer.GetCommittedMemory()), CopyToLeasedMemory(tags, out var lease), duration, cancellationToken); 319result.SetBody(new ReadOnlySequence<byte>(ReadSegment(ref reader)), recycleBuffers: false); // we're reusing the live payload buffers 369result.SetBody(new(reader.ReadBytesMemory(payloadLength)), recycleBuffers: false); // we're reusing the live payload buffers
RecyclableSequenceBuilder.cs (1)
44return new(memory);
Microsoft.Extensions.Caching.Hybrid.Tests (1)
DistributedCacheTests.cs (1)
295payload = new(mem);