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
- MethodAccessException.cs
- FixedFindEngine.cs
- PEFileEvidenceFactory.cs
- DefaultWorkflowLoaderService.cs
- Geometry3D.cs
- ContractListAdapter.cs
- ByteAnimationBase.cs
- EncodingDataItem.cs
- xml.cs
- PasswordTextNavigator.cs
- HtmlMeta.cs
- OleCmdHelper.cs
- MailHeaderInfo.cs
- ImmutableCollection.cs
- ValidatedControlConverter.cs
- TimeSpanOrInfiniteConverter.cs
- SqlDataSourceView.cs
- HttpResponseHeader.cs
- TextModifier.cs
- RegistryExceptionHelper.cs
- OrthographicCamera.cs
- BamlResourceContent.cs
- ListViewItemSelectionChangedEvent.cs
- ManagementException.cs
- RelationshipEntry.cs
- StructuredTypeInfo.cs
- TextBlock.cs
- FontTypeConverter.cs
- State.cs
- TypefaceMap.cs
- ProviderConnectionPoint.cs
- CustomSignedXml.cs
- NumberSubstitution.cs
- ApplyTemplatesAction.cs
- HostingEnvironmentSection.cs
- SqlConnectionFactory.cs
- ExternalCalls.cs
- BrowserDefinitionCollection.cs
- DiffuseMaterial.cs
- UIElement.cs
- Rights.cs
- PropertyChangedEventArgs.cs
- EntryIndex.cs
- Input.cs
- XmlTextEncoder.cs
- AssemblyCache.cs
- FormatSettings.cs
- RtType.cs
- UnauthorizedWebPart.cs
- BitmapSource.cs
- ReflectionHelper.cs
- FontDriver.cs
- ActivityDesigner.cs
- VideoDrawing.cs
- RemotingSurrogateSelector.cs
- SafeHandle.cs
- TreeViewItem.cs
- ReadWriteSpinLock.cs
- XmlILModule.cs
- Rijndael.cs
- CriticalExceptions.cs
- DbConnectionStringCommon.cs
- TemplateAction.cs
- CompilerGeneratedAttribute.cs
- DynamicPropertyHolder.cs
- ResourcePermissionBase.cs
- OneWayChannelFactory.cs
- CreateUserErrorEventArgs.cs
- XmlILIndex.cs
- PeerCollaboration.cs
- PolicyManager.cs
- LambdaExpression.cs
- VectorAnimation.cs
- Path.cs
- JsonWriterDelegator.cs
- LineSegment.cs
- StandardBindingElement.cs
- FilePresentation.cs
- ConstraintConverter.cs
- DataSetMappper.cs
- TypeInformation.cs
- BaseTemplateCodeDomTreeGenerator.cs
- IItemContainerGenerator.cs
- StreamFormatter.cs
- FontFamily.cs
- WindowInteractionStateTracker.cs
- ValidationError.cs
- ButtonField.cs
- PhoneCallDesigner.cs
- DecoderExceptionFallback.cs
- EventMemberCodeDomSerializer.cs
- Int32Rect.cs
- TileBrush.cs
- RuntimeHandles.cs
- WindowsFont.cs
- DataObject.cs
- SettingsProperty.cs
- SessionStateModule.cs
- BackgroundFormatInfo.cs
- LinqDataSourceView.cs