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
- UIElementAutomationPeer.cs
- EpmSyndicationContentSerializer.cs
- FloatMinMaxAggregationOperator.cs
- SpellerStatusTable.cs
- RangeValidator.cs
- EventMappingSettingsCollection.cs
- SchemaDeclBase.cs
- UpdateExpressionVisitor.cs
- Container.cs
- Module.cs
- SoapInteropTypes.cs
- StoreContentChangedEventArgs.cs
- HttpConfigurationSystem.cs
- FixedFindEngine.cs
- ToggleButton.cs
- TextBox.cs
- NumericUpDown.cs
- UnsafeCollabNativeMethods.cs
- CqlQuery.cs
- XmlNotation.cs
- Adorner.cs
- PngBitmapEncoder.cs
- Claim.cs
- wgx_exports.cs
- RadioButtonAutomationPeer.cs
- SqlBuilder.cs
- DiffuseMaterial.cs
- TransactionScope.cs
- SqlParameterCollection.cs
- SslStreamSecurityBindingElement.cs
- _DisconnectOverlappedAsyncResult.cs
- Monitor.cs
- SharedPerformanceCounter.cs
- FloaterBaseParaClient.cs
- _NativeSSPI.cs
- HttpAsyncResult.cs
- ProjectionPlanCompiler.cs
- AccessedThroughPropertyAttribute.cs
- BehaviorEditorPart.cs
- TextServicesHost.cs
- HashJoinQueryOperatorEnumerator.cs
- FixedTextContainer.cs
- StringCollection.cs
- TypeUtil.cs
- RightsManagementResourceHelper.cs
- OciHandle.cs
- JobStaple.cs
- MD5Cng.cs
- ClientType.cs
- EncoderParameter.cs
- AdCreatedEventArgs.cs
- TypeRestriction.cs
- CharacterMetrics.cs
- WeakEventTable.cs
- ServiceAppDomainAssociationProvider.cs
- ValidationErrorCollection.cs
- PrincipalPermission.cs
- TemplateControl.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- GeneratedCodeAttribute.cs
- ToolBarDesigner.cs
- SHA1CryptoServiceProvider.cs
- TextDecorationCollectionConverter.cs
- ContextMarshalException.cs
- KeyPressEvent.cs
- PointCollectionValueSerializer.cs
- SqlNamer.cs
- BasicDesignerLoader.cs
- RecordManager.cs
- WindowsListViewItem.cs
- EnumUnknown.cs
- OleDbTransaction.cs
- DataGridViewAutoSizeModeEventArgs.cs
- TableLayoutSettings.cs
- StringCollectionMarkupSerializer.cs
- SafeEventLogWriteHandle.cs
- OdbcError.cs
- ArraySubsetEnumerator.cs
- _ListenerAsyncResult.cs
- FormsAuthentication.cs
- CreatingCookieEventArgs.cs
- EditorPartChrome.cs
- TemplateBindingExpression.cs
- SslStreamSecurityElement.cs
- RuntimeResourceSet.cs
- HtmlFormWrapper.cs
- PenContext.cs
- CreateUserErrorEventArgs.cs
- ChannelManager.cs
- LinkedResource.cs
- TypeExtensionConverter.cs
- CodeTypeParameter.cs
- ListComponentEditorPage.cs
- X509Extension.cs
- ThreadExceptionEvent.cs
- Attribute.cs
- BasicHttpSecurityMode.cs
- DelegatedStream.cs
- ContentPresenter.cs
- GroupBox.cs