Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / TransactionBridge / Microsoft / Transactions / Bridge / Ppl.cs / 2 / Ppl.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
using System;
using System.Diagnostics;
using System.Security.Permissions;
using System.Runtime.Serialization;
using System.Threading;
using System.Transactions;
using System.ServiceModel.Transactions;
namespace Microsoft.Transactions.Bridge
{
///
///
///
enum Status
{
Success,
Error,
Committed,
Aborted,
Prepared,
Readonly,
PrePrepared,
InDoubt,
DuplicateTransaction,
TooLate,
TransactionNotFound,
TooManySubordinateEnlistments,
InvalidRecoveryData,
LocalPropagation,
DuplicatePropagation
}
///
/// note: this is a place holder for state, it does not mean that state
/// will ultimately be defined via an enum. State transistion diagram
/// is TBS in PPL spec.
///
enum TransactionManagerState
{
Uninitialized,
Initialized,
Starting,
Started,
Stopping,
Stopped
}
/// TransactionManagerCallback delegate
///
/// Defines callback for TransactionManagerCoordinatorService
/// and TransactionManagerPropagateService methods.
///
delegate void TransactionManagerCallback(
Enlistment enlistment, Status status, object state );
class EnlistmentOptions
{
public EnlistmentOptions()
{
expires = new TimeSpan(0, 5, 0);
isoLevel = IsolationLevel.Unspecified;
}
public TimeSpan Expires
{
get{ return expires; }
set{ expires = value; }
}
public IsolationLevel IsoLevel
{
get{ return isoLevel; }
set{ isoLevel = value; }
}
public IsolationFlags IsolationFlags
{
get{ return this.isoFlags; }
set{ this.isoFlags = value; }
}
public ulong IsolationFlagsLong
{
get{ return (ulong)this.isoFlags; }
set{ this.isoFlags = (IsolationFlags)value; }
}
public string Description
{
get{ return description; }
set{ description = value; }
}
TimeSpan expires;
IsolationLevel isoLevel;
IsolationFlags isoFlags;
string description;
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FullTrustAssembly.cs
- SecurityKeyUsage.cs
- EventWaitHandle.cs
- RenderTargetBitmap.cs
- WebBrowser.cs
- UnsafeNativeMethodsPenimc.cs
- PropertyEmitterBase.cs
- MdImport.cs
- IdnMapping.cs
- StorageEntitySetMapping.cs
- ErrorProvider.cs
- RuntimeHelpers.cs
- TextPointer.cs
- DocumentsTrace.cs
- StructuralObject.cs
- TypedServiceChannelBuilder.cs
- ResXDataNode.cs
- EventSetterHandlerConverter.cs
- PrimitiveType.cs
- HtmlTableCellCollection.cs
- InkCanvasSelectionAdorner.cs
- HitTestWithPointDrawingContextWalker.cs
- UnsafeNativeMethods.cs
- ActivityExecutorSurrogate.cs
- DrawingCollection.cs
- KeyValuePairs.cs
- FormViewInsertEventArgs.cs
- BooleanFunctions.cs
- ProgressBar.cs
- StringDictionaryEditor.cs
- GlyphCollection.cs
- XmlNamespaceDeclarationsAttribute.cs
- RulePatternOps.cs
- MemberPath.cs
- Scheduler.cs
- JsonServiceDocumentSerializer.cs
- SqlRecordBuffer.cs
- WindowsUpDown.cs
- PathFigureCollection.cs
- IisTraceListener.cs
- WebPartTransformer.cs
- WeakHashtable.cs
- ResourceType.cs
- MatrixAnimationUsingPath.cs
- GlyphRunDrawing.cs
- ContentWrapperAttribute.cs
- GridItemPattern.cs
- Attributes.cs
- NodeInfo.cs
- XmlNodeReader.cs
- SynchronizedKeyedCollection.cs
- ListBoxChrome.cs
- HttpCacheParams.cs
- ListControlBuilder.cs
- Popup.cs
- ExpressionPrefixAttribute.cs
- MemberNameValidator.cs
- OutputChannel.cs
- DesignerSerializerAttribute.cs
- SpellerStatusTable.cs
- FormsIdentity.cs
- DesignTable.cs
- WebPartChrome.cs
- cookieexception.cs
- XmlReflectionImporter.cs
- WindowsButton.cs
- Process.cs
- AspNetPartialTrustHelpers.cs
- WebConfigurationManager.cs
- ImageField.cs
- ToolStripPanel.cs
- OleDbReferenceCollection.cs
- WebHostedComPlusServiceHost.cs
- CryptoStream.cs
- BuilderPropertyEntry.cs
- X509SecurityTokenProvider.cs
- XmlLangPropertyAttribute.cs
- IUnknownConstantAttribute.cs
- Guid.cs
- WebPageTraceListener.cs
- FreeIndexList.cs
- TimeSpanValidatorAttribute.cs
- ArrayWithOffset.cs
- ParameterCollection.cs
- EventWaitHandle.cs
- AttributeXamlType.cs
- SafeUserTokenHandle.cs
- XmlSchemaIdentityConstraint.cs
- XmlToDatasetMap.cs
- IDQuery.cs
- ConsoleEntryPoint.cs
- CryptoConfig.cs
- wgx_sdk_version.cs
- ToolStripGripRenderEventArgs.cs
- WebEventTraceProvider.cs
- SetStoryboardSpeedRatio.cs
- ImageField.cs
- ExitEventArgs.cs
- DocumentReferenceCollection.cs
- TextEditorTyping.cs