1 write to _context
Microsoft.AspNetCore.StaticAssets (1)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
75_context = context;
10 references to _context
Microsoft.AspNetCore.StaticAssets (10)
Development\StaticAssetDevelopmentRuntimeHandler.cs (10)
95var fileInfo = _context.RequestServices.GetRequiredService<IWebHostEnvironment>().WebRootFileProvider.GetFileInfo(_asset.AssetPath); 96var endpoint = _context.GetEndpoint()!; 98_context.Response.Headers.ETag = ""; 114_context.Response.Headers.ContentLength = stream.Length; 120_context.Response.Headers.ETag = new StringValues([$"\"{eTag}\"", weakETag]); 123return stream.CopyToAsync(_context.Response.Body, cancellationToken); 128_context.Response.Headers.ETag = ""; 130_context.Response.Headers.ETag = GetETag(fileInfo); 131_context.Response.Headers.ContentLength = fileInfo.Length; 132_context.Response.Headers.LastModified = fileInfo.LastModified.ToString("ddd, dd MMM yyyy HH:mm:ss 'GMT'", CultureInfo.InvariantCulture);