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
- Latin1Encoding.cs
- Subtree.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- MetadataCache.cs
- XmlUtil.cs
- DbConnectionOptions.cs
- Drawing.cs
- DBSqlParserColumn.cs
- DoubleIndependentAnimationStorage.cs
- TextParagraphView.cs
- InternalPermissions.cs
- ListChangedEventArgs.cs
- CultureInfoConverter.cs
- SamlAssertion.cs
- IApplicationTrustManager.cs
- iisPickupDirectory.cs
- ButtonAutomationPeer.cs
- TriggerAction.cs
- SmtpNtlmAuthenticationModule.cs
- StateChangeEvent.cs
- HtmlHistory.cs
- SamlAdvice.cs
- HiddenField.cs
- XPathMessageContext.cs
- PropertyItem.cs
- XPathMultyIterator.cs
- CompiledELinqQueryState.cs
- MarshalByRefObject.cs
- Perspective.cs
- XPathParser.cs
- InsufficientExecutionStackException.cs
- RtfFormatStack.cs
- ComponentSerializationService.cs
- EntityDataReader.cs
- ReferencedAssembly.cs
- BaseTypeViewSchema.cs
- ErrorHandlerFaultInfo.cs
- URLAttribute.cs
- FastPropertyAccessor.cs
- EntityAdapter.cs
- BinHexEncoder.cs
- SignatureDescription.cs
- SimplePropertyEntry.cs
- KeyBinding.cs
- IsolationInterop.cs
- InputBindingCollection.cs
- HostSecurityManager.cs
- HtmlInputCheckBox.cs
- LeafCellTreeNode.cs
- Int32Storage.cs
- BitmapEffectGroup.cs
- InputGestureCollection.cs
- SecurityDescriptor.cs
- Type.cs
- AppSettingsSection.cs
- StylusPointProperty.cs
- LogicalTreeHelper.cs
- Win32SafeHandles.cs
- EnumBuilder.cs
- CodeParameterDeclarationExpressionCollection.cs
- XmlCharacterData.cs
- MenuCommands.cs
- LocationSectionRecord.cs
- KeyFrames.cs
- PrintPreviewGraphics.cs
- DictionaryKeyPropertyAttribute.cs
- XPathNavigatorException.cs
- ReturnEventArgs.cs
- _PooledStream.cs
- FormViewDeleteEventArgs.cs
- CodeEventReferenceExpression.cs
- HostProtectionPermission.cs
- EmissiveMaterial.cs
- DataViewManagerListItemTypeDescriptor.cs
- SafeNativeMethods.cs
- SQLMembershipProvider.cs
- pingexception.cs
- FileUpload.cs
- CacheHelper.cs
- ColumnReorderedEventArgs.cs
- MonthChangedEventArgs.cs
- HandlerFactoryCache.cs
- SocketPermission.cs
- RequestTimeoutManager.cs
- BuildResult.cs
- OdbcErrorCollection.cs
- ViewBox.cs
- Processor.cs
- XamlStyleSerializer.cs
- TextTabProperties.cs
- ProcessHostConfigUtils.cs
- ObjectDataSourceSelectingEventArgs.cs
- DataGridViewRowConverter.cs
- ByteConverter.cs
- Point.cs
- AsyncPostBackErrorEventArgs.cs
- TraceSection.cs
- DataTableClearEvent.cs
- InfoCardKeyedHashAlgorithm.cs
- DSASignatureFormatter.cs