3 writes to FileStream
Microsoft.AspNetCore.WebUtilities (3)
FileBufferingWriteStream.cs (3)
208
FileStream
= null;
234
FileStream
= null;
279
FileStream
= new FileStream(
15 references to FileStream
Microsoft.AspNetCore.WebUtilities (15)
FileBufferingWriteStream.cs (15)
76
public override long Length => PagedByteBuffer.Length + (
FileStream
?.Length ?? 0);
133
PagedByteBuffer.MoveTo(
FileStream
);
135
FileStream
.Write(buffer, offset, count);
172
await PagedByteBuffer.MoveToAsync(
FileStream
, cancellationToken);
173
await
FileStream
.WriteAsync(buffer, cancellationToken);
199
if (
FileStream
!= null)
202
await using var readStream = new FileStream(
FileStream
.Name, FileMode.Open, FileAccess.Read, FileShare.Delete | FileShare.ReadWrite, bufferSize: 1, useAsync: true);
207
await
FileStream
.DisposeAsync();
225
if (
FileStream
!= null)
228
await using var readStream = new FileStream(
FileStream
.Name, FileMode.Open, FileAccess.Read, FileShare.Delete | FileShare.ReadWrite, bufferSize: 1, useAsync: true);
233
await
FileStream
.DisposeAsync();
248
FileStream
?.Dispose();
260
await (
FileStream
?.DisposeAsync() ?? default);
264
[MemberNotNull(nameof(
FileStream
))]
267
if (
FileStream
== null)