Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / System.Runtime.DurableInstancing / System / Runtime / DurableInstancing / InstanceNotReadyException.cs / 1305376 / InstanceNotReadyException.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 InstanceNotReadyException : InstancePersistenceCommandException { public InstanceNotReadyException() : this(SRCore.InstanceNotReadyDefault, null) { } public InstanceNotReadyException(string message) : this(message, null) { } public InstanceNotReadyException(string message, Exception innerException) : base(message, innerException) { } public InstanceNotReadyException(XName commandName, Guid instanceId) : this(commandName, instanceId, null) { } public InstanceNotReadyException(XName commandName, Guid instanceId, Exception innerException) : this(commandName, instanceId, ToMessage(instanceId), innerException) { } public InstanceNotReadyException(XName commandName, Guid instanceId, string message, Exception innerException) : base(commandName, instanceId, message, innerException) { } [SecurityCritical] protected InstanceNotReadyException(SerializationInfo info, StreamingContext context) : base(info, context) { } static string ToMessage(Guid instanceId) { if (instanceId != Guid.Empty) { return SRCore.InstanceNotReadySpecific(instanceId); } return SRCore.InstanceNotReadyDefault; } } } // 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 InstanceNotReadyException : InstancePersistenceCommandException { public InstanceNotReadyException() : this(SRCore.InstanceNotReadyDefault, null) { } public InstanceNotReadyException(string message) : this(message, null) { } public InstanceNotReadyException(string message, Exception innerException) : base(message, innerException) { } public InstanceNotReadyException(XName commandName, Guid instanceId) : this(commandName, instanceId, null) { } public InstanceNotReadyException(XName commandName, Guid instanceId, Exception innerException) : this(commandName, instanceId, ToMessage(instanceId), innerException) { } public InstanceNotReadyException(XName commandName, Guid instanceId, string message, Exception innerException) : base(commandName, instanceId, message, innerException) { } [SecurityCritical] protected InstanceNotReadyException(SerializationInfo info, StreamingContext context) : base(info, context) { } static string ToMessage(Guid instanceId) { if (instanceId != Guid.Empty) { return SRCore.InstanceNotReadySpecific(instanceId); } return SRCore.InstanceNotReadyDefault; } } } // 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
- SchemaInfo.cs
- ConnectionStringSettingsCollection.cs
- DataRecordInternal.cs
- ClipboardProcessor.cs
- AuditLog.cs
- ObjectDataSourceStatusEventArgs.cs
- Policy.cs
- ToolStripOverflowButton.cs
- PasswordPropertyTextAttribute.cs
- ClaimTypeElement.cs
- DataServiceRequest.cs
- base64Transforms.cs
- TagPrefixInfo.cs
- StylusPointPropertyInfo.cs
- WebPartEditorApplyVerb.cs
- QueueProcessor.cs
- SafeCloseHandleCritical.cs
- ListView.cs
- WeakReferenceEnumerator.cs
- MailHeaderInfo.cs
- Double.cs
- DesignerDataRelationship.cs
- InvalidAsynchronousStateException.cs
- SystemIPGlobalStatistics.cs
- ZoneLinkButton.cs
- IFlowDocumentViewer.cs
- Not.cs
- TextParaLineResult.cs
- DllHostedComPlusServiceHost.cs
- SecureStringHasher.cs
- TypeSemantics.cs
- PkcsUtils.cs
- GradientSpreadMethodValidation.cs
- WebBrowser.cs
- BaseCAMarshaler.cs
- InputMethod.cs
- EventTrigger.cs
- ConnectionStringSettings.cs
- IntermediatePolicyValidator.cs
- IndexObject.cs
- X509RawDataKeyIdentifierClause.cs
- AggregationMinMaxHelpers.cs
- CmsInterop.cs
- XmlCDATASection.cs
- XmlUtf8RawTextWriter.cs
- WebMethodAttribute.cs
- SqlOuterApplyReducer.cs
- WebPartUtil.cs
- FileSystemEventArgs.cs
- JournalNavigationScope.cs
- DataFormats.cs
- ProxyHwnd.cs
- WindowsRebar.cs
- RuleProcessor.cs
- InteropBitmapSource.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- KeyedCollection.cs
- UpdateCommandGenerator.cs
- SplayTreeNode.cs
- PackageRelationship.cs
- AccessorTable.cs
- JsonXmlDataContract.cs
- SqlClientFactory.cs
- processwaithandle.cs
- ReferentialConstraint.cs
- StructuredTypeInfo.cs
- CodeIdentifiers.cs
- Int32KeyFrameCollection.cs
- EventEntry.cs
- SerializationEventsCache.cs
- ApplicationServiceHelper.cs
- CaseCqlBlock.cs
- ColumnResult.cs
- TableCell.cs
- XmlNamespaceMappingCollection.cs
- ReturnEventArgs.cs
- MessagePartProtectionMode.cs
- FocusChangedEventArgs.cs
- XmlSerializerSection.cs
- SpeakProgressEventArgs.cs
- Profiler.cs
- PersonalizationProvider.cs
- FileVersionInfo.cs
- ApplicationGesture.cs
- ProtectedConfiguration.cs
- MonthCalendar.cs
- EventBuilder.cs
- HttpListenerRequest.cs
- XmlSchemaGroupRef.cs
- RSAPKCS1SignatureDeformatter.cs
- AutoCompleteStringCollection.cs
- SafeMemoryMappedFileHandle.cs
- FreezableDefaultValueFactory.cs
- FloaterParaClient.cs
- CompilerState.cs
- EditorPartCollection.cs
- CheckBox.cs
- OdbcErrorCollection.cs
- DefaultAssemblyResolver.cs
- ToolboxItemImageConverter.cs