33 references to PreconditionState
Microsoft.AspNetCore.StaticAssets (33)
StaticAssetsInvoker.cs (33)
139case PreconditionState.Unspecified:
140case PreconditionState.ShouldProcess:
174case PreconditionState.NotModified:
178case PreconditionState.PreconditionFailed:
286public (PreconditionState, bool isRange, RangeItemHeaderValue? range) ComprehendRequestHeaders()
298private (PreconditionState ifMatch, PreconditionState ifNoneMatch) ComputeIfMatch()
301var ifMatchResult = PreconditionState.Unspecified;
307ifMatchResult = PreconditionState.PreconditionFailed;
312ifMatchResult = PreconditionState.ShouldProcess;
319var ifNoneMatchResult = PreconditionState.Unspecified;
323ifNoneMatchResult = PreconditionState.ShouldProcess;
328ifNoneMatchResult = PreconditionState.NotModified;
337private (PreconditionState ifModifiedSince, PreconditionState ifUnmodifiedSince) ComputeIfModifiedSince()
343var ifModifiedSinceResult = PreconditionState.Unspecified;
348ifModifiedSinceResult = modified ? PreconditionState.ShouldProcess : PreconditionState.NotModified;
352var ifUnmodifiedSinceResult = PreconditionState.Unspecified;
357ifUnmodifiedSinceResult = unmodified ? PreconditionState.ShouldProcess : PreconditionState.PreconditionFailed;
407public static PreconditionState GetPreconditionState(
408PreconditionState ifMatchState,
409PreconditionState ifNoneMatchState,
410PreconditionState ifModifiedSinceState,
411PreconditionState ifUnmodifiedSinceState)
413Span<PreconditionState> states = [ifMatchState, ifNoneMatchState, ifModifiedSinceState, ifUnmodifiedSinceState];
414var max = PreconditionState.Unspecified;