20 references to LastModified
Microsoft.AspNetCore.HeaderParsing.Tests (7)
ParserTests.cs (7)
333Assert.Equal(DayOfWeek.Wednesday, result!.LastModified!.Value.DayOfWeek); 334Assert.Equal(21, result!.LastModified.Value.Day); 335Assert.Equal(10, result!.LastModified.Value.Month); 336Assert.Equal(2015, result!.LastModified.Value.Year); 337Assert.Equal(7, result!.LastModified.Value.Hour); 338Assert.Equal(28, result!.LastModified!.Value.Minute); 339Assert.Equal(14, result!.LastModified.Value.Second);
Microsoft.AspNetCore.Http.Results (3)
src\Shared\ResultsHelpers\FileResultHelper.cs (3)
176if (ifRange.LastModified.HasValue) 178if (lastModified.HasValue && lastModified > ifRange.LastModified) 180Log.IfRangeLastModifiedPreconditionFailed(logger, lastModified, ifRange.LastModified);
Microsoft.AspNetCore.Mvc.Core (3)
src\Shared\ResultsHelpers\FileResultHelper.cs (3)
176if (ifRange.LastModified.HasValue) 178if (lastModified.HasValue && lastModified > ifRange.LastModified) 180Log.IfRangeLastModifiedPreconditionFailed(logger, lastModified, ifRange.LastModified);
Microsoft.AspNetCore.StaticAssets (2)
StaticAssetsInvoker.cs (2)
374if (ifRangeHeader.LastModified.HasValue) 376if (_lastModified > ifRangeHeader.LastModified)
Microsoft.AspNetCore.StaticFiles (2)
StaticFileContext.cs (2)
211if (ifRangeHeader.LastModified.HasValue) 213if (_lastModified > ifRangeHeader.LastModified)
Microsoft.Net.Http.Headers.Tests (3)
RangeConditionHeaderValueTest.cs (3)
13Assert.Null(rangeCondition.LastModified); 24Assert.Null(rangeCondition.LastModified); 35Assert.Equal(new DateTimeOffset(2010, 7, 15, 12, 33, 57, TimeSpan.Zero), rangeCondition.LastModified);