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