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