Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / System.Runtime.DurableInstancing / System / Runtime / BackoffTimeoutHelper.cs / 1305376 / BackoffTimeoutHelper.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.Runtime
{
using System;
using System.Threading;
sealed class BackoffTimeoutHelper
{
readonly static int maxSkewMilliseconds = (int)(IOThreadTimer.SystemTimeResolutionTicks / TimeSpan.TicksPerMillisecond);
readonly static long maxDriftTicks = IOThreadTimer.SystemTimeResolutionTicks * 2;
readonly static TimeSpan defaultInitialWaitTime = TimeSpan.FromMilliseconds(1);
readonly static TimeSpan defaultMaxWaitTime = TimeSpan.FromMinutes(1);
DateTime deadline;
TimeSpan maxWaitTime;
TimeSpan waitTime;
IOThreadTimer backoffTimer;
Action
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PreProcessor.cs
- _SafeNetHandles.cs
- MatrixKeyFrameCollection.cs
- RemoteWebConfigurationHostServer.cs
- StylusButtonCollection.cs
- MapPathBasedVirtualPathProvider.cs
- XPathNavigator.cs
- GroupBoxRenderer.cs
- ScriptMethodAttribute.cs
- GeometryDrawing.cs
- SafeViewOfFileHandle.cs
- StringConcat.cs
- ISAPIRuntime.cs
- Point3D.cs
- AddingNewEventArgs.cs
- ContentControl.cs
- Renderer.cs
- SerializationInfo.cs
- DependencyProperty.cs
- ObjectMaterializedEventArgs.cs
- DockAndAnchorLayout.cs
- ThaiBuddhistCalendar.cs
- InsufficientExecutionStackException.cs
- SettingsBindableAttribute.cs
- OleDbConnectionInternal.cs
- GeneralTransformCollection.cs
- DefaultAsyncDataDispatcher.cs
- InkCanvasSelectionAdorner.cs
- CompositeFontParser.cs
- EntityParameter.cs
- ShaderEffect.cs
- WebPartMinimizeVerb.cs
- Viewport3DAutomationPeer.cs
- DelegateTypeInfo.cs
- ImageKeyConverter.cs
- DocumentPaginator.cs
- SimpleWebHandlerParser.cs
- EncryptedPackageFilter.cs
- infer.cs
- dsa.cs
- ProtocolsSection.cs
- ZipFileInfo.cs
- Missing.cs
- SortFieldComparer.cs
- Page.cs
- MethodToken.cs
- IList.cs
- activationcontext.cs
- FixedFlowMap.cs
- DataSourceConverter.cs
- RelationshipEnd.cs
- SiteMapProvider.cs
- ProtectedConfiguration.cs
- ManagedIStream.cs
- PlaceHolder.cs
- EFAssociationProvider.cs
- ButtonChrome.cs
- DesignerOptionService.cs
- DataRecordInternal.cs
- SerializationAttributes.cs
- FeatureSupport.cs
- RemotingHelper.cs
- TdsParserStaticMethods.cs
- PropertyDescriptors.cs
- AstNode.cs
- Delegate.cs
- WsdlWriter.cs
- ViewBox.cs
- Assert.cs
- CodeGeneratorAttribute.cs
- PrimarySelectionAdorner.cs
- XmlMemberMapping.cs
- UInt16Storage.cs
- EpmCustomContentDeSerializer.cs
- DataReaderContainer.cs
- FormClosedEvent.cs
- AnimationClockResource.cs
- UnicodeEncoding.cs
- FlowDocumentPage.cs
- InputLanguageSource.cs
- XmlRootAttribute.cs
- METAHEADER.cs
- QuotedPrintableStream.cs
- AppDomainUnloadedException.cs
- IndexedString.cs
- Freezable.cs
- SafeRegistryKey.cs
- UserNameSecurityTokenProvider.cs
- WindowManager.cs
- Point3DCollection.cs
- CompoundFileIOPermission.cs
- SrgsDocument.cs
- FixedMaxHeap.cs
- ProcessHostMapPath.cs
- IgnoreFileBuildProvider.cs
- SoapMessage.cs
- InvokePattern.cs
- UrlMappingsModule.cs
- InstanceStore.cs
- WorkflowRuntimeServiceElementCollection.cs