84 references to TotalSeconds
PresentationCore (1)
Core\CSharp\System\Windows\Interop\HwndTarget.cs (1)
1085
bool fWithinPresentRetryWindow = delta.
TotalSeconds
< _allowedPresentFailureDelay;
System (45)
compmod\system\componentmodel\DateTimeConverter.cs (2)
107
if (dt.TimeOfDay.
TotalSeconds
== 0) {
114
if (dt.TimeOfDay.
TotalSeconds
== 0) {
compmod\system\componentmodel\DateTimeOffsetConverter.cs (2)
117
if (dto.TimeOfDay.
TotalSeconds
== 0) {
126
if (dto.TimeOfDay.
TotalSeconds
== 0) {
net\System\Net\_Connection.cs (1)
860
((DateTime.UtcNow - m_IdleSinceUtc).
TotalSeconds
) +
net\System\Net\Cache\_Rfc2616CacheValidators.cs (19)
98
ctx.Request.Headers.AddInternal(HttpKnownHeaderNames.CacheControl, "min-fresh=" + (int)ctx.Policy.MinFresh.
TotalSeconds
);
101
ctx.Request.Headers.AddInternal(HttpKnownHeaderNames.CacheControl, "max-age=" + (int)ctx.Policy.MaxAge.
TotalSeconds
);
104
ctx.Request.Headers.AddInternal(HttpKnownHeaderNames.CacheControl, "max-stale=" + (int)ctx.Policy.MaxStale.
TotalSeconds
);
514
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_age1_date_header, ((int)age.
TotalSeconds
).ToString(NumberFormatInfo.InvariantInfo), ctx.CacheDate.ToString("r", CultureInfo.InvariantCulture)));
526
Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_age1_last_synchronized_age_header, ((int)age.
TotalSeconds
).ToString(NumberFormatInfo.InvariantInfo), ctx.CacheEntry.LastSynchronizedUtc.ToString("r", CultureInfo.InvariantCulture), ((int)ctx.CacheAge.
TotalSeconds
).ToString(NumberFormatInfo.InvariantInfo)));
528
Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_age1_last_synchronized, ((int)age.
TotalSeconds
).ToString(NumberFormatInfo.InvariantInfo), ctx.CacheEntry.LastSynchronizedUtc.ToString("r", CultureInfo.InvariantCulture)));
536
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_age2, ((int)ctx.CacheAge.
TotalSeconds
).ToString(NumberFormatInfo.InvariantInfo)));
567
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_max_age_cache_s_max_age, ((int)ctx.CacheMaxAge.
TotalSeconds
).ToString(NumberFormatInfo.InvariantInfo)));
581
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_max_age_cache_max_age, ((int)ctx.CacheMaxAge.
TotalSeconds
).ToString(NumberFormatInfo.InvariantInfo)));
605
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_max_age_expires_date, ((int)((expiresDate - date).
TotalSeconds
)).ToString(NumberFormatInfo.InvariantInfo), expiresDate.ToString("r", CultureInfo.InvariantCulture)));
647
int maxAgeSeconds = (int)(span.
TotalSeconds
/10);
650
if (ctx.CacheAge.
TotalSeconds
< maxAgeSeconds) {
658
if(Logging.On)Logging.PrintWarning(Logging.RequestCache, SR.GetString(SR.net_log_cache_no_max_age_use_default, ((int)(ctx.UnspecifiedMaxAge.
TotalSeconds
)).ToString(NumberFormatInfo.InvariantInfo)));
883
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_age, (ctx.CacheAge != TimeSpan.MinValue ? ((int)ctx.CacheAge.
TotalSeconds
).ToString(NumberFormatInfo.InvariantInfo) : SR.GetString(SR.net_log_unknown)), (ctx.CacheMaxAge != TimeSpan.MinValue? ((int)ctx.CacheMaxAge.
TotalSeconds
).ToString(NumberFormatInfo.InvariantInfo): SR.GetString(SR.net_log_unknown))));
887
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_policy_min_fresh, ((int)ctx.Policy.MinFresh.
TotalSeconds
).ToString(NumberFormatInfo.InvariantInfo)));
893
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_policy_max_age, ((int)ctx.Policy.MaxAge.
TotalSeconds
).ToString(NumberFormatInfo.InvariantInfo)));
908
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_policy_max_stale, ((int)ctx.Policy.MaxStale.
TotalSeconds
).ToString(NumberFormatInfo.InvariantInfo)));
net\System\Net\Cache\FtpRequestCacheValidator.cs (4)
156
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_age1, ((int)age.
TotalSeconds
).ToString(NumberFormatInfo.InvariantInfo), CacheEntry.LastSynchronizedUtc.ToString("r", CultureInfo.InvariantCulture)));
165
int maxAgeSeconds = (int)(span.
TotalSeconds
/10);
167
if (age.
TotalSeconds
< maxAgeSeconds) {
174
if(Logging.On)Logging.PrintWarning(Logging.RequestCache, SR.GetString(SR.net_log_cache_no_max_age_use_default, ((int)(UnspecifiedMaxAge.
TotalSeconds
)).ToString(NumberFormatInfo.InvariantInfo)));
net\System\Net\Cache\HttpRequestCacheValidator.cs (4)
305
if (HeuristicExpiration && (int)CacheAge.
TotalSeconds
>= 24*3600) {
315
CacheHeaders[HttpKnownHeaderNames.Age] = ((int)(CacheAge.
TotalSeconds
)).ToString(NumberFormatInfo.InvariantInfo);
361
if (HeuristicExpiration && (int)CacheAge.
TotalSeconds
>= 24*3600) {
389
CacheHeaders[HttpKnownHeaderNames.Age] = ((int)(CacheAge.
TotalSeconds
)).ToString(NumberFormatInfo.InvariantInfo);
net\System\Net\Cache\IERequestCache.cs (4)
423
entry.Info.U.ExemptDelta = (int)maxStale.
TotalSeconds
;
435
Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_max_stale, (maxStale > TimeSpan.Zero? ((int)maxStale.
TotalSeconds
).ToString():"n/a")));
550
entry.Info.U.ExemptDelta = (int)maxStale.
TotalSeconds
;
551
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_enable_max_stale, ((int)maxStale.
TotalSeconds
).ToString()));
net\System\Net\Cache\RequestCacheEntry.cs (1)
94
sb.Append("\r\nMaxStale(sec) = ").Append(MaxStale == TimeSpan.MinValue? "": ((int)MaxStale.
TotalSeconds
).ToString(NumberFormatInfo.CurrentInfo));
net\System\Net\Configuration\HttpListenerTimeoutsElement.cs (6)
86
timeouts[0] = Convert.ToInt64(EntityBody.
TotalSeconds
);
87
timeouts[1] = Convert.ToInt64(DrainEntityBody.
TotalSeconds
);
88
timeouts[2] = Convert.ToInt64(RequestQueue.
TotalSeconds
);
89
timeouts[3] = Convert.ToInt64(IdleConnection.
TotalSeconds
);
90
timeouts[4] = Convert.ToInt64(HeaderWait.
TotalSeconds
);
107
Int64 seconds = Convert.ToInt64(timeout.
TotalSeconds
);
net\System\Net\cookie.cs (1)
792
int seconds = (int) (Expires.ToLocalTime() - DateTime.Now).
TotalSeconds
;
net\System\Net\HttpListenerTimeoutManager.cs (1)
81
timeoutValue = Convert.ToInt64(value.
TotalSeconds
);
System.Activities.DurableInstancing (6)
System\Activities\DurableInstancing\CreateWorkflowOwnerAsyncResult.cs (1)
68
double lockTimeout = base.Store.BufferedHostLockRenewalPeriod.
TotalSeconds
;
System\Activities\DurableInstancing\ExtendLockAsyncResult.cs (1)
46
double lockTimeout = base.Store.BufferedHostLockRenewalPeriod.
TotalSeconds
;
System\Activities\DurableInstancing\SqlWorkflowInstanceStore.cs (4)
183
double lockBuffer = Math.Min(SqlWorkflowInstanceStoreConstants.LockOwnerTimeoutBuffer.
TotalSeconds
, (TimeSpan.MaxValue.Subtract(this.HostLockRenewalPeriod)).
TotalSeconds
);
184
this.bufferedHostLockRenewalPeriod = TimeSpan.FromSeconds(Math.Min(Int32.MaxValue, lockBuffer + this.HostLockRenewalPeriod.
TotalSeconds
));
566
ConnectTimeout = (int) SqlWorkflowInstanceStore.defaultConnectionOpenTime.
TotalSeconds
,
System.AddIn (1)
System\Addin\Hosting\AddInProcess.cs (1)
70
if (value.
TotalSeconds
< 0) throw new ArgumentOutOfRangeException("value");
System.Configuration (1)
System\Configuration\TimeSpanSecondsConverter.cs (1)
26
long data = (long)(((TimeSpan)value).
TotalSeconds
);
System.Management (2)
managementquery.cs (2)
2971
s = s + " within " + withinInterval.
TotalSeconds
.ToString((IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(System.Double)));
2980
s = s + " group within " + groupWithinInterval.
TotalSeconds
.ToString((IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(System.Double)));
System.Messaging (4)
System\Messaging\Design\TimeoutConverter.cs (1)
85
double totalSeconds = ((TimeSpan)value).
TotalSeconds
;
System\Messaging\Message.cs (2)
1701
long timeoutInSeconds = (long)value.
TotalSeconds
;
1751
long timeoutInSeconds = (long)value.
TotalSeconds
;
System\Messaging\MessageQueueCriteria.cs (1)
306
return (int)(time - MessageQueueCriteria.minDate).
TotalSeconds
;
System.ServiceModel (2)
System\ServiceModel\Channels\NativeMsmqMessage.cs (1)
568
long totalSeconds = (long)timeSpan.
TotalSeconds
;
System\ServiceModel\Channels\PnrpPeerResolver.cs (1)
2012
resolveQueryInfo.dwTimeout = (int)timeout.
TotalSeconds
;
System.ServiceModel.Activities (2)
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (2)
1656
if (result == BookmarkResumptionResult.NotReady && !bufferedReceiveEnabled && (this.serviceHost.FilterResumeTimeout.
TotalSeconds
> 0))
3199
if (this.resumptionResult == BookmarkResumptionResult.NotReady && !bufferedReceiveEnabled && (this.instance.serviceHost.FilterResumeTimeout.
TotalSeconds
> 0))
System.ServiceModel.Discovery (1)
System\ServiceModel\Discovery\DiscoveryMessageSequenceGenerator.cs (1)
38
return (long)DateTime.Now.Subtract(DT1970).
TotalSeconds
;
System.Web (14)
Hosting\HostingEnvironment.cs (2)
567
shutdownTimeoutSeconds = (int) hostEnvConfig.ShutdownTimeout.
TotalSeconds
;
868
return -(int)(DateTime.UtcNow - itm.LastEvent).
TotalSeconds
;
HttpCachePolicy.cs (4)
872
AppendValueToHeader(sb, "max-age=" + ((long)_maxAge.
TotalSeconds
).ToString(CultureInfo.InvariantCulture));
876
AppendValueToHeader(sb, "s-maxage=" + ((long)(_proxyMaxAge).
TotalSeconds
).ToString(CultureInfo.InvariantCulture));
1019
AppendValueToHeader(sb, "max-age=" + ((long)maxAge.
TotalSeconds
).ToString(CultureInfo.InvariantCulture));
1029
AppendValueToHeader(sb, "s-maxage=" + ((long)(proxyMaxAge).
TotalSeconds
).ToString(CultureInfo.InvariantCulture));
HttpResponse.cs (1)
810
double seconds = (_cachePolicy.UtcGetAbsoluteExpiration() - DateTime.UtcNow).
TotalSeconds
;
HttpRuntime.cs (3)
1310
int deadLockInterval = (int)pmConfig.ResponseDeadlockInterval.
TotalSeconds
;
1965
drainTimeoutSec = (int)runtimeConfig.ShutdownTimeout.
TotalSeconds
;
2237
delayTimeoutSec = (int)runtimeSection.DelayNotificationTimeout.
TotalSeconds
;
httpserverutility.cs (1)
907
return Convert.ToInt32(_context.Timeout.
TotalSeconds
);
Security\AnonymousIdentificationModule.cs (1)
247
double secondsLeft = (decodedValue.ExpireDate - dtNow).
TotalSeconds
;
State\OutOfProcStateClientManager.cs (1)
105
s_networkTimeout = (int)config.StateNetworkTimeout.
TotalSeconds
;
State\sqlstateclientmanager.cs (1)
150
s_commandTimeout = (int)config.SqlCommandTimeout.
TotalSeconds
;
System.Web.DataVisualization (1)
Common\General\AxisScale.cs (1)
1408
double seconds = timeSpan.
TotalSeconds
;
System.Windows.Forms.DataVisualization (1)
Common\General\AxisScale.cs (1)
1408
double seconds = timeSpan.
TotalSeconds
;
System.Workflow.Runtime (1)
Hosting\SqlWorkflowPersistenceService.cs (1)
820
WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "SqlWorkflowPersistenceService({1}): Starting, LoadInternalSeconds={0}", loadingInterval.
TotalSeconds
, _serviceInstanceId.ToString());
System.WorkflowServices (2)
System\ServiceModel\Persistence\SqlPersistenceProviderFactory.cs (2)
200
return Convert.ToInt32(this.lockTimeout.
TotalSeconds
);
302
return Convert.ToInt32(timeout.
TotalSeconds
);