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
- EventRouteFactory.cs
- ExpressionLexer.cs
- _NtlmClient.cs
- IUnknownConstantAttribute.cs
- BufferedWebEventProvider.cs
- IsolatedStoragePermission.cs
- MatrixIndependentAnimationStorage.cs
- ColorBlend.cs
- AnnouncementEndpoint.cs
- WebPartZoneCollection.cs
- CompareValidator.cs
- PageAdapter.cs
- StyleBamlRecordReader.cs
- MethodExpr.cs
- ForeignConstraint.cs
- TrackingWorkflowEventArgs.cs
- DataGridItemAttachedStorage.cs
- XmlDocumentSerializer.cs
- FreeFormPanel.cs
- LayoutEngine.cs
- ByteKeyFrameCollection.cs
- ValueUtilsSmi.cs
- RuleSettingsCollection.cs
- SingleResultAttribute.cs
- panel.cs
- ListViewInsertEventArgs.cs
- Camera.cs
- SecurityTokenAuthenticator.cs
- KeyConverter.cs
- QuadraticBezierSegment.cs
- _NetworkingPerfCounters.cs
- BrowserCapabilitiesFactory.cs
- PropertyInfoSet.cs
- SymbolMethod.cs
- FileVersionInfo.cs
- Drawing.cs
- MethodImplAttribute.cs
- ContainerVisual.cs
- SQLGuidStorage.cs
- IfAction.cs
- HasCopySemanticsAttribute.cs
- CriticalFinalizerObject.cs
- ApplicationSecurityInfo.cs
- WindowsComboBox.cs
- PaintEvent.cs
- EndGetFileNameFromUserRequest.cs
- HtmlInputImage.cs
- HGlobalSafeHandle.cs
- ExtensionDataObject.cs
- PropertyConverter.cs
- WindowShowOrOpenTracker.cs
- DataGridViewBindingCompleteEventArgs.cs
- DesignerVerbToolStripMenuItem.cs
- SQLInt16Storage.cs
- AutoResetEvent.cs
- ClientScriptManager.cs
- DataFormats.cs
- MethodCallTranslator.cs
- RectangleGeometry.cs
- SHA256.cs
- DelegateCompletionCallbackWrapper.cs
- InputMethod.cs
- EditorServiceContext.cs
- BrowserInteropHelper.cs
- SnapLine.cs
- X509LogoTypeExtension.cs
- UserCancellationException.cs
- WhitespaceRuleReader.cs
- RadioButton.cs
- UncommonField.cs
- BitmapDecoder.cs
- XmlLanguage.cs
- WindowsTitleBar.cs
- Model3DGroup.cs
- GridViewRowPresenterBase.cs
- RegexCompiler.cs
- NumberFormatInfo.cs
- ChineseLunisolarCalendar.cs
- WindowsStatic.cs
- XmlNodeComparer.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- CustomErrorsSection.cs
- UniqueConstraint.cs
- TreeWalkHelper.cs
- BitSet.cs
- ProviderUtil.cs
- DeclarativeCatalogPart.cs
- UriTemplateTable.cs
- DataBoundControlHelper.cs
- SourceItem.cs
- Part.cs
- ColumnMap.cs
- brushes.cs
- FixedSOMSemanticBox.cs
- CommandBinding.cs
- SqlConnection.cs
- CustomError.cs
- CatalogUtil.cs
- AlgoModule.cs
- _NestedMultipleAsyncResult.cs