Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Activities / Executors / Helpers.cs / 1305376 / Helpers.cs
using System; using System.Diagnostics; using System.Reflection; using System.Collections; using System.Workflow.ComponentModel; using System.Workflow.Runtime; using System.Xml; using System.Workflow.Activities.Common; namespace System.Workflow.Activities { internal static class ActivityHelpers { internal static void InitializeCorrelationTokenCollection(Activity activity, CorrelationToken correlator) { if (correlator != null && !String.IsNullOrEmpty(correlator.OwnerActivityName)) { string ownerActivityId = correlator.OwnerActivityName; Activity owner = activity.GetActivityByName(ownerActivityId); if (owner == null) owner = System.Workflow.Activities.Common.Helpers.ParseActivityForBind(activity, ownerActivityId); if (owner == null) throw new ArgumentException("ownerActivity"); CorrelationTokenCollection collection = owner.GetValue(CorrelationTokenCollection.CorrelationTokenCollectionProperty) as CorrelationTokenCollection; if (collection == null) { collection = new CorrelationTokenCollection(); owner.SetValue(CorrelationTokenCollection.CorrelationTokenCollectionProperty, collection); } if(!collection.Contains(correlator.Name)) { collection.Add( correlator); } } } } } // 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
- ColorConverter.cs
- LinqDataSourceValidationException.cs
- HtmlSelect.cs
- BinaryCommonClasses.cs
- CompensationToken.cs
- SafeNativeMethodsCLR.cs
- XmlDocument.cs
- SoapDocumentServiceAttribute.cs
- ResXBuildProvider.cs
- TimeEnumHelper.cs
- ValidationErrorInfo.cs
- SkinBuilder.cs
- GeneralTransform3D.cs
- Point3DAnimation.cs
- Int64AnimationUsingKeyFrames.cs
- VisualTreeHelper.cs
- DynamicRenderer.cs
- BamlLocalizableResourceKey.cs
- PortCache.cs
- FilterEventArgs.cs
- XmlComment.cs
- BasePropertyDescriptor.cs
- AssemblySettingAttributes.cs
- UriScheme.cs
- BitmapSourceSafeMILHandle.cs
- RegexReplacement.cs
- PageTheme.cs
- dataSvcMapFileLoader.cs
- MsmqDecodeHelper.cs
- SymbolMethod.cs
- ResourcePermissionBaseEntry.cs
- httpapplicationstate.cs
- CatalogUtil.cs
- DataTableReaderListener.cs
- DataRecordInternal.cs
- MemoryPressure.cs
- _DigestClient.cs
- MasterPageCodeDomTreeGenerator.cs
- NamedObject.cs
- PropertyIDSet.cs
- ElapsedEventArgs.cs
- SQLCharsStorage.cs
- Section.cs
- HttpWebRequestElement.cs
- HtmlValidatorAdapter.cs
- ValueCollectionParameterReader.cs
- FormatterServicesNoSerializableCheck.cs
- TypeSystem.cs
- StyleSelector.cs
- SerializationObjectManager.cs
- ChannelManager.cs
- XmlBinaryReaderSession.cs
- LinkedResource.cs
- MsmqOutputChannel.cs
- PrintDialogException.cs
- TextHintingModeValidation.cs
- CharAnimationBase.cs
- Mutex.cs
- LazyTextWriterCreator.cs
- EntityViewGenerationAttribute.cs
- xml.cs
- DependencyObjectType.cs
- Translator.cs
- XNameTypeConverter.cs
- SectionInput.cs
- _SSPISessionCache.cs
- InternalControlCollection.cs
- WindowsStartMenu.cs
- ComponentChangedEvent.cs
- DeclarationUpdate.cs
- ProcessRequestAsyncResult.cs
- OleDbStruct.cs
- WorkflowInstanceQuery.cs
- LiteralLink.cs
- ObjectAnimationUsingKeyFrames.cs
- GradientBrush.cs
- TextServicesDisplayAttribute.cs
- CharacterShapingProperties.cs
- xmlNames.cs
- StringToken.cs
- ScalarOps.cs
- DigitShape.cs
- DataGridViewCellStateChangedEventArgs.cs
- DataKeyCollection.cs
- GroupBoxAutomationPeer.cs
- Material.cs
- HtmlGenericControl.cs
- Privilege.cs
- TypedAsyncResult.cs
- ArraySortHelper.cs
- PropertyToken.cs
- RbTree.cs
- WinFormsSpinner.cs
- ColorMap.cs
- DigitalSignatureProvider.cs
- ItemList.cs
- BaseParaClient.cs
- CustomValidator.cs
- EntityCollection.cs
- PageTheme.cs