Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / System.Runtime.DurableInstancing / System / Runtime / DurableInstancing / InstanceLockLostException.cs / 1305376 / InstanceLockLostException.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.Runtime.DurableInstancing { using System.Diagnostics.CodeAnalysis; using System.Runtime.Serialization; using System.Security; using System.Xml.Linq; [Serializable] public class InstanceLockLostException : InstancePersistenceCommandException { public InstanceLockLostException() : this(SRCore.InstanceLockLostDefault, null) { } public InstanceLockLostException(string message) : this(message, null) { } public InstanceLockLostException(string message, Exception innerException) : base(message, innerException) { } public InstanceLockLostException(XName commandName, Guid instanceId) : this(commandName, instanceId, null) { } public InstanceLockLostException(XName commandName, Guid instanceId, Exception innerException) : this(commandName, instanceId, ToMessage(instanceId), innerException) { } public InstanceLockLostException(XName commandName, Guid instanceId, string message, Exception innerException) : base(commandName, instanceId, message, innerException) { } [SecurityCritical] protected InstanceLockLostException(SerializationInfo info, StreamingContext context) : base(info, context) { } static string ToMessage(Guid instanceId) { if (instanceId != Guid.Empty) { return SRCore.InstanceLockLostSpecific(instanceId); } return SRCore.InstanceLockLostDefault; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.Runtime.DurableInstancing { using System.Diagnostics.CodeAnalysis; using System.Runtime.Serialization; using System.Security; using System.Xml.Linq; [Serializable] public class InstanceLockLostException : InstancePersistenceCommandException { public InstanceLockLostException() : this(SRCore.InstanceLockLostDefault, null) { } public InstanceLockLostException(string message) : this(message, null) { } public InstanceLockLostException(string message, Exception innerException) : base(message, innerException) { } public InstanceLockLostException(XName commandName, Guid instanceId) : this(commandName, instanceId, null) { } public InstanceLockLostException(XName commandName, Guid instanceId, Exception innerException) : this(commandName, instanceId, ToMessage(instanceId), innerException) { } public InstanceLockLostException(XName commandName, Guid instanceId, string message, Exception innerException) : base(commandName, instanceId, message, innerException) { } [SecurityCritical] protected InstanceLockLostException(SerializationInfo info, StreamingContext context) : base(info, context) { } static string ToMessage(Guid instanceId) { if (instanceId != Guid.Empty) { return SRCore.InstanceLockLostSpecific(instanceId); } return SRCore.InstanceLockLostDefault; } } } // 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
- CmsUtils.cs
- BitFlagsGenerator.cs
- ChameleonKey.cs
- SelectedGridItemChangedEvent.cs
- DataBindingCollection.cs
- WebPartZoneCollection.cs
- Pts.cs
- TreeSet.cs
- SecurityPermission.cs
- Hashtable.cs
- ScopeElementCollection.cs
- PerspectiveCamera.cs
- TextProperties.cs
- Regex.cs
- Range.cs
- SoapWriter.cs
- PropertyPathWorker.cs
- ObjectDataSourceDisposingEventArgs.cs
- WindowsAuthenticationModule.cs
- DrawingContextDrawingContextWalker.cs
- QueryResults.cs
- ImpersonationContext.cs
- AsnEncodedData.cs
- JpegBitmapDecoder.cs
- SecurityTokenParametersEnumerable.cs
- EdmComplexPropertyAttribute.cs
- XmlSchemaSimpleContentRestriction.cs
- bidPrivateBase.cs
- DataGridViewRowPrePaintEventArgs.cs
- AppModelKnownContentFactory.cs
- TrackingDataItem.cs
- LinqDataSourceValidationException.cs
- TrackingRecord.cs
- ElapsedEventArgs.cs
- ContainerControl.cs
- MemberInfoSerializationHolder.cs
- AbstractDataSvcMapFileLoader.cs
- SqlTriggerAttribute.cs
- DocComment.cs
- WebPartDisplayModeEventArgs.cs
- UniqueID.cs
- QuotedStringWriteStateInfo.cs
- TemplateXamlParser.cs
- DocumentSequenceHighlightLayer.cs
- ResourceProviderFactory.cs
- FigureParaClient.cs
- PersistenceTypeAttribute.cs
- XPathSingletonIterator.cs
- _UriSyntax.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- SharedMemory.cs
- Matrix.cs
- IPPacketInformation.cs
- ApplicationProxyInternal.cs
- DataGridAutomationPeer.cs
- ScrollItemProviderWrapper.cs
- TemplateBindingExpressionConverter.cs
- EntitySqlQueryCacheKey.cs
- DataRowChangeEvent.cs
- AuthenticationModuleElement.cs
- WebConfigurationHostFileChange.cs
- DurableMessageDispatchInspector.cs
- InvalidEnumArgumentException.cs
- Win32PrintDialog.cs
- RequestCacheManager.cs
- PeerNameResolver.cs
- WebConfigurationFileMap.cs
- IMembershipProvider.cs
- SoapInteropTypes.cs
- StringReader.cs
- ConsoleCancelEventArgs.cs
- MatrixKeyFrameCollection.cs
- SerializationAttributes.cs
- HtmlInputSubmit.cs
- MainMenu.cs
- ListControlStringCollectionEditor.cs
- NativeCppClassAttribute.cs
- RangeContentEnumerator.cs
- DocumentSequence.cs
- ListParaClient.cs
- PeerEndPoint.cs
- PolyBezierSegment.cs
- TabItemAutomationPeer.cs
- TouchesOverProperty.cs
- Imaging.cs
- LicenseContext.cs
- Point3DAnimationUsingKeyFrames.cs
- Win32PrintDialog.cs
- BlurBitmapEffect.cs
- NavigationWindow.cs
- Border.cs
- InheritanceRules.cs
- NotFiniteNumberException.cs
- HttpFileCollection.cs
- QilList.cs
- OperationDescription.cs
- PingOptions.cs
- ConfigurationSectionGroup.cs
- DataView.cs
- ObjectQueryProvider.cs