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
- RunWorkerCompletedEventArgs.cs
- TdsEnums.cs
- Popup.cs
- LambdaCompiler.Lambda.cs
- ExpressionConverter.cs
- RuntimeConfigLKG.cs
- ImageFormat.cs
- Component.cs
- SchemaEntity.cs
- DataKeyCollection.cs
- RecognizedAudio.cs
- FieldNameLookup.cs
- ECDiffieHellmanPublicKey.cs
- XmlValidatingReader.cs
- DataRelationPropertyDescriptor.cs
- MetadataUtil.cs
- XmlIlGenerator.cs
- UriSectionData.cs
- UniqueConstraint.cs
- UIElement3D.cs
- IIS7WorkerRequest.cs
- StdValidatorsAndConverters.cs
- DataAdapter.cs
- LinqTreeNodeEvaluator.cs
- GlobalDataBindingHandler.cs
- _NativeSSPI.cs
- GeneralTransform3DTo2D.cs
- ListenerConnectionDemuxer.cs
- DocumentDesigner.cs
- ArrayWithOffset.cs
- FixedPosition.cs
- Imaging.cs
- Header.cs
- Errors.cs
- FacetEnabledSchemaElement.cs
- PeerContact.cs
- EntityViewContainer.cs
- TabPage.cs
- CodeTypeConstructor.cs
- ErrorEventArgs.cs
- TableLayoutPanel.cs
- Pair.cs
- UnsafeNativeMethods.cs
- ProfileSettings.cs
- TableCellAutomationPeer.cs
- OdbcConnectionStringbuilder.cs
- SchemaCollectionPreprocessor.cs
- DataServiceException.cs
- ClientBuildManagerCallback.cs
- BitmapEffectGroup.cs
- ListViewAutomationPeer.cs
- SimpleApplicationHost.cs
- MarkupExtensionParser.cs
- HttpListenerElement.cs
- GlobalProxySelection.cs
- ClientConfigurationSystem.cs
- XmlnsDictionary.cs
- DocComment.cs
- PolyQuadraticBezierSegment.cs
- ISCIIEncoding.cs
- ConfigurationStrings.cs
- XamlNamespaceHelper.cs
- FlowLayoutPanelDesigner.cs
- TreeNodeStyleCollection.cs
- WeakEventManager.cs
- ServiceModelConfigurationSectionCollection.cs
- ExpressionBindingCollection.cs
- NativeMethods.cs
- PagesChangedEventArgs.cs
- ConnectionStringsExpressionBuilder.cs
- JoinTreeNode.cs
- QueryOutputWriter.cs
- DependentList.cs
- TextSelection.cs
- ObjectQuery_EntitySqlExtensions.cs
- AQNBuilder.cs
- XPathPatternBuilder.cs
- SubclassTypeValidator.cs
- DynamicActivityXamlReader.cs
- DesignOnlyAttribute.cs
- SmtpReplyReader.cs
- LexicalChunk.cs
- MatrixKeyFrameCollection.cs
- ToolStripRenderer.cs
- ClientTarget.cs
- AttachInfo.cs
- SystemIcmpV4Statistics.cs
- ReadOnlyObservableCollection.cs
- StylusButtonCollection.cs
- Signature.cs
- UniqueConstraint.cs
- __Filters.cs
- MasterPageCodeDomTreeGenerator.cs
- BindUriHelper.cs
- BitmapScalingModeValidation.cs
- UnhandledExceptionEventArgs.cs
- BindingsCollection.cs
- TableLayoutPanelDesigner.cs
- ListManagerBindingsCollection.cs
- Expressions.cs