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
- OdbcConnectionPoolProviderInfo.cs
- WinFormsUtils.cs
- InternalBufferOverflowException.cs
- ComplusEndpointConfigContainer.cs
- SmtpMail.cs
- UnsafePeerToPeerMethods.cs
- StylusPointPropertyId.cs
- OdbcConnection.cs
- BindToObject.cs
- StringHandle.cs
- TemplatePagerField.cs
- WindowsGraphics.cs
- ObservableCollection.cs
- ClusterRegistryConfigurationProvider.cs
- Encoding.cs
- UrlAuthFailedErrorFormatter.cs
- DataControlFieldCell.cs
- TypeDescriptorFilterService.cs
- MultiBinding.cs
- BaseTemplateBuildProvider.cs
- SocketInformation.cs
- ADRole.cs
- LOSFormatter.cs
- IgnoreFlushAndCloseStream.cs
- ArglessEventHandlerProxy.cs
- Codec.cs
- ServiceDescriptionImporter.cs
- Application.cs
- AmbientProperties.cs
- Activator.cs
- GeneralTransform2DTo3D.cs
- DataGridViewButtonCell.cs
- SafeUserTokenHandle.cs
- StateMachineHelpers.cs
- Bidi.cs
- IODescriptionAttribute.cs
- RtfControlWordInfo.cs
- SQLBinary.cs
- HttpCacheParams.cs
- BindingExpressionUncommonField.cs
- BufferedOutputAsyncStream.cs
- CapabilitiesUse.cs
- WeakReadOnlyCollection.cs
- DbXmlEnabledProviderManifest.cs
- ThemeableAttribute.cs
- StyleCollectionEditor.cs
- ObjectManager.cs
- KeyToListMap.cs
- SwitchAttribute.cs
- X509Certificate.cs
- ProtocolsConfiguration.cs
- DocumentSequence.cs
- ProfessionalColors.cs
- SqlUtil.cs
- HtmlInputControl.cs
- RadialGradientBrush.cs
- DownloadProgressEventArgs.cs
- OutKeywords.cs
- ImageSource.cs
- HtmlInputText.cs
- QuadTree.cs
- ListSourceHelper.cs
- SoapAttributeAttribute.cs
- GrammarBuilderBase.cs
- xsdvalidator.cs
- PackageRelationshipCollection.cs
- QuaternionRotation3D.cs
- DigestComparer.cs
- CodeMemberProperty.cs
- EntityDataSourceMemberPath.cs
- XmlWriter.cs
- OdbcUtils.cs
- EditingCommands.cs
- DataContractSerializerSection.cs
- NumericUpDownAccelerationCollection.cs
- PlanCompilerUtil.cs
- XmlUtil.cs
- BatchParser.cs
- UserControlCodeDomTreeGenerator.cs
- ProfileEventArgs.cs
- FullTextBreakpoint.cs
- DataProtectionSecurityStateEncoder.cs
- PropertyKey.cs
- HScrollProperties.cs
- Literal.cs
- HttpHeaderCollection.cs
- Command.cs
- WhitespaceRule.cs
- SecurityDocument.cs
- Html32TextWriter.cs
- QilInvokeEarlyBound.cs
- DependencyObject.cs
- BinaryWriter.cs
- ValidatedControlConverter.cs
- _FtpDataStream.cs
- ThaiBuddhistCalendar.cs
- ResourceDisplayNameAttribute.cs
- SqlStream.cs
- MultipartContentParser.cs
- MD5.cs