1 write to _context
Microsoft.AspNetCore.StaticAssets (1)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
156_context = context;
14 references to _context
Microsoft.AspNetCore.StaticAssets (14)
Development\StaticAssetDevelopmentRuntimeHandler.cs (14)
176var fileInfo = _context.RequestServices.GetRequiredService<IWebHostEnvironment>().WebRootFileProvider.GetFileInfo(_asset.AssetPath); 177var endpoint = _context.GetEndpoint()!; 179_context.Response.Headers.ETag = ""; 195_context.Response.Headers.ContentLength = stream.Length; 198_context.Response.Headers.ETag = new StringValues($"\"{eTag}\""); 201return stream.CopyToAsync(_context.Response.Body, cancellationToken); 206_context.Response.Headers.ETag = ""; 208_context.Response.Headers.ETag = GetETag(fileInfo); 209_context.Response.Headers.LastModified = fileInfo.LastModified.ToString("ddd, dd MMM yyyy HH:mm:ss 'GMT'", CultureInfo.InvariantCulture); 213var isRangeRequest = _context.Response.StatusCode == StatusCodes.Status206PartialContent; 221_context.Response.StatusCode = StatusCodes.Status416RangeNotSatisfiable; 222_context.Response.GetTypedHeaders().ContentRange = new ContentRangeHeaderValue(fileInfo.Length); 223_context.Response.ContentLength = 0; 236_context.Response.Headers.ContentLength = fileInfo.Length;