697 references to Zero
mscorlib (69)
system\currenttimezone.cs (2)
200m_CachedDaylightChanges.Add(objYear, new DaylightTime(DateTime.MinValue, DateTime.MinValue, TimeSpan.Zero)); 236return TimeSpan.Zero;
system\datetimeoffset.cs (5)
50public static readonly DateTimeOffset MinValue = new DateTimeOffset(DateTime.MinTicks, TimeSpan.Zero); 51public static readonly DateTimeOffset MaxValue = new DateTimeOffset(DateTime.MaxTicks, TimeSpan.Zero); 92if (offset != TimeSpan.Zero) { 529return new DateTimeOffset(ticks, TimeSpan.Zero); 542return new DateTimeOffset(ticks, TimeSpan.Zero);
system\globalization\datetimeformat.cs (2)
744if (offset >= TimeSpan.Zero) { 791if (offset >= TimeSpan.Zero) {
system\globalization\datetimeparse.cs (15)
63offset = TimeSpan.Zero; 88offset = TimeSpan.Zero; 140offset = TimeSpan.Zero; 155offset = TimeSpan.Zero; 2313offset = TimeSpan.Zero; 2605result.timeZoneOffset = TimeSpan.Zero; 2634result.timeZoneOffset = TimeSpan.Zero; 2667result.timeZoneOffset = TimeSpan.Zero; 2674result.timeZoneOffset = TimeSpan.Zero; 2803result.timeZoneOffset = TimeSpan.Zero; 3738if ((result.flags & ParseFlags.TimeZoneUsed) != 0 && result.timeZoneOffset != TimeSpan.Zero) { 3761if ((result.flags & ParseFlags.TimeZoneUsed) != 0 && result.timeZoneOffset != TimeSpan.Zero) { 3839result.timeZoneOffset = TimeSpan.Zero; 3843result.timeZoneOffset = TimeSpan.Zero; 3921result.timeZoneOffset = TimeSpan.Zero;
system\io\isolatedstorage\isolatedstoragefile.cs (3)
719return new DateTimeOffset(1601, 1, 1, 0, 0, 0, TimeSpan.Zero).ToLocalTime(); 760return new DateTimeOffset(1601, 1, 1, 0, 0, 0, TimeSpan.Zero).ToLocalTime(); 801return new DateTimeOffset(1601, 1, 1, 0, 0, 0, TimeSpan.Zero).ToLocalTime();
system\runtime\remoting\lease.cs (9)
144if (TimeSpan.Zero.CompareTo(value) >= 0) 170Register(obj, TimeSpan.Zero); 180if (state == LeaseState.Expired || sponsorshipTimeout == TimeSpan.Zero) 186if (renewalTime > TimeSpan.Zero) 263return TimeSpan.Zero; 417TimeSpan largestRenewalTime = TimeSpan.Zero; 428if ((sponsorStateInfo.sponsorState == SponsorState.Initial) && (largestRenewalTime == TimeSpan.Zero)) 491TimeSpan renewalTime = TimeSpan.Zero; 528else if (sponsorStateInfo.renewalTime == TimeSpan.Zero)
system\runtime\remoting\lifetimeservices.cs (2)
308if (ilease.InitialLeaseTime.CompareTo(TimeSpan.Zero) <= 0) 368if (lease.RenewOnCallTime > TimeSpan.Zero)
system\runtime\remoting\soapinteroptypes.cs (2)
261if (TimeSpan.Compare(timeSpan, TimeSpan.Zero) < 1) 305return TimeSpan.Zero;
system\stubhelpers.cs (1)
530DateTimeOffset managedUtcDTO = new DateTimeOffset(managedUtcTicks, TimeSpan.Zero);
system\timezone.cs (4)
133return CalculateUtcOffset(time, daylightTimes)!=TimeSpan.Zero; 198return TimeSpan.Zero; 202return TimeSpan.Zero; 248return TimeSpan.Zero;
system\timezoneinfo.cs (24)
165timeZone = CreateCustomTimeZone(c_utcId, TimeSpan.Zero, c_utcId, c_utcId); 237match = CreateCustomTimeZone(c_localId, TimeSpan.Zero, c_localId, c_localId); 364if (rule.DaylightDelta > TimeSpan.Zero) { 411if (rule.DaylightDelta > TimeSpan.Zero) { 795sourceOffset += (sourceIsDaylightSavings ? sourceRule.DaylightDelta : TimeSpan.Zero /*FUTURE: sourceRule.StandardDelta*/); 1379TimeSpan.Zero, // no daylight saving transition 1510Boolean invalidAtStart = rule.DaylightDelta > TimeSpan.Zero; 1511startTime = rule.IsStartDateMarkerForBeginningOfYear() ? new DateTime(daylightTime.Start.Year, 1, 1, 0, 0, 0) : daylightTime.Start + (invalidAtStart ? rule.DaylightDelta : TimeSpan.Zero); /* FUTURE: - rule.StandardDelta; */ 1512endTime = rule.IsEndDateMarkerForEndOfYear() ? new DateTime(daylightTime.End.Year + 1, 1, 1, 0, 0, 0).AddTicks(-1) : daylightTime.End + (invalidAtStart ? -rule.DaylightDelta : TimeSpan.Zero); 1683if (rule == null || rule.DaylightDelta == TimeSpan.Zero) { 1691if (rule.DaylightDelta > TimeSpan.Zero) { 1747if (rule == null || rule.DaylightDelta == TimeSpan.Zero) { 1755if (rule.DaylightDelta < TimeSpan.Zero) { 1830return CreateCustomTimeZone(c_localId, TimeSpan.Zero, c_localId, c_localId); 1929return CreateCustomTimeZone(c_localId, TimeSpan.Zero, c_localId, c_localId); 2002baseOffset += (isDaylightSavings ? rule.DaylightDelta : TimeSpan.Zero /* FUTURE: rule.StandardDelta */); 2042baseOffset += (isDaylightSavings ? match.rule.DaylightDelta : TimeSpan.Zero /* FUTURE: rule.StandardDelta */); 2083baseOffset += (isDaylightSavings ? rule.DaylightDelta : TimeSpan.Zero /* FUTURE: rule.StandardDelta */); 3057return this.DaylightDelta != TimeSpan.Zero || 3110rule.m_baseUtcOffsetDelta = TimeSpan.Zero; 3191if (dateStart.TimeOfDay != TimeSpan.Zero) { 3196if (dateEnd.TimeOfDay != TimeSpan.Zero) { 3601if (rule.BaseUtcOffsetDelta != TimeSpan.Zero) { // Serialize it only when BaseUtcOffsetDelta has a value to reduce the impact of adding rule.BaseUtcOffsetDelta 3992TimeSpan baseUtcOffsetDelta = TimeSpan.Zero;
PresentationCore (164)
Core\CSharp\System\Windows\Duration.cs (2)
34if (timeSpan < TimeSpan.Zero) 60if (timeSpan < TimeSpan.Zero)
Core\CSharp\System\Windows\DurationConverter.cs (1)
84TimeSpan duration = TimeSpan.Zero;
Core\CSharp\System\Windows\Media\Animation\Clock.cs (37)
136_nextTickNeededTime = TimeSpan.Zero; 504return _currentTime.HasValue ? _currentTime.Value : TimeSpan.Zero; 541return TimeSpan.Zero; 622if (!_resolvedDuration.HasTimeSpan || _resolvedDuration.TimeSpan > TimeSpan.Zero) 774InternalSeek(TimeSpan.Zero); 1939TimeSpan nextDesiredTick = InternalNextTickNeededTime == TimeSpan.Zero ? _rootData.CurrentAdjustedGlobalTime 1977if (_currentDuration.TimeSpan == TimeSpan.Zero) // We must be post-filling if we have gotten here 1982localProgress = TimeSpan.Zero; 1985_currentTime = TimeSpan.Zero; 2112if ((localProgress == TimeSpan.Zero) 2136if (localProgress == TimeSpan.Zero) 2143InternalNextTickNeededTime = TimeSpan.Zero; 2161if (localProgress == TimeSpan.Zero) // We are currently exactly at a boundary 2313InternalNextTickNeededTime = TimeSpan.Zero; // We need ticks immediately 2361Debug.Assert(_currentDuration.TimeSpan > TimeSpan.Zero, "ComputeCurrentTime was entered with _currentDuration <= 0"); 2397InternalNextTickNeededTime = TimeSpan.Zero; 2421InternalNextTickNeededTime = TimeSpan.Zero; 2499if (_currentDuration.HasTimeSpan && _currentDuration.TimeSpan == TimeSpan.Zero) 2502effectiveDuration = TimeSpan.Zero; 2508effectiveDuration = TimeSpan.Zero; 2532TimeSpan previousIterationDuration = TimeSpan.Zero; 2600postFillDuration = TimeSpan.Zero; // There is no reachable postfill zone because the active period is infinite 2636else if (postFillDuration != TimeSpan.Zero && // Our active period is finite and we have fill behavior 3023InternalNextTickNeededTime = IsInteractivelyPaused ? TimeSpan.Zero : (TimeSpan?)null; 3049if (timeUntilBegin >= TimeSpan.Zero) 3058if (timeUntilExpiration >= TimeSpan.Zero && 3104InternalNextTickNeededTime = TimeSpan.Zero; // When TimeManager wakes up, we will need an update 3237_syncData.PreviousRepeatTime = TimeSpan.Zero; 3290_syncData.PreviousSyncClockTime = TimeSpan.Zero; 3291_syncData.PreviousRepeatTime = TimeSpan.Zero; 3338if (syncElapsedTimeST > TimeSpan.Zero) // Only store the last value if it is greater than 3349_syncData.PreviousRepeatTime = TimeSpan.Zero; 3361_syncData.PreviousSyncClockTime = TimeSpan.Zero; 3371syncElapsedTimeST = TimeSpan.Zero; 3711subtree.Current.InternalNextTickNeededTime = TimeSpan.Zero; 3715while (current != null && current.InternalNextTickNeededTime != TimeSpan.Zero) 3717current.InternalNextTickNeededTime = TimeSpan.Zero;
Core\CSharp\System\Windows\Media\Animation\ClockController.cs (2)
193if (offset < TimeSpan.Zero) 235if (offset < TimeSpan.Zero)
Core\CSharp\System\Windows\Media\Animation\ClockGroup.cs (2)
146if ((!duration.HasTimeSpan || duration.TimeSpan > TimeSpan.Zero) 346Duration currentDuration = TimeSpan.Zero;
Core\CSharp\System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (4)
575TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 643TimeSpan calculationDuration = TimeSpan.Zero; 714_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 771TimeSpan blockBeginTime = TimeSpan.Zero;
Core\CSharp\System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (4)
667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 735TimeSpan calculationDuration = TimeSpan.Zero; 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero;
Core\CSharp\System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (4)
575TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 643TimeSpan calculationDuration = TimeSpan.Zero; 714_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 771TimeSpan blockBeginTime = TimeSpan.Zero;
Core\CSharp\System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (4)
667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 735TimeSpan calculationDuration = TimeSpan.Zero; 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero;
Core\CSharp\System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (4)
667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 735TimeSpan calculationDuration = TimeSpan.Zero; 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero;
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (4)
667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 735TimeSpan calculationDuration = TimeSpan.Zero; 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero;
Core\CSharp\System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (4)
667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 735TimeSpan calculationDuration = TimeSpan.Zero; 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero;
Core\CSharp\System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (4)
667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 735TimeSpan calculationDuration = TimeSpan.Zero; 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero;
Core\CSharp\System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (4)
667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 735TimeSpan calculationDuration = TimeSpan.Zero; 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero;
Core\CSharp\System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (4)
575TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 643TimeSpan calculationDuration = TimeSpan.Zero; 714_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 771TimeSpan blockBeginTime = TimeSpan.Zero;
Core\CSharp\System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (4)
575TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 643TimeSpan calculationDuration = TimeSpan.Zero; 714_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 771TimeSpan blockBeginTime = TimeSpan.Zero;
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (4)
667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 735TimeSpan calculationDuration = TimeSpan.Zero; 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero;
Core\CSharp\System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (4)
667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 735TimeSpan calculationDuration = TimeSpan.Zero; 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero;
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (4)
667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 735TimeSpan calculationDuration = TimeSpan.Zero; 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero;
Core\CSharp\System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (4)
667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 735TimeSpan calculationDuration = TimeSpan.Zero; 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero;
Core\CSharp\System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (4)
667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 735TimeSpan calculationDuration = TimeSpan.Zero; 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero;
Core\CSharp\System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (4)
667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 735TimeSpan calculationDuration = TimeSpan.Zero; 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero;
Core\CSharp\System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (4)
667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 735TimeSpan calculationDuration = TimeSpan.Zero; 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero;
Core\CSharp\System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (4)
575TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 643TimeSpan calculationDuration = TimeSpan.Zero; 714_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 771TimeSpan blockBeginTime = TimeSpan.Zero;
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (4)
667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 735TimeSpan calculationDuration = TimeSpan.Zero; 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero;
Core\CSharp\System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (4)
667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 735TimeSpan calculationDuration = TimeSpan.Zero; 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero;
Core\CSharp\System\Windows\Media\Animation\KeyTime.cs (1)
55if (timeSpan < TimeSpan.Zero)
Core\CSharp\System\Windows\Media\Animation\ParallelTimeline.cs (1)
92Duration simpleDuration = TimeSpan.Zero;
Core\CSharp\System\Windows\Media\Animation\TimeIntervalCollection.cs (16)
273if (slipTime == TimeSpan.Zero) // The no-op case 866|| (period == TimeSpan.Zero) // The PTIC has no nonzero period, we define such intersections nonexistent 993|| (period == TimeSpan.Zero) // The PTIC has no nonzero period, we define such intersections nonexistent 1043Debug.Assert(!period.HasTimeSpan || period.TimeSpan > TimeSpan.Zero || beginTime == endTime); // Check the consistency of degenerate case where simple duration is zero; expiration time should equal beginTime 1168Debug.Assert(endTime.HasValue || fillDuration == TimeSpan.Zero); // Either endTime is finite, or it's infinite hence we cannot have any fill zone 1169Debug.Assert(!period.HasTimeSpan || period.TimeSpan > TimeSpan.Zero || (endTime.HasValue && beginTime == endTime)); // Check the consistency of degenerate case where simple duration is zero; expiration time should equal beginTime 1182&& _nodeIsPoint[_count - 1] && (endTime > beginTime || fillDuration.TimeSpan > TimeSpan.Zero)))); // ...we may have a point intersection with the stopped zone 1188projection.InitializePoint(TimeSpan.Zero); 1192bool includeFillPeriod = !fillDuration.HasTimeSpan || fillDuration.TimeSpan > TimeSpan.Zero; // This variable represents whether we have a non-zero fill zone 1263projection.CurrentNodeTime = TimeSpan.Zero; 1319Debug.Assert(CurrentNodeTime >= TimeSpan.Zero); // Verify that we are already clipped 1448projection.MergeInterval(TimeSpan.Zero, true, 1465projection.MergeInterval(TimeSpan.Zero, true, 1507projection._nodeTime[0] = TimeSpan.Zero; 1525projection.MergeInterval(TimeSpan.Zero, true, 1536projection.MergePoint(TimeSpan.Zero);
Core\CSharp\System\Windows\Media\Animation\Timeline.cs (1)
288(TimeSpan?)TimeSpan.Zero,
Core\CSharp\System\Windows\Media\Animation\TimeManager.cs (7)
233if (GetNextTickNeeded() >= TimeSpan.Zero) 314_lastTickTime = TimeSpan.Zero; 318_globalTime = TimeSpan.Zero; 571return TimeSpan.Zero; 596return TimeSpan.Zero; 791if (nextTickNeededTimeFromCurrentTime <= TimeSpan.Zero) 795return TimeSpan.Zero;
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (1)
702AcquireBackBuffer(TimeSpan.Zero, false);
Core\CSharp\System\Windows\Media\MediaClock.cs (1)
143TimeSpan currentTimeValue = currentTimeProperty.HasValue ? currentTimeProperty.Value : TimeSpan.Zero;
Core\CSharp\System\Windows\Media\MediaContext.cs (7)
592TimeSpan nextTickNeeded = TimeSpan.Zero; 608if (nextTickNeeded >= TimeSpan.Zero) 630else if (nextTickNeeded > TimeSpan.Zero) 645else if (nextTickNeeded == TimeSpan.Zero) 758TimeSpan presentationDelay = TimeSpan.Zero; 1963ScheduleNextRenderOp(TimeSpan.Zero); 2657ScheduleNextRenderOp(TimeSpan.Zero);
Core\CSharp\System\Windows\Media\MediaPlayerState.cs (1)
773SetPosition(TimeSpan.Zero);
PresentationFramework (11)
src\Framework\System\Windows\Controls\Primitives\Popup.cs (1)
1684_asyncDestroy.Interval = animating ? AnimationDelayTime : TimeSpan.Zero;
src\Framework\System\Windows\Controls\ProgressBar.cs (1)
251startTime = TimeSpan.Zero;
src\Framework\System\Windows\Interop\DocobjHost.cs (1)
125lease.InitialLeaseTime = TimeSpan.Zero; // infinite -- never expire
src\Framework\System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (4)
667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 735TimeSpan calculationDuration = TimeSpan.Zero; 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero;
src\Framework\System\Windows\Media\Animation\SeekStoryboard.cs (2)
52return !(TimeSpan.Zero.Equals(_offset)); 104TimeSpan _offset = TimeSpan.Zero;
src\Framework\System\Windows\VisualStateManager.cs (2)
424dynamic.Duration = new Duration(TimeSpan.Zero); 843private static readonly Duration DurationZero = new Duration(TimeSpan.Zero);
PresentationFramework.Aero (1)
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (1)
96animation.BeginTime = TimeSpan.Zero;
System (19)
net\System\Net\Cache\_Rfc2616CacheValidators.cs (8)
97if (ctx.Policy.MinFresh > TimeSpan.Zero) { 103if (ctx.Policy.MaxStale > TimeSpan.Zero) { 275(ctx.Policy.MinFresh > TimeSpan.Zero && (ctx.ResponseExpires - DateTime.UtcNow) < ctx.Policy.MinFresh) || 276(ctx.Policy.MaxStale > TimeSpan.Zero && (DateTime.UtcNow - ctx.ResponseExpires) > ctx.Policy.MaxStale))) 546ctx.CacheAge = (age < TimeSpan.Zero? TimeSpan.Zero: age); 885if (ctx.Policy.MinFresh > TimeSpan.Zero) 906if (ctx.Policy.MaxStale > TimeSpan.Zero)
net\System\Net\Cache\HttpRequestCacheValidator.cs (1)
382CacheAge = TimeSpan.Zero;
net\System\Net\Cache\IERequestCache.cs (3)
419if (maxStale > TimeSpan.Zero) { 435Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_max_stale, (maxStale > TimeSpan.Zero? ((int)maxStale.TotalSeconds).ToString():"n/a"))); 545if (maxStale >= TimeSpan.Zero) {
net\System\Net\Configuration\HttpListenerTimeoutsElement.cs (1)
38return new ConfigurationProperty(name, typeof(TimeSpan), TimeSpan.Zero, null, new TimeSpanValidator(),
net\System\Net\Configuration\SettingsSection.cs (1)
180this.downloadTimeout = (ts == TimeSpan.MaxValue || ts == TimeSpan.Zero) ? Timeout.Infinite : (int) ts.TotalMilliseconds;
net\System\Net\mail\SmtpDateTime.cs (4)
94tempTimeZoneOffsetLookup.Add("UT", TimeSpan.Zero); // +0000 95tempTimeZoneOffsetLookup.Add("GMT", TimeSpan.Zero); // +0000 140this.timeZone = TimeSpan.Zero; 362timeZone = TimeSpan.Zero;
regex\system\text\regularexpressions\Regex.cs (1)
367if (TimeSpan.Zero < matchTimeout && matchTimeout <= MaximumMatchTimeout)
System.Activities (2)
System\Activities\Statements\Delay.cs (2)
59if (duration < TimeSpan.Zero) 64if (duration == TimeSpan.Zero)
System.Activities.DurableInstancing (8)
System\Activities\DurableInstancing\LoadRetryHandler.cs (2)
70TimeSpan waitTime = TimeSpan.Zero; 112if (waitTime != TimeSpan.Zero)
System\Activities\DurableInstancing\PersistenceTask.cs (1)
99this.taskTimer.Set(fireImmediately ? TimeSpan.Zero : timeTillNextPoll);
System\Activities\DurableInstancing\SqlCommandAsyncResult.cs (1)
255return (this.timeoutHelper.RemainingTime() <= TimeSpan.Zero);
System\Activities\DurableInstancing\SqlWorkflowInstanceStore.cs (2)
64this.bufferedHostLockRenewalPeriod = TimeSpan.Zero; 181if (this.bufferedHostLockRenewalPeriod == TimeSpan.Zero)
System\Activities\DurableInstancing\SqlWorkflowInstanceStoreLock.cs (2)
16TimeSpan hostLockRenewalPulseInterval = TimeSpan.Zero; 89if (this.hostLockRenewalPulseInterval == TimeSpan.Zero)
System.AddIn (1)
System\Addin\Pipeline\ContractBase.cs (1)
254return m_lifetimeTokens.Count > 0 ? lease.InitialLeaseTime : TimeSpan.Zero;
System.Configuration (1)
System\Configuration\PositiveTimeSpanValidator.cs (1)
22if (((TimeSpan)value) <= TimeSpan.Zero) {
System.Data (4)
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (1)
2426private static readonly TimeSpan x_timeMin = TimeSpan.Zero;
fx\src\data\System\Data\Common\TimeSpanStorage.cs (1)
18private static readonly TimeSpan defaultValue = TimeSpan.Zero;
fx\src\data\System\Data\Sql\SqlMetaData.cs (1)
1477private static readonly TimeSpan x_timeMin = TimeSpan.Zero;
fx\src\data\System\Data\SqlClient\SqlSymmetricKeyCache.cs (1)
101if (SqlConnection.ColumnEncryptionKeyCacheTtl != TimeSpan.Zero) {
System.Data.Entity (1)
System\Data\Mapping\Update\Internal\Propagator.Evaluator.cs (1)
549return new DateTimeOffset(((DateTime)value).Ticks, TimeSpan.Zero);
System.IdentityModel (13)
System\IdentityModel\BoundedCache.cs (2)
50if (purgeInterval <= TimeSpan.Zero) 228if (value <= TimeSpan.Zero)
System\IdentityModel\Configuration\SecurityTokenServiceConfiguration.cs (1)
312if (value <= TimeSpan.Zero)
System\IdentityModel\DateTimeUtil.cs (3)
22if (timespan >= TimeSpan.Zero && DateTime.MaxValue - time <= timespan) 27if (timespan <= TimeSpan.Zero && DateTime.MinValue - time >= timespan) 45if (timespan <= TimeSpan.Zero)
System\IdentityModel\Selectors\SamlSecurityTokenAuthenticator.cs (1)
25: this(supportingAuthenticators, TimeSpan.Zero)
System\IdentityModel\Tokens\DefaultTokenReplayCache.cs (1)
90if (value <= TimeSpan.Zero)
System\IdentityModel\Tokens\SecurityTokenHandlerConfiguration.cs (2)
228if (value < TimeSpan.Zero) 300if (value <= TimeSpan.Zero)
System\IdentityModel\Tokens\SessionSecurityTokenHandler.cs (3)
79if (tokenLifetime <= TimeSpan.Zero) 128if (outTokenLifetime < TimeSpan.Zero) 515if (value <= TimeSpan.Zero)
System.Management (13)
ManagementDatetime.cs (1)
437 if(timespan.Days > MAXDATE_INTIMESPAN || timespan < TimeSpan.Zero)
managementquery.cs (12)
2439 public WqlEventQuery() : this(null, TimeSpan.Zero, null, TimeSpan.Zero, null, null) {} 2514 public WqlEventQuery(string eventClassName, string condition) : this(eventClassName, TimeSpan.Zero, condition, TimeSpan.Zero, null, null) {} 2539 this(eventClassName, withinInterval, null, TimeSpan.Zero, null, null) {} 2570 this(eventClassName, withinInterval, condition, TimeSpan.Zero, null, null) {} 2601 this(eventClassName, TimeSpan.Zero, condition, groupWithinInterval, null, null) {} 2639 this(eventClassName, TimeSpan.Zero, condition, groupWithinInterval, groupByPropertyList, null) {} 2970 if (withinInterval != TimeSpan.Zero) 2978 if (groupWithinInterval != TimeSpan.Zero) 3015 withinInterval = TimeSpan.Zero; 3017 groupWithinInterval = TimeSpan.Zero;
System.Messaging (14)
System\Messaging\MessageEnumerator.cs (5)
51return this.owner.ReceiveCurrent(TimeSpan.Zero, NativeMethods.QUEUE_ACTION_PEEK_CURRENT, this.Handle, 146return MoveNext(TimeSpan.Zero); 197return RemoveCurrent(TimeSpan.Zero, null, MessageQueueTransactionType.None); 210return RemoveCurrent(TimeSpan.Zero, transaction, MessageQueueTransactionType.None); 223return RemoveCurrent(TimeSpan.Zero, null, transactionType);
System\Messaging\MessageQueue.cs (9)
2316return ReceiveBy(id, TimeSpan.Zero, false, true, false, null, MessageQueueTransactionType.None); 2347return ReceiveBy(correlationId, TimeSpan.Zero, false, false, false, null, MessageQueueTransactionType.None); 2599if (timeout < TimeSpan.Zero || timeout > InfiniteTimeout) 2698return ReceiveBy(id, TimeSpan.Zero, true, true, false, null, MessageQueueTransactionType.None); 2714return ReceiveBy(id, TimeSpan.Zero, true, true, false, transaction, MessageQueueTransactionType.None); 2730return ReceiveBy(id, TimeSpan.Zero, true, true, false, null, transactionType); 2795return ReceiveBy(correlationId, TimeSpan.Zero, true, false, false, null, MessageQueueTransactionType.None); 2812return ReceiveBy(correlationId, TimeSpan.Zero, true, false, false, transaction, MessageQueueTransactionType.None); 2829return ReceiveBy(correlationId, TimeSpan.Zero, true, false, false, null, transactionType);
System.Runtime.Caching (5)
System\Caching\Configuration\ConfigUtil.cs (1)
58if (!TimeSpan.TryParse(sValue, out tValue) || tValue <= TimeSpan.Zero) {
System\Caching\MemoryCacheEntry.cs (2)
107if (_slidingExp > TimeSpan.Zero) { 245if (_slidingExp > TimeSpan.Zero) {
System\Caching\MemoryCacheStore.cs (1)
110if (entry.InUsage() || entry.SlidingExp > TimeSpan.Zero) {
System\Caching\ObjectCache.cs (1)
20public static readonly TimeSpan NoSlidingExpiration = TimeSpan.Zero;
System.Runtime.DurableInstancing (3)
System\Runtime\DurableInstancing\InstanceHandle.cs (3)
1041if (this.timeout != TimeSpan.Zero && this.timeout != TimeSpan.MaxValue) 1049if (this.timeout == TimeSpan.Zero) 1052throw Fx.Exception.AsError(new TimeoutException(SRCore.WaitForEventsTimedOut(TimeSpan.Zero)));
System.ServiceModel (213)
System\ServiceModel\CallbackBehaviorAttribute.cs (2)
33TimeSpan transactionTimeout = TimeSpan.Zero; 107if (timeout < TimeSpan.Zero)
System\ServiceModel\Channels\Binding.cs (4)
56if (value < TimeSpan.Zero) 111if (value < TimeSpan.Zero) 130if (value < TimeSpan.Zero) 159if (value < TimeSpan.Zero)
System\ServiceModel\Channels\BufferedConnection.cs (2)
45pendingTimeout = TimeSpan.Zero; 77pendingTimeout = TimeSpan.Zero;
System\ServiceModel\Channels\ChannelDemuxer.cs (2)
3143this.CloseFirstItem(TimeSpan.Zero); 3579if (value < TimeSpan.Zero && value != ChannelDemuxer.UseDefaultReceiveTimeout)
System\ServiceModel\Channels\ChannelPoolSettings.cs (2)
41if (value < TimeSpan.Zero) 66if (value < TimeSpan.Zero)
System\ServiceModel\Channels\CommunicationObject.cs (4)
152if (timeout < TimeSpan.Zero) 228if (timeout < TimeSpan.Zero) 270if (timeout < TimeSpan.Zero) 566if (timeout < TimeSpan.Zero)
System\ServiceModel\Channels\ConnectionOrientedTransportBindingElement.cs (2)
194if (value <= TimeSpan.Zero) 221if (value < TimeSpan.Zero)
System\ServiceModel\Channels\ConnectionOrientedTransportChannelFactory.cs (1)
253ReleaseConnectionPool(localConnectionPool, TimeSpan.Zero);
System\ServiceModel\Channels\ConnectionPool.cs (3)
800this.connectionPool.ReturnConnection(connectionKey, localRawConnection, false, TimeSpan.Zero); 861this.connectionPool.ReturnConnection(this.connectionKey, rawConnection, false, TimeSpan.Zero); 879ReleaseConnection(true, TimeSpan.Zero);
System\ServiceModel\Channels\CorrelationCallbackMessageProperty.cs (2)
130if (timeout < TimeSpan.Zero) 163if (timeout < TimeSpan.Zero)
System\ServiceModel\Channels\DuplexChannel.cs (8)
39if (timeout < TimeSpan.Zero) 92if (timeout < TimeSpan.Zero) 113if (timeout < TimeSpan.Zero) 128if (timeout < TimeSpan.Zero) 145if (timeout < TimeSpan.Zero) 155if (timeout < TimeSpan.Zero) 170if (timeout < TimeSpan.Zero) 180if (timeout < TimeSpan.Zero)
System\ServiceModel\Channels\HttpTransportBindingElement.cs (1)
378if (value < TimeSpan.Zero)
System\ServiceModel\Channels\InitialServerConnectionReader.cs (1)
297if (readTotal > maxRead || timeoutHelper.RemainingTime() <= TimeSpan.Zero)
System\ServiceModel\Channels\InputChannel.cs (6)
63if (timeout < TimeSpan.Zero) 79if (timeout < TimeSpan.Zero) 97if (timeout < TimeSpan.Zero) 109if (timeout < TimeSpan.Zero) 126if (timeout < TimeSpan.Zero) 138if (timeout < TimeSpan.Zero)
System\ServiceModel\Channels\LifetimeManager.cs (3)
305if (timeout < TimeSpan.Zero) 357if (timeout < TimeSpan.Zero) 427if (timeout < TimeSpan.Zero)
System\ServiceModel\Channels\LocalClientSecuritySettings.cs (6)
81if (value < TimeSpan.Zero) 105if (value < TimeSpan.Zero) 141if (value < TimeSpan.Zero) 177if (value < TimeSpan.Zero) 218if (value < TimeSpan.Zero) 242if (value < TimeSpan.Zero)
System\ServiceModel\Channels\LocalServiceSecuritySettings.cs (8)
85if (value < TimeSpan.Zero) 109if (value < TimeSpan.Zero) 146if (value < TimeSpan.Zero) 187if (value < TimeSpan.Zero) 228if (value < TimeSpan.Zero) 252if (value < TimeSpan.Zero) 276if (value < TimeSpan.Zero) 312if (value < TimeSpan.Zero)
System\ServiceModel\Channels\Msmq3PoisonHandler.cs (1)
57queue.UnlockMessage(messageProperty.LookupId, TimeSpan.Zero);
System\ServiceModel\Channels\Msmq4PoisonHandler.cs (1)
297if (waitTime < TimeSpan.Zero)
System\ServiceModel\Channels\MsmqBindingElementBase.cs (3)
192if (value < TimeSpan.Zero) 214if (value < TimeSpan.Zero) 247if (value < TimeSpan.Zero)
System\ServiceModel\Channels\MsmqDefaultLockingQueue.cs (1)
430this.UnlockMessage(lookupId, TimeSpan.Zero);
System\ServiceModel\Channels\MsmqOutputChannel.cs (1)
80OnCloseCore(true, TimeSpan.Zero);
System\ServiceModel\Channels\MsmqOutputSessionChannel.cs (1)
139this.OnCloseCore(true, TimeSpan.Zero);
System\ServiceModel\Channels\MsmqReceiveContextLockManager.cs (1)
221UnlockMessage(receiveContext, TimeSpan.Zero);
System\ServiceModel\Channels\MsmqSubqueueLockingQueue.cs (2)
171this.UnlockMessage(lookupId, TimeSpan.Zero); 181this.UnlockMessage(lookupId, TimeSpan.Zero);
System\ServiceModel\Channels\NamedPipeConnectionPoolSettings.cs (1)
46if (value < TimeSpan.Zero)
System\ServiceModel\Channels\OneWayChannelFactory.cs (2)
401this.channelPool.Close(TimeSpan.Zero); 481this.channelPool.Close(TimeSpan.Zero);
System\ServiceModel\Channels\OutputChannel.cs (2)
32if (timeout < TimeSpan.Zero) 79if (timeout < TimeSpan.Zero)
System\ServiceModel\Channels\PeerMaintainer.cs (1)
536for (int i = 0; i < nresolves && reply.Count < config.MaxResolveAddresses && isOpen && timeoutHelper.RemainingTime() > TimeSpan.Zero; i++)
System\ServiceModel\Channels\PeerNeighborManager.cs (1)
1514&& timeoutHelper.RemainingTime() > TimeSpan.Zero
System\ServiceModel\Channels\PeerNodeStateManager.cs (2)
246else if (timeoutHelper.RemainingTime() <= TimeSpan.Zero) 326else if (timeoutHelper.RemainingTime() <= TimeSpan.Zero)
System\ServiceModel\Channels\PipeConnection.cs (2)
598FinishPendingWrite(TimeSpan.Zero); 1788backoffTimeout = TimeoutHelper.Add(timeout, TimeSpan.Zero - TimeSpan.FromMilliseconds(backoffBufferMilliseconds));
System\ServiceModel\Channels\PnrpPeerResolver.cs (1)
2065if (timeoutHelper.RemainingTime() == TimeSpan.Zero)
System\ServiceModel\Channels\ReceiveContext.cs (1)
214if (timeout < TimeSpan.Zero)
System\ServiceModel\Channels\ReliableChannelBinder.cs (12)
957if (timeout < TimeSpan.Zero) 1055if (timeout < TimeSpan.Zero) 1071if (timeout < TimeSpan.Zero) 1494if (this.binder.TryGetChannel(TimeSpan.Zero)) 1941if (!this.binder.TryGetChannel(TimeSpan.Zero)) 2543if (timeout > TimeSpan.Zero) 3754bool lastIteration = (iterationTimeout == TimeSpan.Zero); 3802lastIteration = (iterationTimeout == TimeSpan.Zero); 3817bool lastIteration = (iterationTimeout == TimeSpan.Zero); 3868lastIteration = (iterationTimeout == TimeSpan.Zero); 4130this.lastReceive = (iterationTimeout == TimeSpan.Zero); 4170this.lastReceive = (iterationTimeout == TimeSpan.Zero);
System\ServiceModel\Channels\ReliableDuplexSessionChannel.cs (1)
1774session.Open(TimeSpan.Zero);
System\ServiceModel\Channels\ReliableInputSessionChannel.cs (1)
46this.session.Open(TimeSpan.Zero);
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (1)
1718: TimeSpan.Zero;
System\ServiceModel\Channels\ReliableReplySessionChannel.cs (1)
67this.session.Open(TimeSpan.Zero);
System\ServiceModel\Channels\ReliableSessionBindingElement.cs (2)
61if (value <= TimeSpan.Zero) 99if (value <= TimeSpan.Zero)
System\ServiceModel\Channels\ReplyChannel.cs (6)
168if (timeout < TimeSpan.Zero) 183if (timeout < TimeSpan.Zero) 200if (timeout < TimeSpan.Zero) 210if (timeout < TimeSpan.Zero) 225if (timeout < TimeSpan.Zero) 235if (timeout < TimeSpan.Zero)
System\ServiceModel\Channels\RequestChannel.cs (3)
222if (timeout < TimeSpan.Zero) 296if (timeout < TimeSpan.Zero) 371if (this.timeout == TimeSpan.Zero || this.pendingRequests == null)
System\ServiceModel\Channels\RequestContextBase.cs (1)
134if (timeout < TimeSpan.Zero)
System\ServiceModel\Channels\SecurityChannelFactory.cs (1)
150CloseProtocolFactory(true, TimeSpan.Zero);
System\ServiceModel\Channels\SecurityChannelListener.cs (5)
499typeof(TChannel) == typeof(IReplyChannel) || typeof(TChannel) == typeof(IReplySessionChannel), TimeSpan.Zero); 982if (timeoutHelper.RemainingTime() == TimeSpan.Zero) 1166if (timeoutHelper.RemainingTime() == TimeSpan.Zero) 1355if (timeoutHelper.RemainingTime() == TimeSpan.Zero) 1665if (this.timeoutHelper.RemainingTime() == TimeSpan.Zero)
System\ServiceModel\Channels\ServiceChannel.cs (1)
330if (value < TimeSpan.Zero)
System\ServiceModel\Channels\SharedConnectionListener.cs (3)
175Stop(true, TimeSpan.Zero); 419Cleanup(true, TimeSpan.Zero); 534Close(true, TimeSpan.Zero);
System\ServiceModel\Channels\SharedHttpTransportManager.cs (1)
73Cleanup(true, TimeSpan.Zero);
System\ServiceModel\Channels\SharedTcpTransportManager.cs (1)
192CleanUp(true, TimeSpan.Zero);
System\ServiceModel\Channels\SocketConnection.cs (8)
158ConvertReceiveException(socketException, TimeSpan.Zero, TimeSpan.Zero), ExceptionEventType); 522if (timeout <= TimeSpan.Zero && DiagnosticUtility.ShouldTraceWarning) 733remainingTime <= TimeSpan.Zero) 1434if (timeout <= TimeSpan.Zero) 1474if (timeout <= TimeSpan.Zero) 1704if (timeoutHelper.RemainingTime() == TimeSpan.Zero) 1859if (timeoutHelper.RemainingTime() == TimeSpan.Zero)
System\ServiceModel\Channels\StreamedFramingRequestChannel.cs (2)
585connectionReader.DoneSending(TimeSpan.Zero); // we still need to receive 725connectionReader.DoneSending(TimeSpan.Zero); // we still need to receive
System\ServiceModel\Channels\StreamSecurityUpgradeInitiatorBase.cs (2)
51this.Open(TimeSpan.Zero); 94this.Open(TimeSpan.Zero);
System\ServiceModel\Channels\TcpConnectionPoolSettings.cs (2)
49if (value < TimeSpan.Zero) 70if (value < TimeSpan.Zero)
System\ServiceModel\Channels\TransmissionStrategy.cs (1)
85if (initRtt < TimeSpan.Zero)
System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (2)
396this.ReturnConnectionIfNecessary(true, TimeSpan.Zero); 402this.ReturnConnectionIfNecessary(true, TimeSpan.Zero);
System\ServiceModel\Channels\TransportManager.cs (2)
151this.Cleanup(channelListener, TimeSpan.Zero, true); 215Close(true, TimeSpan.Zero);
System\ServiceModel\Channels\WebSocketTransportSettings.cs (2)
91if (value < TimeSpan.Zero && value != Timeout.InfiniteTimeSpan) 228return this.keepAliveInterval == TimeSpan.Zero ? WebSocket.DefaultKeepAliveInterval : this.keepAliveInterval;
System\ServiceModel\Description\CallbackTimeoutsBehavior.cs (4)
13TimeSpan transactionTimeout = TimeSpan.Zero; 20if (value < TimeSpan.Zero) 53if (this.transactionTimeout != TimeSpan.Zero) 57(channelDispatcher.TransactionTimeout == TimeSpan.Zero) ||
System\ServiceModel\Description\ConfigLoader.cs (2)
422if (hte.OpenTimeout != TimeSpan.Zero) 426if (hte.CloseTimeout != TimeSpan.Zero)
System\ServiceModel\Description\MetadataExchangeClient.cs (1)
123if (value < TimeSpan.Zero)
System\ServiceModel\Description\ServiceTimeoutsBehavior.cs (4)
16TimeSpan transactionTimeout = TimeSpan.Zero; 28if (value < TimeSpan.Zero) 48if (this.transactionTimeout != TimeSpan.Zero) 55if ((channelDispatcher.TransactionTimeout == TimeSpan.Zero) ||
System\ServiceModel\Dispatcher\ChannelDispatcher.cs (2)
98this.transactionTimeout = TimeSpan.Zero; 402if (value < TimeSpan.Zero)
System\ServiceModel\Dispatcher\ChannelHandler.cs (1)
1730received = this.receiver.TryReceive(TimeSpan.Zero, out request);
System\ServiceModel\Dispatcher\InputChannelBinder.cs (2)
170: base(request, TimeSpan.Zero, TimeSpan.Zero)
System\ServiceModel\Dispatcher\TransactedBatchContext.cs (1)
27if (shared.TransactionTimeout <= TimeSpan.Zero)
System\ServiceModel\Dispatcher\TransactionBehavior.cs (3)
25TimeSpan timeout = TimeSpan.Zero; 85if (TimeSpan.Zero == timeout) 89else if (TimeSpan.Zero != TransactionManager.MaximumTimeout && timeout > TransactionManager.MaximumTimeout)
System\ServiceModel\MsmqIntegration\MsmqIntegrationMessageProperty.cs (1)
178if (timeout.HasValue && timeout.Value < TimeSpan.Zero)
System\ServiceModel\MsmqIntegration\MsmqIntegrationOutputChannel.cs (1)
52this.OnCloseCore(true, TimeSpan.Zero);
System\ServiceModel\PeerResolvers\CustomPeerResolverService.cs (4)
224if (value < TimeSpan.Zero) 252if (value < TimeSpan.Zero) 576if (this.refreshInterval <= TimeSpan.Zero) 578if (this.CleanupInterval <= TimeSpan.Zero)
System\ServiceModel\PeerResolvers\RefreshResponseInfo.cs (2)
30public RefreshResponseInfo() : this(TimeSpan.Zero, RefreshResult.RegistrationNotFound) { } 42if (value < TimeSpan.Zero)
System\ServiceModel\PeerResolvers\RegisterResponseInfo.cs (1)
52if (value < TimeSpan.Zero)
System\ServiceModel\ReliableSession.cs (1)
43if (value <= TimeSpan.Zero)
System\ServiceModel\Security\ClientCredentialsSecurityTokenManager.cs (2)
76SecurityUtils.OpenTokenProviderIfRequired(sspiTokenProvider, TimeSpan.Zero); 77SspiSecurityToken sspiToken = (SspiSecurityToken) sspiTokenProvider.GetToken(TimeSpan.Zero);
System\ServiceModel\Security\DuplexSecurityProtocolFactory.cs (4)
133this.forwardProtocolFactory.Close(true, TimeSpan.Zero); 137this.reverseProtocolFactory.Close(true, TimeSpan.Zero); 226this.outgoingProtocol.Close(true, TimeSpan.Zero); 227this.incomingProtocol.Close(true, TimeSpan.Zero);
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (1)
146if (value <= TimeSpan.Zero)
System\ServiceModel\Security\IssuedTokenClientCredential.cs (1)
144if (value < TimeSpan.Zero)
System\ServiceModel\Security\NegotiationTokenAuthenticator.cs (2)
119if (value <= TimeSpan.Zero) 176if (value <= TimeSpan.Zero)
System\ServiceModel\Security\NonceCache.cs (1)
27if (value < TimeSpan.Zero)
System\ServiceModel\Security\SecurityChannel.cs (1)
57this.securityProtocol.Close(true, TimeSpan.Zero);
System\ServiceModel\Security\SecurityListenerSettingsLifetimeManager.cs (1)
215this.securityProtocolFactory.Close(true, TimeSpan.Zero);
System\ServiceModel\Security\SecurityProtocolFactory.cs (3)
440if (value < TimeSpan.Zero) 487if (value <= TimeSpan.Zero) 598if (value <= TimeSpan.Zero)
System\ServiceModel\Security\SecuritySessionClientSettings.cs (5)
112if (value <= TimeSpan.Zero) 129if (value <= TimeSpan.Zero) 282this.sessionProtocolFactory.Close(true, TimeSpan.Zero); 1419if (timeoutHelper.RemainingTime() == TimeSpan.Zero) 1888if (timeout == TimeSpan.Zero)
System\ServiceModel\Security\SecuritySessionSecurityTokenAuthenticator.cs (3)
138if (value <= TimeSpan.Zero) 161if (value <= TimeSpan.Zero) 201if (value <= TimeSpan.Zero)
System\ServiceModel\Security\SecuritySessionServerSettings.cs (9)
241if (value <= TimeSpan.Zero) 259if (value <= TimeSpan.Zero) 276if (value <= TimeSpan.Zero) 472this.sessionProtocolFactory.Close(true, TimeSpan.Zero); 1167this.securityProtocol = this.Settings.SessionProtocolFactory.CreateSecurityProtocol(null, null, listenerSecurityProtocolState, true, TimeSpan.Zero); 1260this.securityProtocol.Close(true, TimeSpan.Zero); 1531if (timeoutHelper.RemainingTime() == TimeSpan.Zero) 2649if (this.timeoutHelper.RemainingTime() == TimeSpan.Zero) 2694if (this.timeoutHelper.RemainingTime() == TimeSpan.Zero)
System\ServiceModel\Security\SecurityUtils.cs (2)
1558CloseCommunicationObject(tokenProvider, true, TimeSpan.Zero); 1600CloseCommunicationObject(tokenAuthenticator, true, TimeSpan.Zero);
System\ServiceModel\Security\Tokens\SecurityContextSecurityTokenResolver.cs (1)
31if ( clockSkew < TimeSpan.Zero )
System\ServiceModel\Security\UserNamePasswordServiceCredential.cs (1)
140if (value <= TimeSpan.Zero)
System\ServiceModel\ServiceBehaviorAttribute.cs (2)
43TimeSpan transactionTimeout = TimeSpan.Zero; 249if (timeout < TimeSpan.Zero)
System\ServiceModel\ServiceHost.cs (2)
141if (value < TimeSpan.Zero) 244if (value < TimeSpan.Zero)
System.ServiceModel.Activities (11)
System\ServiceModel\Activities\Configuration\WorkflowIdleElement.cs (2)
61properties.Add(new ConfigurationProperty(TimeToPersistString, typeof(TimeSpan), TimeSpan.MaxValue, new TimeSpanOrInfiniteConverter(), new TimeSpanOrInfiniteValidator(TimeSpan.Zero, TimeSpan.MaxValue), ConfigurationPropertyOptions.None)); 62properties.Add(new ConfigurationProperty(TimeToUnloadString, typeof(TimeSpan), TimeSpan.Parse(WorkflowIdleBehavior.defaultTimeToUnloadString, CultureInfo.InvariantCulture), new TimeSpanOrInfiniteConverter(), new TimeSpanOrInfiniteValidator(TimeSpan.Zero, TimeSpan.MaxValue), ConfigurationPropertyOptions.None));
System\ServiceModel\Activities\Description\WorkflowIdleBehavior.cs (2)
35if (value < TimeSpan.Zero) 48if (value < TimeSpan.Zero)
System\ServiceModel\Activities\Dispatcher\PersistenceProviderDirectory.cs (1)
1182this.context.Open(TimeSpan.Zero);
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (2)
5793Fx.Assert(timer != null && ts >= TimeSpan.Zero, String.Empty); 5799timer.Set(TimeSpan.Zero);
System\ServiceModel\Activities\Send.cs (2)
428if (factorySettings.IdleTimeout == TimeSpan.Zero || factorySettings.LeaseTimeout == TimeSpan.Zero || factorySettings.MaxItemsInCache == 0)
System\ServiceModel\Activities\WorkflowServiceHost.cs (2)
202Fx.Assert(value >= TimeSpan.Zero, "IdleTimeToPersist cannot be less than zero"); 211Fx.Assert(value >= TimeSpan.Zero, "IdleTimeToUnload cannot be less than zero");
System.ServiceModel.Channels (29)
System\ServiceModel\Channels\UdpChannelBase.cs (1)
320this.Cleanup(true, TimeSpan.Zero);
System\ServiceModel\Channels\UdpDuplexChannel.cs (6)
101if (timeout < TimeSpan.Zero) 117if (timeout < TimeSpan.Zero) 133if (timeout < TimeSpan.Zero) 144if (timeout < TimeSpan.Zero) 160if (timeout < TimeSpan.Zero) 171if (timeout < TimeSpan.Zero)
System\ServiceModel\Channels\UdpOutputChannel.cs (4)
216if (timeoutHelper.RemainingTime() <= TimeSpan.Zero) 294this.Cleanup(true, TimeSpan.Zero); 423if (timeoutHelper.RemainingTime() <= TimeSpan.Zero) 910if (this.timeoutHelper.RemainingTime() <= TimeSpan.Zero)
System\ServiceModel\Channels\UdpReplyChannel.cs (6)
66if (timeout < TimeSpan.Zero) 82if (timeout < TimeSpan.Zero) 98if (timeout < TimeSpan.Zero) 109if (timeout < TimeSpan.Zero) 125if (timeout < TimeSpan.Zero) 136if (timeout < TimeSpan.Zero)
System\ServiceModel\Channels\UdpRetransmissionSettings.cs (12)
50if (delayLowerBound < TimeSpan.Zero) 52throw FxTrace.Exception.ArgumentOutOfRange("delayLowerBound", delayLowerBound, SR.ArgumentOutOfMinRange(TimeSpan.Zero)); 55if (delayUpperBound < TimeSpan.Zero) 57throw FxTrace.Exception.ArgumentOutOfRange("delayUpperBound", delayUpperBound, SR.ArgumentOutOfMinRange(TimeSpan.Zero)); 60if (maxDelayPerRetransmission < TimeSpan.Zero) 63SR.ArgumentOutOfMinRange(TimeSpan.Zero)); 128if (value < TimeSpan.Zero) 130throw FxTrace.Exception.ArgumentOutOfRange("value", value, SR.ArgumentOutOfMinRange(TimeSpan.Zero)); 146if (value < TimeSpan.Zero) 148throw FxTrace.Exception.ArgumentOutOfRange("value", value, SR.ArgumentOutOfMinRange(TimeSpan.Zero)); 164if (value < TimeSpan.Zero) 166throw FxTrace.Exception.ArgumentOutOfRange("value", value, SR.ArgumentOutOfMinRange(TimeSpan.Zero));
System.ServiceModel.Discovery (19)
System\ServiceModel\Discovery\AsyncOperationContext.cs (1)
33Fx.Assert(duration > TimeSpan.Zero, "The duration parameter must be positive.");
System\ServiceModel\Discovery\Configuration\AnnouncementEndpointElement.cs (2)
74TimeSpan.Zero, 76new TimeSpanOrInfiniteValidator(TimeSpan.Zero, TimeSpan.MaxValue),
System\ServiceModel\Discovery\Configuration\DiscoveryEndpointElement.cs (2)
88TimeSpan.Zero, 90new TimeSpanOrInfiniteValidator(TimeSpan.Zero, TimeSpan.MaxValue),
System\ServiceModel\Discovery\Configuration\UdpAnnouncementEndpointElement.cs (1)
89new TimeSpanOrInfiniteValidator(TimeSpan.Zero, TimeSpan.MaxValue),
System\ServiceModel\Discovery\Configuration\UdpDiscoveryEndpointElement.cs (1)
105new TimeSpanOrInfiniteValidator(TimeSpan.Zero, TimeSpan.MaxValue),
System\ServiceModel\Discovery\DiscoveryClientChannelBase.cs (2)
181if (timeoutHelper.RemainingTime() == TimeSpan.Zero) 631if (this.RemainingTime() == TimeSpan.Zero)
System\ServiceModel\Discovery\DiscoveryEndpoint.cs (1)
35this.discoveryOperationContextExtension = new DiscoveryOperationContextExtension(TimeSpan.Zero, discoveryMode, discoveryVersion);
System\ServiceModel\Discovery\DiscoveryOperationContextExtension.cs (1)
18: this(TimeSpan.Zero, ServiceDiscoveryMode.Adhoc, DiscoveryVersion.DefaultDiscoveryVersion)
System\ServiceModel\Discovery\FindCriteria.cs (1)
143if (value.CompareTo(TimeSpan.Zero) <= 0)
System\ServiceModel\Discovery\RandomDelayQueuedSendsAsyncResult.cs (2)
35Fx.Assert(maxRandomDelay >= TimeSpan.Zero, "The maxRandomDelay parameter must be non negative."); 40this.doDelay = maxRandomDelay > TimeSpan.Zero;
System\ServiceModel\Discovery\RandomDelaySendsAsyncResult.cs (3)
50Fx.Assert(maxDelay >= TimeSpan.Zero, "The maxDelay must be non negative."); 65if (maxDelay != TimeSpan.Zero) 85if (this.maxDelay == TimeSpan.Zero)
System\ServiceModel\Discovery\ResolveCriteria.cs (1)
65if (value.CompareTo(TimeSpan.Zero) <= 0)
System\ServiceModel\Discovery\SerializationUtility.cs (1)
234if (timeout <= TimeSpan.Zero)
System.ServiceModel.Internals (12)
System\Runtime\BackoffTimeoutHelper.cs (2)
126if (this.waitTime < TimeSpan.Zero) 128this.waitTime = TimeSpan.Zero;
System\Runtime\Collections\ObjectCacheSettings.cs (2)
61Fx.Assert(value >= TimeSpan.Zero, "caller should validate cache limit is non-negative"); 74Fx.Assert(value >= TimeSpan.Zero, "caller should validate cache limit is non-negative");
System\Runtime\TimeoutHelper.cs (8)
19Fx.Assert(timeout >= TimeSpan.Zero, "timeout must be non-negative"); 84if (timeout >= TimeSpan.Zero && DateTime.MaxValue - time <= timeout) 88if (timeout <= TimeSpan.Zero && DateTime.MinValue - time >= timeout) 97return Add(time, TimeSpan.Zero - timeout); 124if (remaining <= TimeSpan.Zero) 126return TimeSpan.Zero; 154if (timeout < TimeSpan.Zero) 167if (timeout <= TimeSpan.Zero)
System.ServiceModel.Routing (1)
System\ServiceModel\Routing\RoutingService.cs (1)
136if (timeout > TimeSpan.Zero)
System.Transactions (19)
System\Transactions\Configuration\ConfigurationStrings.cs (1)
33return (span >= TimeSpan.Zero);
System\Transactions\Configuration\DefaultSettingsSection.cs (1)
65new TimeSpanValidator( TimeSpan.Zero, TimeSpan.MaxValue ),
System\Transactions\Configuration\MachineSettingsSection.cs (1)
57new TimeSpanValidator( TimeSpan.Zero, TimeSpan.MaxValue ),
System\Transactions\TransactionManager.cs (3)
598if ( transactionTimeout < TimeSpan.Zero ) 603if ( TransactionManager.MaximumTimeout != TimeSpan.Zero ) 605if ( transactionTimeout > TransactionManager.MaximumTimeout || transactionTimeout == TimeSpan.Zero )
System\Transactions\TransactionScope.cs (10)
156if ( (null != this.expectedCurrent) && (null == this.committableTransaction) && (TimeSpan.Zero != scopeTimeout) ) 163TimeSpan.Zero 253if ( (null != this.expectedCurrent) && (null == this.committableTransaction) && (TimeSpan.Zero != scopeTimeout) ) 260TimeSpan.Zero 346if ( (null != this.expectedCurrent) && (null == this.committableTransaction) && (TimeSpan.Zero != scopeTimeout) ) 353TimeSpan.Zero 420TimeSpan.Zero, 554if ( TimeSpan.Zero != scopeTimeout ) 560TimeSpan.Zero 1346if ( scopeTimeout < TimeSpan.Zero )
System\Transactions\TransactionState.cs (2)
2938newTimeout = TimeSpan.Zero; 2943if ( newTimeout <= TimeSpan.Zero )
System\Transactions\TransactionTable.cs (1)
195if ( timeout != TimeSpan.Zero )
System.Web (34)
Cache\cache.cs (1)
182public static readonly TimeSpan NoSlidingExpiration = TimeSpan.Zero;
Cache\CacheEntry.cs (2)
144if (slidingExpiration < TimeSpan.Zero || OneYear < slidingExpiration) { 162if (_slidingExpiration > TimeSpan.Zero) {
CachedPathData.cs (1)
76if (slidingExp == TimeSpan.Zero) {
Configuration\BufferModeSettings.cs (1)
74TimeSpan.Zero,
Configuration\HealthMonitoringSection.cs (1)
264new TimeSpanValidator(TimeSpan.Zero, TimeSpan.FromSeconds(MAX_HEARTBEAT_VALUE)),
Configuration\HostingEnvironmentSection.cs (1)
49new TimeSpanValidator(TimeSpan.Zero, TimeSpan.MaxValue),
Configuration\HttpRuntimeSection.cs (1)
145TimeSpan.Zero,
Configuration\RegexMatchTimeoutValidator.cs (1)
8private static readonly TimeSpan _minValue = TimeSpan.Zero;
Configuration\RuleSettings.cs (1)
27internal static TimeSpan DEFAULT_MIN_INTERVAL = TimeSpan.Zero;
FileChangesMonitor.cs (1)
909if (fad.UtcLastAccessTime.TimeOfDay == TimeSpan.Zero) {
Hosting\ApplicationManager.cs (1)
1003if (httpRuntimeSection.DefaultRegexMatchTimeout != TimeSpan.Zero) {
HttpCachePolicy.cs (11)
532_maxAge = TimeSpan.Zero; 534_proxyMaxAge = TimeSpan.Zero; 537_slidingDelta = TimeSpan.Zero; 785_slidingDelta = TimeSpan.Zero; 794_slidingDelta = TimeSpan.Zero; 1014if (maxAge < TimeSpan.Zero) { 1015maxAge = TimeSpan.Zero; 1024if (proxyMaxAge < TimeSpan.Zero) { 1025proxyMaxAge = TimeSpan.Zero; 1483if (delta < TimeSpan.Zero) { 1519if (delta < TimeSpan.Zero) {
Management\WebEvents.cs (3)
2292if (_ruleInfo._minInterval == TimeSpan.Zero) { 2438if (interval == TimeSpan.Zero) { 2447TimeSpan.Zero, interval);
State\InProcStateClientManager.cs (1)
114lockAge = TimeSpan.Zero;
State\OutOfProcStateClientManager.cs (3)
447lockAge = TimeSpan.Zero; 487lockAge = TimeSpan.Zero; 496lockAge = TimeSpan.Zero;
State\SessionStateModule.cs (1)
500_rqExecutionTimeout = TimeSpan.Zero;
State\sqlstateclientmanager.cs (2)
425lockAge = TimeSpan.Zero; 540lockAge = TimeSpan.Zero;
UI\Page.cs (1)
3960if (value < TimeSpan.Zero) {
System.Web.Extensions (1)
Script\Services\RestHandler.cs (1)
80context.Response.Cache.SetMaxAge(TimeSpan.Zero);
System.Web.Services (1)
System\Web\Services\Protocols\WebServiceHandler.cs (1)
72context.Response.Cache.SetMaxAge(TimeSpan.Zero);
System.Workflow.Activities (1)
Delay.cs (1)
231object parsedTimespan = TimeSpan.Zero;
System.Workflow.ComponentModel (1)
AuthoringOM\Behaviors\WorkflowTransactionOptions.cs (1)
92TimeSpan parsedTimespan = TimeSpan.Zero;
System.Workflow.Runtime (13)
Hosting\DefaultWorkflowSchedulerService.cs (1)
255TimeSpan span = (info.When > now) ? info.When - now : TimeSpan.Zero;
Hosting\ManualWorkflowSchedulerService.cs (1)
264TimeSpan span = (info.When > now) ? info.When - now : TimeSpan.Zero;
Hosting\SqlWorkflowPersistenceService.cs (7)
778this.loadingInterval = TimeSpan.Zero; 806if (instanceOwnershipDuration < TimeSpan.Zero) 853if (loadingInterval > TimeSpan.Zero) 1217if (when < TimeSpan.Zero) 1218when = TimeSpan.Zero; 1242if (when < TimeSpan.Zero) 1243when = TimeSpan.Zero;
Scheduler.cs (1)
169new TransactionScope(transactionalProperties.Transaction, TimeSpan.Zero, EnterpriseServicesInteropOption.Full);
System\Activities\Statements\InteropExecutor.cs (3)
242transactionalProperties.TransactionScope = new System.Transactions.TransactionScope(transactionalProperties.Transaction, TimeSpan.Zero, EnterpriseServicesInteropOption.Full); 1035if (timerDuration < TimeSpan.Zero) 1037timerDuration = TimeSpan.Zero;
System.WorkflowServices (11)
System\ServiceModel\Configuration\PersistenceProviderElement.cs (1)
68Fx.Assert(this.PersistenceOperationTimeout > TimeSpan.Zero,
System\ServiceModel\Description\PersistenceProviderBehavior.cs (1)
42if (value < TimeSpan.Zero)
System\ServiceModel\Description\WorkflowRuntimeBehavior.cs (1)
48if (value < TimeSpan.Zero)
System\ServiceModel\Dispatcher\ServiceDurableInstance.cs (1)
69Fx.Assert(operationTimeout > TimeSpan.Zero,
System\ServiceModel\Persistence\SqlPersistenceProviderFactory.cs (7)
44: this(connectionString, false, TimeSpan.Zero) 49: this(connectionString, serializeAsText, TimeSpan.Zero) 73this.LockTimeout = TimeSpan.Zero; 143if (value < TimeSpan.Zero || 179get { return this.lockTimeout != TimeSpan.Zero; } 187if (this.lockTimeout == TimeSpan.Zero) 702if (timeout <= TimeSpan.Zero ||
System.Xml (1)
System\Xml\Core\XmlWriter.cs (1)
295if (value.Offset != TimeSpan.Zero) {
WindowsBase (1)
Base\System\Windows\SplashScreen.cs (1)
287if (fadeoutDuration <= TimeSpan.Zero)