14 writes to Name
Microsoft.NET.Sdk.StaticWebAssets.Tasks (14)
_generated\11\StaticWebAssetsJsonSerializerContext.StaticWebAssetEndpointResponseHeader.g.cs (1)
59
Setter = static (obj, value) => global::System.Runtime.CompilerServices.Unsafe.Unbox<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointResponseHeader>(obj).
Name
= value!,
ApplyCompressionNegotiation.cs (5)
91
Name
= "Vary",
146
Name
= "Vary",
226
Name
= "Content-Encoding",
231
Name
= "Vary",
410
Name
= "ETag",
DefineStaticWebAssetEndpoints.cs (6)
171
Name
= "Content-Length",
176
Name
= "Content-Type",
181
Name
= "ETag",
186
Name
= "Last-Modified",
196
headers[4] = new() {
Name
= "Cache-Control", Value = "max-age=31536000, immutable" };
203
headers[4] = new() {
Name
= "Cache-Control", Value = !string.IsNullOrEmpty(cacheSetting) ? cacheSetting : "no-cache" };
UpdateStaticWebAssetEndpoints.cs (2)
224
(name, value) => new StaticWebAssetEndpointResponseHeader {
Name
= name, Value = value },
331
Name
= operation.Name,
26 references to Name
Microsoft.NET.Sdk.StaticWebAssets.Tasks (26)
_generated\11\StaticWebAssetsJsonSerializerContext.StaticWebAssetEndpointResponseHeader.g.cs (2)
58
Getter = static obj => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointResponseHeader)obj).
Name
,
100
writer.WriteString(PropName_Name, ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointResponseHeader)value).
Name
);
ApplyCompressionNegotiation.cs (11)
168
if (string.Equals(header.
Name
, "Vary", StringComparison.OrdinalIgnoreCase) &&
184
result.Add(responseHeader.
Name
);
259
if (string.Equals(header.
Name
, "ETag", StringComparison.Ordinal))
298
if (string.Equals(responseHeader.
Name
, "Content-Encoding", StringComparison.Ordinal))
373
if (string.Equals(header.
Name
, "Content-Type", StringComparison.Ordinal))
381
Log.LogMessage(MessageImportance.Low, " Adding header '{0}' to related endpoint '{1}'", header.
Name
, relatedEndpointCandidateRoute);
393
if (!compressedHeaders.Contains(header.
Name
))
395
Log.LogMessage(MessageImportance.Low, " Adding header '{0}' to related endpoint '{1}'", header.
Name
, relatedEndpointCandidate.Route);
398
else if (string.Equals(AttachWeakETagToCompressedAssets, "ResponseHeader", StringComparison.Ordinal) && string.Equals(header.
Name
, "ETag", StringComparison.Ordinal))
413
}else if (string.Equals(header.
Name
, "Content-Type", StringComparison.Ordinal))
421
Log.LogMessage(MessageImportance.Low, " Skipping header '{0}' for related endpoint '{1}'", header.
Name
, relatedEndpointCandidate.Route);
Data\StaticWebAssetEndpoint.cs (2)
379
var responseHeaderComparison = ResponseHeaders[i].
Name
.CompareTo(other.ResponseHeaders[i].
Name
);
Data\StaticWebAssetEndpointResponseHeader.cs (6)
29
private string GetDebuggerDisplay() => $"{
Name
}: {Value}";
34
public bool Equals(StaticWebAssetEndpointResponseHeader other) => string.Equals(
Name
, other.
Name
, StringComparison.Ordinal) &&
45
return HashCode.Combine(
Name
, Value);
49
public int CompareTo(StaticWebAssetEndpointResponseHeader other) => string.CompareOrdinal(
Name
, other.
Name
) switch
FilterStaticWebAssetEndpoints.cs (1)
122
if (MeetsCriteria(criteria, header.
Name
, header.Value))
GenerateStaticWebAssetEndpointsManifest.cs (1)
147
if (!string.Equals(header.
Name
, "Link", StringComparison.OrdinalIgnoreCase))
UpdateStaticWebAssetEndpoints.cs (3)
132
var (headers, headerRemoved) = RemoveAllIfFound(endpoint.ResponseHeaders, h => h.
Name
, h => h.Value, operation.Name, operation.Value);
222
h => h.
Name
,
290
var (headers, headerRemoved) = RemoveFirstIfFound(endpoint.ResponseHeaders, h => h.
Name
, h => h.Value, operation.Name, operation.Value);