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
- _SSPIWrapper.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- coordinatorfactory.cs
- ICspAsymmetricAlgorithm.cs
- PersistenceProviderDirectory.cs
- SafeEventHandle.cs
- HttpGetServerProtocol.cs
- DiagnosticsConfiguration.cs
- MobileFormsAuthentication.cs
- ValuePatternIdentifiers.cs
- DataControlPagerLinkButton.cs
- DesignerMetadata.cs
- Util.cs
- SRDisplayNameAttribute.cs
- ListenerServiceInstallComponent.cs
- SecurityTokenProviderContainer.cs
- BindingNavigator.cs
- CompilationUtil.cs
- PersonalizationStateQuery.cs
- RightsManagementEncryptedStream.cs
- BaseTemplateCodeDomTreeGenerator.cs
- Normalization.cs
- ToolStripRendererSwitcher.cs
- PrintDocument.cs
- Composition.cs
- Triangle.cs
- XamlClipboardData.cs
- ContextBase.cs
- MouseDevice.cs
- GeneralTransform3D.cs
- RecordsAffectedEventArgs.cs
- Base64Encoder.cs
- Int32AnimationBase.cs
- WsatConfiguration.cs
- CharUnicodeInfo.cs
- DescendantQuery.cs
- EntityParameter.cs
- AssertFilter.cs
- HtmlLink.cs
- Polyline.cs
- DockPattern.cs
- LineUtil.cs
- HtmlControlPersistable.cs
- PageAsyncTaskManager.cs
- ReversePositionQuery.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- IncomingWebResponseContext.cs
- ItemCollectionEditor.cs
- XPathMultyIterator.cs
- ControlAdapter.cs
- Effect.cs
- BaseTreeIterator.cs
- XsdSchemaFileEditor.cs
- TextOnlyOutput.cs
- PathFigure.cs
- DoubleAnimationUsingPath.cs
- PersonalizationStateQuery.cs
- WebPartRestoreVerb.cs
- HttpWebRequest.cs
- MouseGesture.cs
- OleDbPermission.cs
- DataGridViewEditingControlShowingEventArgs.cs
- BitmapCacheBrush.cs
- SqlDataSourceView.cs
- PropertyStore.cs
- TrackingDataItemValue.cs
- hwndwrapper.cs
- CodeDomSerializerBase.cs
- CompilerTypeWithParams.cs
- CustomAttributeSerializer.cs
- ObjectTag.cs
- ListView.cs
- WebBrowserNavigatingEventHandler.cs
- BrowserCapabilitiesCodeGenerator.cs
- ToolboxItemAttribute.cs
- TextRunTypographyProperties.cs
- BaseWebProxyFinder.cs
- ResourceExpressionEditor.cs
- ClientCultureInfo.cs
- SecurityPolicySection.cs
- ScrollBarRenderer.cs
- DependencyPropertyValueSerializer.cs
- DataGridViewCellValidatingEventArgs.cs
- InstanceData.cs
- DynamicValueConverter.cs
- PropertyMap.cs
- ByteStream.cs
- BuilderPropertyEntry.cs
- COMException.cs
- AssemblyNameProxy.cs
- EventSourceCreationData.cs
- CodeAttributeDeclaration.cs
- PackWebRequestFactory.cs
- ApplicationException.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- ScrollViewer.cs
- TrackingValidationObjectDictionary.cs
- SQLInt16Storage.cs
- StreamReader.cs
- KnownIds.cs