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
- BitmapVisualManager.cs
- StubHelpers.cs
- FilteredXmlReader.cs
- MetaColumn.cs
- AxHostDesigner.cs
- StylusLogic.cs
- DrawingContextDrawingContextWalker.cs
- COM2TypeInfoProcessor.cs
- XsltContext.cs
- CompareValidator.cs
- GlyphTypeface.cs
- Style.cs
- DataServiceRequest.cs
- FrameworkElementFactoryMarkupObject.cs
- ToolTipAutomationPeer.cs
- GenericsInstances.cs
- BitHelper.cs
- BamlRecordReader.cs
- RegionIterator.cs
- SafeProcessHandle.cs
- RegularExpressionValidator.cs
- ManagedFilter.cs
- X509Chain.cs
- BaseCodeDomTreeGenerator.cs
- KnownTypesHelper.cs
- SafePEFileHandle.cs
- InstanceNormalEvent.cs
- BrowserCapabilitiesCodeGenerator.cs
- QilStrConcat.cs
- XmlSchemaSequence.cs
- SystemIPAddressInformation.cs
- XmlArrayItemAttributes.cs
- AppDomainUnloadedException.cs
- DependencyPropertyChangedEventArgs.cs
- KeyFrames.cs
- RoleGroupCollection.cs
- WorkflowLayouts.cs
- NavigationPropertyEmitter.cs
- RuntimeHandles.cs
- DbParameterCollectionHelper.cs
- Image.cs
- GestureRecognizer.cs
- LinkUtilities.cs
- HitTestDrawingContextWalker.cs
- SQLBytes.cs
- ZoneIdentityPermission.cs
- DataTableTypeConverter.cs
- XmlHierarchyData.cs
- DataSourceControlBuilder.cs
- Directory.cs
- PanelStyle.cs
- UnionCodeGroup.cs
- SettingsPropertyNotFoundException.cs
- CheckableControlBaseAdapter.cs
- MethodBody.cs
- TemplateBuilder.cs
- XmlSchemaAnnotation.cs
- CorrelationKeyCalculator.cs
- FileDialogCustomPlacesCollection.cs
- DrawingAttributesDefaultValueFactory.cs
- PasswordPropertyTextAttribute.cs
- LineSegment.cs
- CustomError.cs
- DBSqlParserTableCollection.cs
- TraceContextEventArgs.cs
- RenderingBiasValidation.cs
- RemotingConfiguration.cs
- GradientStop.cs
- ReferencedCollectionType.cs
- RawStylusActions.cs
- RuleAttributes.cs
- HorizontalAlignConverter.cs
- SchemaObjectWriter.cs
- WinFormsSpinner.cs
- ProfessionalColorTable.cs
- DbProviderFactories.cs
- HttpContextServiceHost.cs
- PropertyBuilder.cs
- Attachment.cs
- DateTimeConverter2.cs
- BrowserCapabilitiesFactory.cs
- InfoCardAsymmetricCrypto.cs
- GraphicsPath.cs
- ParallelQuery.cs
- XsltLibrary.cs
- HttpCapabilitiesBase.cs
- RoutedEventValueSerializer.cs
- DataListItemCollection.cs
- SyntaxCheck.cs
- Camera.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- X509ScopedServiceCertificateElementCollection.cs
- FlagsAttribute.cs
- SwitchLevelAttribute.cs
- GridLength.cs
- WebRequestModuleElement.cs
- DocumentViewerHelper.cs
- MimeTypeAttribute.cs
- FormatVersion.cs
- ParseHttpDate.cs