Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Common / AuthoringOM / Behaviors / TransactionScope.cs / 1305376 / TransactionScope.cs
namespace System.Workflow.ComponentModel { #region Imports using System; using System.ComponentModel; using System.Drawing; using System.Workflow.ComponentModel; using System.Workflow.ComponentModel.Design; using System.Workflow.ComponentModel.Compiler; using System.ComponentModel.Design; #endregion [SRDescription(SR.TransactionalContextActivityDescription)] [ToolboxItem(typeof(ActivityToolboxItem))] [ToolboxBitmap(typeof(TransactionScopeActivity), "Resources.Sequence.png")] [Designer(typeof(TransactionScopeActivityDesigner), typeof(IDesigner))] [PersistOnClose] [SupportsTransaction] public sealed class TransactionScopeActivity : CompositeActivity, IActivityEventListener{ internal static readonly DependencyProperty TransactionOptionsProperty = DependencyProperty.Register("TransactionOptions", typeof(WorkflowTransactionOptions), typeof(TransactionScopeActivity), new PropertyMetadata(DependencyPropertyOptions.Metadata, new Attribute[] { new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content) })); internal static readonly string TransactionScopeActivityIsolationHandle = "A1DAF1E7-E9E7-4df2-B88F-3A92E1D744F2"; public TransactionScopeActivity() { this.SetValueBase(TransactionOptionsProperty, new WorkflowTransactionOptions()); } public TransactionScopeActivity(string name) : base(name) { this.SetValueBase(TransactionOptionsProperty, new WorkflowTransactionOptions()); } //[SRDisplayName(SR.Transaction)] [SRDescription(SR.TransactionDesc)] [MergableProperty(false)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] [ReadOnly(true)] public WorkflowTransactionOptions TransactionOptions { get { return (WorkflowTransactionOptions)this.GetValue(TransactionOptionsProperty); } set { SetValue(TransactionOptionsProperty, value); } } protected internal override ActivityExecutionStatus Execute(ActivityExecutionContext executionContext) { return SequenceHelper.Execute(this, executionContext); } protected internal override ActivityExecutionStatus Cancel(ActivityExecutionContext executionContext) { return SequenceHelper.Cancel(this, executionContext); } void IActivityEventListener .OnEvent(Object sender, ActivityExecutionStatusChangedEventArgs e) { SequenceHelper.OnEvent(this, sender, e); } protected internal override void OnActivityChangeRemove(ActivityExecutionContext executionContext, Activity removedActivity) { SequenceHelper.OnActivityChangeRemove(this, executionContext, removedActivity); } protected internal override void OnWorkflowChangesCompleted(ActivityExecutionContext executionContext) { SequenceHelper.OnWorkflowChangesCompleted(this, executionContext); } } } // 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
- MetadataItem_Static.cs
- RoutingTable.cs
- GlyphsSerializer.cs
- EditingCommands.cs
- CodeSnippetExpression.cs
- HebrewCalendar.cs
- MetadataCache.cs
- ValidationSummary.cs
- ActivationServices.cs
- MaskInputRejectedEventArgs.cs
- DataGridViewDesigner.cs
- CreateParams.cs
- CellRelation.cs
- ExtractCollection.cs
- srgsitem.cs
- WsdlEndpointConversionContext.cs
- Model3D.cs
- Int64KeyFrameCollection.cs
- WebConfigurationHost.cs
- DoubleLinkListEnumerator.cs
- PointAnimationBase.cs
- HeaderedItemsControl.cs
- PointLight.cs
- UnaryNode.cs
- ThreadBehavior.cs
- DataGridItem.cs
- CopyOnWriteList.cs
- SafeRightsManagementPubHandle.cs
- MemoryMappedViewAccessor.cs
- ResumeStoryboard.cs
- ACL.cs
- PlatformNotSupportedException.cs
- GetPageNumberCompletedEventArgs.cs
- MethodBuilderInstantiation.cs
- FileChangesMonitor.cs
- DragDeltaEventArgs.cs
- QilGeneratorEnv.cs
- ApplicationFileParser.cs
- WebServiceParameterData.cs
- ColumnWidthChangingEvent.cs
- DataObject.cs
- SchemaElementLookUpTableEnumerator.cs
- DataSourceSelectArguments.cs
- EventLogEntry.cs
- WS2007FederationHttpBindingCollectionElement.cs
- EventSinkHelperWriter.cs
- StylusPointCollection.cs
- Site.cs
- WebBrowserHelper.cs
- RelationshipConverter.cs
- StateDesigner.Layouts.cs
- SocketElement.cs
- WrappedReader.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- XmlSchemaAnnotation.cs
- XmlNodeReader.cs
- SemaphoreSecurity.cs
- InvokeBinder.cs
- HuffCodec.cs
- SafeNativeMethods.cs
- SinglePageViewer.cs
- SingleAnimationBase.cs
- DispatcherTimer.cs
- XmlValueConverter.cs
- FileChangesMonitor.cs
- WindowsImpersonationContext.cs
- OleDbWrapper.cs
- Selector.cs
- IdentityValidationException.cs
- MessageEncoderFactory.cs
- BaseAsyncResult.cs
- Scanner.cs
- SecurityDescriptor.cs
- ComPlusServiceLoader.cs
- unsafenativemethodsother.cs
- GenericTextProperties.cs
- TabControlEvent.cs
- CounterSample.cs
- ObsoleteAttribute.cs
- AsyncContentLoadedEventArgs.cs
- ExpandCollapseProviderWrapper.cs
- SemanticAnalyzer.cs
- GlyphRun.cs
- SpellerStatusTable.cs
- FacetValues.cs
- BufferCache.cs
- RequestCacheManager.cs
- DataGridViewCheckBoxColumn.cs
- ConfigurationElement.cs
- DataServiceResponse.cs
- ListBoxItemAutomationPeer.cs
- CrossAppDomainChannel.cs
- CryptoApi.cs
- MtomMessageEncoder.cs
- Label.cs
- HandlerFactoryCache.cs
- MarkupExtensionParser.cs
- WebAdminConfigurationHelper.cs
- ContractsBCL.cs
- RoutedCommand.cs