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
- MaskedTextBoxDesignerActionList.cs
- XmlException.cs
- ListSortDescriptionCollection.cs
- ClientConfigurationHost.cs
- DeferredRunTextReference.cs
- unitconverter.cs
- OleDbInfoMessageEvent.cs
- ScriptRegistrationManager.cs
- DbConnectionHelper.cs
- XPathNodeIterator.cs
- SecureConversationVersion.cs
- TraceRecords.cs
- ColorTransform.cs
- MdImport.cs
- EncodingStreamWrapper.cs
- LassoSelectionBehavior.cs
- EmptyStringExpandableObjectConverter.cs
- CacheMemory.cs
- CompleteWizardStep.cs
- DES.cs
- EnvelopeVersion.cs
- GenericParameterDataContract.cs
- Preprocessor.cs
- SymbolTable.cs
- Compress.cs
- GridViewHeaderRowPresenter.cs
- FloaterBaseParaClient.cs
- MultiPageTextView.cs
- HwndPanningFeedback.cs
- LinkedList.cs
- CreateCardRequest.cs
- DefaultValueTypeConverter.cs
- UserControl.cs
- Storyboard.cs
- ResourceReferenceExpressionConverter.cs
- AutoResetEvent.cs
- DayRenderEvent.cs
- DesignerVerb.cs
- GenerateScriptTypeAttribute.cs
- PointLightBase.cs
- WebPartConnectionsEventArgs.cs
- LinkArea.cs
- DateTimeFormatInfo.cs
- OleDbDataReader.cs
- FixedSOMPageElement.cs
- InitializerFacet.cs
- MemoryMappedFileSecurity.cs
- MemberDomainMap.cs
- WorkflowDispatchContext.cs
- BroadcastEventHelper.cs
- ToolStrip.cs
- BamlLocalizabilityResolver.cs
- TransformedBitmap.cs
- ConcurrentQueue.cs
- LogicalExpr.cs
- DateTimeEditor.cs
- RelatedPropertyManager.cs
- StrongNameIdentityPermission.cs
- HitTestFilterBehavior.cs
- XmlDataSourceNodeDescriptor.cs
- FileUtil.cs
- ViewRendering.cs
- ResXResourceReader.cs
- FrugalMap.cs
- IncrementalReadDecoders.cs
- CodeExpressionStatement.cs
- XPathNavigatorReader.cs
- DataControlImageButton.cs
- XPathArrayIterator.cs
- Adorner.cs
- WebConfigurationHost.cs
- DetailsViewCommandEventArgs.cs
- ElementHostAutomationPeer.cs
- TextSearch.cs
- ProjectionQueryOptionExpression.cs
- TrackingConditionCollection.cs
- TypeListConverter.cs
- userdatakeys.cs
- ELinqQueryState.cs
- MultiView.cs
- Exceptions.cs
- XPathException.cs
- SqlDataSource.cs
- CodeMemberProperty.cs
- FlowLayout.cs
- EventRecordWrittenEventArgs.cs
- MissingManifestResourceException.cs
- ConfigurationManagerHelperFactory.cs
- InvalidOperationException.cs
- NetworkInformationException.cs
- MessageBox.cs
- WindowsToolbarItemAsMenuItem.cs
- AttributeParameterInfo.cs
- QilTernary.cs
- EndpointDispatcher.cs
- _DigestClient.cs
- CodeBinaryOperatorExpression.cs
- ThemeDictionaryExtension.cs
- GradientStop.cs
- BindToObject.cs