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)
95
var fileInfo =
_context
.RequestServices.GetRequiredService<IWebHostEnvironment>().WebRootFileProvider.GetFileInfo(_asset.AssetPath);
96
var endpoint =
_context
.GetEndpoint()!;
98
_context
.Response.Headers.ETag = "";
114
_context
.Response.Headers.ContentLength = stream.Length;
120
_context
.Response.Headers.ETag = new StringValues([$"\"{eTag}\"", weakETag]);
123
return 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);