Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / System.Runtime.DurableInstancing / System / Runtime / DurableInstancing / InstanceHandleReference.cs / 1305376 / InstanceHandleReference.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.Runtime.DurableInstancing { // This class serves as a reference back to an InstanceHandle from the perspective of an InstanceOwner for tracking lock binds in progress. // It works in two modes, one as a pure cancelable handle reference (where cancelling means nulling out the reference) and the // other as a queue position marker for determining when all of the in-progress requests at one point in time are all done. In the // marker mode (InstanceOwner.LockResolutionMarker), it carries some additional context for maintaining the state of the // InstancePersistenceContext.ResolveExistingLock operation. class InstanceHandleReference { internal InstanceHandleReference(InstanceHandle instanceHandle) { Fx.Assert(instanceHandle != null, "Null instanceHandle provided to InstanceHandleReference."); InstanceHandle = instanceHandle; } // This is set to null when the InstanceHandleReference is detached from the InstanceHandle - i.e. it is // no longer in use, and exists just to make it possible to lazily drain out of the various queues. internal InstanceHandle InstanceHandle { get; private set; } internal void Cancel() { Fx.Assert(InstanceHandle != null, "InstanceHandleReference already cancelled."); InstanceHandle = null; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlSchemaAnnotation.cs
- IssuedTokenParametersEndpointAddressElement.cs
- UrlMappingsSection.cs
- ReadOnlyState.cs
- DataGridCellEditEndingEventArgs.cs
- DeflateStream.cs
- WpfWebRequestHelper.cs
- FacetDescriptionElement.cs
- TextDecorationUnitValidation.cs
- MimeMapping.cs
- MonitoringDescriptionAttribute.cs
- UnmanagedMemoryStreamWrapper.cs
- WCFServiceClientProxyGenerator.cs
- RoutedEventHandlerInfo.cs
- XmlSchemaValidator.cs
- MultipleViewPatternIdentifiers.cs
- ConfigurationException.cs
- CellParaClient.cs
- SoapExtensionReflector.cs
- ExpandCollapseProviderWrapper.cs
- CaseStatement.cs
- ContentPathSegment.cs
- ProbeMatchesApril2005.cs
- NotImplementedException.cs
- PropertyInfoSet.cs
- OracleBinary.cs
- NumberAction.cs
- Soap.cs
- TypeUtil.cs
- SqlParameterCollection.cs
- AsymmetricSecurityProtocolFactory.cs
- CodeAccessPermission.cs
- OneToOneMappingSerializer.cs
- ToolStripButton.cs
- BindingManagerDataErrorEventArgs.cs
- RectangleGeometry.cs
- SettingsPropertyWrongTypeException.cs
- RotateTransform.cs
- ItemTypeToolStripMenuItem.cs
- MatrixTransform.cs
- XmlWriter.cs
- AnonymousIdentificationSection.cs
- DataSysAttribute.cs
- DbConnectionPoolOptions.cs
- ProfileSection.cs
- EventProviderWriter.cs
- EncodingNLS.cs
- StringInfo.cs
- PointValueSerializer.cs
- UnsafeNativeMethods.cs
- SizeConverter.cs
- TableStyle.cs
- EdmItemError.cs
- GridViewRowEventArgs.cs
- ServiceThrottlingElement.cs
- SmiEventSink_Default.cs
- ToolStripRenderEventArgs.cs
- Expression.cs
- DelegateHelpers.cs
- PolyBezierSegment.cs
- NamespaceDecl.cs
- X509ChainElement.cs
- PeerChannelListener.cs
- EditorOptionAttribute.cs
- DataGridRow.cs
- XmlSchemaGroup.cs
- SoapProtocolReflector.cs
- LineBreakRecord.cs
- ManagedIStream.cs
- TagMapInfo.cs
- CorrelationInitializer.cs
- TimeoutException.cs
- UnsafeNativeMethods.cs
- DataGridViewCell.cs
- ValidationRule.cs
- TreeViewEvent.cs
- LockCookie.cs
- TextUtf8RawTextWriter.cs
- WCFBuildProvider.cs
- EventSinkHelperWriter.cs
- KeyConverter.cs
- AssemblyUtil.cs
- FontResourceCache.cs
- CommonProperties.cs
- ContactManager.cs
- GridViewRowCollection.cs
- Hashtable.cs
- PeerCollaborationPermission.cs
- DBSchemaTable.cs
- Lease.cs
- ConfigurationStrings.cs
- WebPartPersonalization.cs
- WebPartActionVerb.cs
- FontFamily.cs
- CaretElement.cs
- SiblingIterators.cs
- XmlTextReaderImpl.cs
- CreateUserWizard.cs
- LinearQuaternionKeyFrame.cs
- HScrollProperties.cs