1 write to _context
Microsoft.AspNetCore.StaticAssets (1)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
162_context = context;
14 references to _context
Microsoft.AspNetCore.StaticAssets (14)
Development\StaticAssetDevelopmentRuntimeHandler.cs (14)
182var fileInfo = _context.RequestServices.GetRequiredService<IWebHostEnvironment>().WebRootFileProvider.GetFileInfo(_asset.AssetPath); 183var endpoint = _context.GetEndpoint()!; 185_context.Response.Headers.ETag = ""; 201_context.Response.Headers.ContentLength = stream.Length; 204_context.Response.Headers.ETag = new StringValues($"\"{eTag}\""); 207return stream.CopyToAsync(_context.Response.Body, cancellationToken); 212_context.Response.Headers.ETag = ""; 214_context.Response.Headers.ETag = GetETag(fileInfo); 215_context.Response.Headers.LastModified = fileInfo.LastModified.ToString("ddd, dd MMM yyyy HH:mm:ss 'GMT'", CultureInfo.InvariantCulture); 219var isRangeRequest = _context.Response.StatusCode == StatusCodes.Status206PartialContent; 227_context.Response.StatusCode = StatusCodes.Status416RangeNotSatisfiable; 228_context.Response.GetTypedHeaders().ContentRange = new ContentRangeHeaderValue(fileInfo.Length); 229_context.Response.ContentLength = 0; 242_context.Response.Headers.ContentLength = fileInfo.Length;