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
- Switch.cs
- AttachmentService.cs
- ActiveDocumentEvent.cs
- HostProtectionException.cs
- FilteredXmlReader.cs
- AlternateViewCollection.cs
- AccessText.cs
- XMLSyntaxException.cs
- SqlDataSourceEnumerator.cs
- SQLInt16Storage.cs
- SimpleType.cs
- DeviceContext2.cs
- DbParameterCollectionHelper.cs
- RtfToXamlReader.cs
- TemplateLookupAction.cs
- ValueUtilsSmi.cs
- HyperLinkColumn.cs
- BaseCodeDomTreeGenerator.cs
- LayoutEngine.cs
- ByteAnimationUsingKeyFrames.cs
- EntityDesignPluralizationHandler.cs
- TemplateContainer.cs
- WebServiceClientProxyGenerator.cs
- ControlPropertyNameConverter.cs
- FragmentQueryProcessor.cs
- WebPartTransformer.cs
- ResourcePool.cs
- DataGridTable.cs
- WindowsSlider.cs
- TableItemPattern.cs
- WindowsEditBox.cs
- PermissionAttributes.cs
- CAGDesigner.cs
- ServerProtocol.cs
- FlagsAttribute.cs
- LinkButton.cs
- HandoffBehavior.cs
- SchemaEntity.cs
- FixedLineResult.cs
- ListItemParagraph.cs
- ManagementQuery.cs
- CodeObjectCreateExpression.cs
- MethodBuilderInstantiation.cs
- AssemblyAttributesGoHere.cs
- EmitterCache.cs
- HttpCookie.cs
- EventProviderWriter.cs
- ConfigurationStrings.cs
- PageParser.cs
- AdCreatedEventArgs.cs
- ProfessionalColors.cs
- DesignerResources.cs
- ValidatorCollection.cs
- SystemInfo.cs
- CommandLineParser.cs
- _LazyAsyncResult.cs
- RelationshipConstraintValidator.cs
- ForeignKeyConstraint.cs
- XmlChildNodes.cs
- LinearKeyFrames.cs
- SqlTypesSchemaImporter.cs
- Stack.cs
- MessageHeader.cs
- LocalizableAttribute.cs
- SystemThemeKey.cs
- _ConnectionGroup.cs
- ArrayWithOffset.cs
- CodeTypeMemberCollection.cs
- Errors.cs
- StyleCollection.cs
- TableRowGroup.cs
- UInt16Storage.cs
- CommandBindingCollection.cs
- FileIOPermission.cs
- CodeDirectionExpression.cs
- PointF.cs
- CngKey.cs
- TypedTableBaseExtensions.cs
- StringSource.cs
- BaseAddressElement.cs
- DataSourceControlBuilder.cs
- AssemblyResourceLoader.cs
- ELinqQueryState.cs
- IdentityReference.cs
- ResourceExpressionBuilder.cs
- RuleConditionDialog.cs
- ObjectIDGenerator.cs
- MulticastOption.cs
- DbConnectionPoolOptions.cs
- ScalarRestriction.cs
- LightweightEntityWrapper.cs
- SizeF.cs
- SizeAnimationBase.cs
- ObjectDataSourceSelectingEventArgs.cs
- ExpressionConverter.cs
- SqlMethodCallConverter.cs
- Stack.cs
- ValueSerializerAttribute.cs
- ManifestSignedXml.cs
- DoubleKeyFrameCollection.cs