Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / System.Runtime.DurableInstancing / System / Runtime / DurableInstancing / InstanceLockLostException.cs / 1305376 / InstanceLockLostException.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 InstanceLockLostException : InstancePersistenceCommandException
{
public InstanceLockLostException()
: this(SRCore.InstanceLockLostDefault, null)
{
}
public InstanceLockLostException(string message)
: this(message, null)
{
}
public InstanceLockLostException(string message, Exception innerException)
: base(message, innerException)
{
}
public InstanceLockLostException(XName commandName, Guid instanceId)
: this(commandName, instanceId, null)
{
}
public InstanceLockLostException(XName commandName, Guid instanceId, Exception innerException)
: this(commandName, instanceId, ToMessage(instanceId), innerException)
{
}
public InstanceLockLostException(XName commandName, Guid instanceId, string message, Exception innerException)
: base(commandName, instanceId, message, innerException)
{
}
[SecurityCritical]
protected InstanceLockLostException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
static string ToMessage(Guid instanceId)
{
if (instanceId != Guid.Empty)
{
return SRCore.InstanceLockLostSpecific(instanceId);
}
return SRCore.InstanceLockLostDefault;
}
}
}
// 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 InstanceLockLostException : InstancePersistenceCommandException
{
public InstanceLockLostException()
: this(SRCore.InstanceLockLostDefault, null)
{
}
public InstanceLockLostException(string message)
: this(message, null)
{
}
public InstanceLockLostException(string message, Exception innerException)
: base(message, innerException)
{
}
public InstanceLockLostException(XName commandName, Guid instanceId)
: this(commandName, instanceId, null)
{
}
public InstanceLockLostException(XName commandName, Guid instanceId, Exception innerException)
: this(commandName, instanceId, ToMessage(instanceId), innerException)
{
}
public InstanceLockLostException(XName commandName, Guid instanceId, string message, Exception innerException)
: base(commandName, instanceId, message, innerException)
{
}
[SecurityCritical]
protected InstanceLockLostException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
static string ToMessage(Guid instanceId)
{
if (instanceId != Guid.Empty)
{
return SRCore.InstanceLockLostSpecific(instanceId);
}
return SRCore.InstanceLockLostDefault;
}
}
}
// 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
- ISAPIWorkerRequest.cs
- CompiledQuery.cs
- InkCollectionBehavior.cs
- SelectedGridItemChangedEvent.cs
- Statements.cs
- CompilerResults.cs
- ProcessProtocolHandler.cs
- DataGridViewRowConverter.cs
- TextFormatter.cs
- CleanUpVirtualizedItemEventArgs.cs
- HttpHandlerActionCollection.cs
- AppearanceEditorPart.cs
- SortedList.cs
- XmlWriterSettings.cs
- iisPickupDirectory.cs
- PolyBezierSegment.cs
- GenericWebPart.cs
- MdiWindowListStrip.cs
- TypeDefinition.cs
- ReadOnlyDataSourceView.cs
- XmlCustomFormatter.cs
- ToolStripDropDownButton.cs
- SqlParameterizer.cs
- TextBoxBaseDesigner.cs
- DetailsView.cs
- UriExt.cs
- FloaterParagraph.cs
- Stylesheet.cs
- ShutDownListener.cs
- ShapeTypeface.cs
- ObjectDataSourceMethodEventArgs.cs
- CustomErrorsSection.cs
- EdmMember.cs
- ResourceFallbackManager.cs
- UpWmlMobileTextWriter.cs
- SafePEFileHandle.cs
- Trace.cs
- MetadataException.cs
- UnauthorizedWebPart.cs
- OutputCacheSection.cs
- EdmTypeAttribute.cs
- TempFiles.cs
- BinaryUtilClasses.cs
- TraceLog.cs
- TraceSection.cs
- GeometryCombineModeValidation.cs
- FixedPageProcessor.cs
- DataGridViewDataErrorEventArgs.cs
- SymLanguageType.cs
- TypedOperationInfo.cs
- TimeoutException.cs
- ButtonStandardAdapter.cs
- ReachDocumentSequenceSerializer.cs
- UserControlCodeDomTreeGenerator.cs
- MenuScrollingVisibilityConverter.cs
- XsltException.cs
- OdbcPermission.cs
- XamlWriter.cs
- AutoGeneratedField.cs
- EdmToObjectNamespaceMap.cs
- PeerApplication.cs
- HWStack.cs
- PropertyValueChangedEvent.cs
- ShaperBuffers.cs
- ContentPathSegment.cs
- ListViewGroupConverter.cs
- PageThemeParser.cs
- LineSegment.cs
- UrlRoutingModule.cs
- JsonFaultDetail.cs
- ImageKeyConverter.cs
- WhitespaceSignificantCollectionAttribute.cs
- ToolBarButtonClickEvent.cs
- ListViewDataItem.cs
- ComponentResourceKey.cs
- DocumentGridPage.cs
- CellTreeNode.cs
- GridView.cs
- XPathParser.cs
- DataTableNewRowEvent.cs
- DrawingContextWalker.cs
- SafeRightsManagementEnvironmentHandle.cs
- ThreadStartException.cs
- OleDbMetaDataFactory.cs
- CallContext.cs
- TcpAppDomainProtocolHandler.cs
- AppSecurityManager.cs
- UnsafeNativeMethods.cs
- TypeUnloadedException.cs
- DataGridViewTextBoxColumn.cs
- BaseTemplateBuildProvider.cs
- mactripleDES.cs
- SqlWebEventProvider.cs
- TextAutomationPeer.cs
- SynchronizingStream.cs
- ExpressionCopier.cs
- DataGridItem.cs
- EasingKeyFrames.cs
- ShowExpandedMultiValueConverter.cs
- PersianCalendar.cs