34 references to PreconditionState
Microsoft.AspNetCore.Http.Results (34)
src\Shared\ResultsHelpers\FileResultHelper.cs (34)
109
var
preconditionState = GetPreconditionState(httpRequestHeaders, lastModified, etag, logger);
115
if (preconditionState ==
PreconditionState
.NotModified)
120
else if (preconditionState ==
PreconditionState
.PreconditionFailed)
146
&& (preconditionState ==
PreconditionState
.Unspecified || preconditionState ==
PreconditionState
.ShouldProcess)
194
internal static
PreconditionState
GetPreconditionState(
200
var
ifMatchState =
PreconditionState
.Unspecified;
201
var
ifNoneMatchState =
PreconditionState
.Unspecified;
202
var
ifModifiedSinceState =
PreconditionState
.Unspecified;
203
var
ifUnmodifiedSinceState =
PreconditionState
.Unspecified;
213
matchFoundState:
PreconditionState
.ShouldProcess,
214
matchNotFoundState:
PreconditionState
.PreconditionFailed);
216
if (ifMatchState ==
PreconditionState
.PreconditionFailed)
230
matchFoundState:
PreconditionState
.NotModified,
231
matchNotFoundState:
PreconditionState
.ShouldProcess);
241
ifModifiedSinceState = modified ?
PreconditionState
.ShouldProcess :
PreconditionState
.NotModified;
249
ifUnmodifiedSinceState = unmodified ?
PreconditionState
.ShouldProcess :
PreconditionState
.PreconditionFailed;
251
if (ifUnmodifiedSinceState ==
PreconditionState
.PreconditionFailed)
257
var
state = GetMaxPreconditionState(ifMatchState, ifNoneMatchState, ifModifiedSinceState, ifUnmodifiedSinceState);
261
private static
PreconditionState
GetEtagMatchState(
265
PreconditionState
matchFoundState,
266
PreconditionState
matchNotFoundState)
270
var
state = matchNotFoundState;
283
return
PreconditionState
.Unspecified;
376
private static
PreconditionState
GetMaxPreconditionState(params
PreconditionState
[] states)
378
var
max =
PreconditionState
.Unspecified;