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
- CalendarDesigner.cs
- SiteMapNodeCollection.cs
- StyleTypedPropertyAttribute.cs
- SpeechEvent.cs
- ServerIdentity.cs
- ProxyWebPart.cs
- HebrewCalendar.cs
- TrackingProfileCache.cs
- GregorianCalendar.cs
- PlaceHolder.cs
- KeyGesture.cs
- InlineCollection.cs
- StylusDownEventArgs.cs
- EncryptedData.cs
- NumericUpDown.cs
- StubHelpers.cs
- Int32Rect.cs
- RepeaterItemEventArgs.cs
- SecurityKeyIdentifier.cs
- BoundColumn.cs
- ImageConverter.cs
- TraceListener.cs
- ObjectContext.cs
- SymbolTable.cs
- CqlGenerator.cs
- OneToOneMappingSerializer.cs
- ISCIIEncoding.cs
- WorkflowCommandExtensionItem.cs
- EntityFrameworkVersions.cs
- SerializationEventsCache.cs
- ReliableChannelFactory.cs
- GeneralTransform2DTo3DTo2D.cs
- HostingEnvironmentException.cs
- LocalizableResourceBuilder.cs
- MouseBinding.cs
- Function.cs
- XmlnsDictionary.cs
- OptionalColumn.cs
- OracleRowUpdatedEventArgs.cs
- ColorDialog.cs
- SliderAutomationPeer.cs
- ToolStripGripRenderEventArgs.cs
- ValueSerializerAttribute.cs
- TcpConnectionPoolSettings.cs
- NativeMethodsCLR.cs
- KeyToListMap.cs
- ColumnResizeUndoUnit.cs
- DefaultValueTypeConverter.cs
- SqlTypeConverter.cs
- SubstitutionResponseElement.cs
- ThrowHelper.cs
- Matrix3D.cs
- CompareValidator.cs
- XmlHierarchyData.cs
- Dynamic.cs
- EventLevel.cs
- PageStatePersister.cs
- WebPartCloseVerb.cs
- HostedHttpContext.cs
- FocusTracker.cs
- TagMapCollection.cs
- latinshape.cs
- precedingquery.cs
- HtmlInputCheckBox.cs
- XmlSchemaParticle.cs
- StyleModeStack.cs
- OutputCacheSection.cs
- ProcessHostMapPath.cs
- IndividualDeviceConfig.cs
- CodeTypeDelegate.cs
- ChildDocumentBlock.cs
- ParameterReplacerVisitor.cs
- ModelUtilities.cs
- EditingScope.cs
- TemplateComponentConnector.cs
- DbExpressionRules.cs
- XmlElementAttributes.cs
- HtmlTableCellCollection.cs
- ProfessionalColors.cs
- ColorPalette.cs
- TemplateBuilder.cs
- TdsParser.cs
- ValuePattern.cs
- SqlTriggerContext.cs
- TagPrefixInfo.cs
- InputBindingCollection.cs
- FramingFormat.cs
- XXXInfos.cs
- PrimaryKeyTypeConverter.cs
- CodeSnippetTypeMember.cs
- DataServiceProcessingPipeline.cs
- DialogResultConverter.cs
- Boolean.cs
- LinqExpressionNormalizer.cs
- Group.cs
- Activator.cs
- BulletedList.cs
- HtmlInputImage.cs
- FaultCallbackWrapper.cs
- SystemPens.cs