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