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
- CodeArgumentReferenceExpression.cs
- LayoutEditorPart.cs
- HierarchicalDataBoundControlAdapter.cs
- SettingsPropertyCollection.cs
- DesignerActionUIService.cs
- StoreContentChangedEventArgs.cs
- ServiceModelInstallComponent.cs
- WizardDesigner.cs
- SqlStatistics.cs
- FloaterParaClient.cs
- State.cs
- MimeMapping.cs
- BorderGapMaskConverter.cs
- PeerPresenceInfo.cs
- VerificationException.cs
- DesignerTransaction.cs
- ConnectionPointCookie.cs
- XmlToDatasetMap.cs
- DataContext.cs
- CreateUserWizardStep.cs
- AxisAngleRotation3D.cs
- LostFocusEventManager.cs
- ParenthesizePropertyNameAttribute.cs
- PersonalizationAdministration.cs
- UriTemplate.cs
- ImageAutomationPeer.cs
- DecoderFallbackWithFailureFlag.cs
- ToolTip.cs
- QilList.cs
- SiteMapProvider.cs
- SynchronizedPool.cs
- XmlElement.cs
- Thickness.cs
- mediaclock.cs
- GACIdentityPermission.cs
- UpdatePanelControlTrigger.cs
- XmlNodeComparer.cs
- FormViewPageEventArgs.cs
- HttpInputStream.cs
- DataGridAddNewRow.cs
- Ray3DHitTestResult.cs
- BlobPersonalizationState.cs
- CollectionContainer.cs
- PropertyEntry.cs
- SafeArrayTypeMismatchException.cs
- CfgParser.cs
- SafeProcessHandle.cs
- StyleXamlTreeBuilder.cs
- FontResourceCache.cs
- SmtpAuthenticationManager.cs
- NotConverter.cs
- IdnMapping.cs
- WebHttpBinding.cs
- Misc.cs
- MultipleViewProviderWrapper.cs
- ImageBrush.cs
- DataTableReaderListener.cs
- ViewKeyConstraint.cs
- _UncName.cs
- MSHTMLHost.cs
- TextRange.cs
- DataGridViewDataConnection.cs
- ToolStripItemImageRenderEventArgs.cs
- SwitchElementsCollection.cs
- EventEntry.cs
- SecurityImpersonationBehavior.cs
- ChildrenQuery.cs
- DbParameterCollectionHelper.cs
- X509Certificate2.cs
- GB18030Encoding.cs
- InstanceOwner.cs
- ServiceOperationListItem.cs
- XmlBinaryWriterSession.cs
- followingquery.cs
- HttpException.cs
- ImageCollectionEditor.cs
- WpfSharedBamlSchemaContext.cs
- ScrollViewer.cs
- AuthenticationServiceManager.cs
- BufferedGraphicsManager.cs
- MobileComponentEditorPage.cs
- Aes.cs
- TimeSpanMinutesConverter.cs
- DataViewListener.cs
- GroupDescription.cs
- XslVisitor.cs
- arabicshape.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- PageThemeCodeDomTreeGenerator.cs
- XamlBuildTaskServices.cs
- DocComment.cs
- ControlEvent.cs
- SqlDataSourceCache.cs
- TTSEngineTypes.cs
- HashHelper.cs
- OAVariantLib.cs
- Pens.cs
- HeaderElement.cs
- AssociationTypeEmitter.cs
- WebBrowserEvent.cs