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
- ProgressBarBrushConverter.cs
- HttpWebResponse.cs
- PreProcessInputEventArgs.cs
- DataSet.cs
- TargetFrameworkAttribute.cs
- ComplusTypeValidator.cs
- RelatedPropertyManager.cs
- XmlHierarchicalEnumerable.cs
- XmlSchemaComplexContentRestriction.cs
- Message.cs
- ControlBuilder.cs
- UInt16Converter.cs
- BaseCodeDomTreeGenerator.cs
- ConnectionModeReader.cs
- BamlRecordHelper.cs
- SymbolDocumentInfo.cs
- XmlBinaryReader.cs
- PageParser.cs
- CSharpCodeProvider.cs
- _LazyAsyncResult.cs
- TransferMode.cs
- WebPartsSection.cs
- NominalTypeEliminator.cs
- CounterSet.cs
- ActivityCollectionMarkupSerializer.cs
- X509Chain.cs
- WindowsFormsLinkLabel.cs
- DataGridViewDataErrorEventArgs.cs
- OdbcRowUpdatingEvent.cs
- ClientSponsor.cs
- ChildrenQuery.cs
- HtmlShimManager.cs
- HtmlProps.cs
- RepeaterItemEventArgs.cs
- Helpers.cs
- TypedReference.cs
- GeometryHitTestParameters.cs
- CachedCompositeFamily.cs
- VirtualizingPanel.cs
- DataGridParentRows.cs
- SqlUDTStorage.cs
- DispatchRuntime.cs
- Container.cs
- NameValuePair.cs
- HMACMD5.cs
- NetPeerTcpBindingCollectionElement.cs
- updateconfighost.cs
- SourceSwitch.cs
- EntityClassGenerator.cs
- ClientTarget.cs
- EntityFrameworkVersions.cs
- DataRowChangeEvent.cs
- X509Certificate2Collection.cs
- DocumentPageViewAutomationPeer.cs
- VisualStyleElement.cs
- LinqDataSourceHelper.cs
- SerializableAuthorizationContext.cs
- EntityDataSourceDesignerHelper.cs
- BoundsDrawingContextWalker.cs
- ADMembershipProvider.cs
- _ListenerResponseStream.cs
- SamlSerializer.cs
- PreDigestedSignedInfo.cs
- StateChangeEvent.cs
- WebMessageEncodingBindingElement.cs
- ScriptReference.cs
- Compilation.cs
- ServiceNameElementCollection.cs
- XmlNamespaceMapping.cs
- XmlAggregates.cs
- EditorPartDesigner.cs
- Form.cs
- SafeEventLogReadHandle.cs
- MouseDevice.cs
- SaveWorkflowAsyncResult.cs
- SignHashRequest.cs
- NativeMethods.cs
- bindurihelper.cs
- FileDialogPermission.cs
- RegistryExceptionHelper.cs
- ByeOperationCD1AsyncResult.cs
- XmlArrayItemAttributes.cs
- EndpointAddressAugust2004.cs
- ImageListStreamer.cs
- TargetConverter.cs
- TextWriterTraceListener.cs
- DataTableNewRowEvent.cs
- DefaultEventAttribute.cs
- X509PeerCertificateElement.cs
- ConfigurationPropertyCollection.cs
- PagesSection.cs
- X509CertificateTrustedIssuerElementCollection.cs
- XmlSchemaSimpleTypeUnion.cs
- OperationResponse.cs
- EnumUnknown.cs
- FloatMinMaxAggregationOperator.cs
- Action.cs
- _BaseOverlappedAsyncResult.cs
- TriggerCollection.cs
- keycontainerpermission.cs