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
- ClassHandlersStore.cs
- IERequestCache.cs
- OleDbDataReader.cs
- CodeTypeConstructor.cs
- CompositeControl.cs
- TableLayoutPanelCellPosition.cs
- DefaultObjectMappingItemCollection.cs
- RowType.cs
- CellTreeNode.cs
- ToolStripPanelCell.cs
- RegisteredArrayDeclaration.cs
- webeventbuffer.cs
- DrawingAttributesDefaultValueFactory.cs
- GacUtil.cs
- _NestedSingleAsyncResult.cs
- WindowsAltTab.cs
- PageCodeDomTreeGenerator.cs
- CapacityStreamGeometryContext.cs
- DataKey.cs
- SecurityContext.cs
- LocalClientSecuritySettingsElement.cs
- XmlSchemaComplexContentRestriction.cs
- CodeDOMProvider.cs
- BamlTreeNode.cs
- CreateUserErrorEventArgs.cs
- NumberFunctions.cs
- SerializationInfoEnumerator.cs
- FormsAuthenticationCredentials.cs
- ToolStripPanelRow.cs
- AdornedElementPlaceholder.cs
- WebPartTracker.cs
- HtmlWindowCollection.cs
- KeyValueConfigurationCollection.cs
- PageBreakRecord.cs
- SourceCollection.cs
- TextDecoration.cs
- TypedReference.cs
- WaitHandle.cs
- ZipIORawDataFileBlock.cs
- PlaceHolder.cs
- XPathSingletonIterator.cs
- SafeRightsManagementSessionHandle.cs
- RuleSettingsCollection.cs
- HttpProtocolImporter.cs
- XDRSchema.cs
- AddInStore.cs
- COAUTHIDENTITY.cs
- ParseHttpDate.cs
- ConnectionProviderAttribute.cs
- DefaultValidator.cs
- SortKey.cs
- QueryLifecycle.cs
- MediaCommands.cs
- Attributes.cs
- ChildrenQuery.cs
- MenuItem.cs
- RuntimeHelpers.cs
- HtmlControl.cs
- UnaryNode.cs
- FunctionQuery.cs
- UdpSocket.cs
- CommandCollectionEditor.cs
- ImplicitInputBrush.cs
- DataBindingCollection.cs
- EpmCustomContentWriterNodeData.cs
- ProfileElement.cs
- LinqDataSourceDisposeEventArgs.cs
- MimeXmlReflector.cs
- UserControlAutomationPeer.cs
- OleDbConnectionFactory.cs
- WebConfigurationHostFileChange.cs
- NativeRightsManagementAPIsStructures.cs
- RegexStringValidator.cs
- ToolZone.cs
- StatusBar.cs
- bindurihelper.cs
- TaskHelper.cs
- MetadataArtifactLoaderFile.cs
- ProfileParameter.cs
- XamlTypeMapper.cs
- WebPartCatalogAddVerb.cs
- Crypto.cs
- HTTPNotFoundHandler.cs
- PolicyLevel.cs
- FixedDSBuilder.cs
- WebAdminConfigurationHelper.cs
- ECDsaCng.cs
- invalidudtexception.cs
- TextTreeRootTextBlock.cs
- X509ChainElement.cs
- MenuItemBinding.cs
- SetMemberBinder.cs
- ParameterCollection.cs
- Emitter.cs
- AdRotatorDesigner.cs
- WeakEventTable.cs
- StatusBarDrawItemEvent.cs
- TextSelectionHelper.cs
- BeginStoryboard.cs
- ItemType.cs