Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.Activities / System / Activities / Runtime / ResolveNextArgumentWorkItem.cs / 1305376 / ResolveNextArgumentWorkItem.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.Activities.Runtime { using System.Collections.Generic; using System.Runtime.Serialization; using System.Runtime; [DataContract] class ResolveNextArgumentWorkItem : ActivityExecutionWorkItem { [DataMember(EmitDefaultValue = false)] int nextArgumentIndex; [DataMember(EmitDefaultValue = false)] IDictionaryargumentValueOverrides; [DataMember(EmitDefaultValue = false)] Location resultLocation; public ResolveNextArgumentWorkItem() { this.IsPooled = true; } public override void TraceScheduled() { TraceRuntimeWorkItemScheduled(); } public override void TraceStarting() { TraceRuntimeWorkItemStarting(); } public override void TraceCompleted() { TraceRuntimeWorkItemCompleted(); } public void Initialize(ActivityInstance activityInstance, int nextArgumentIndex, IDictionary argumentValueOverrides, Location resultLocation) { Fx.Assert(nextArgumentIndex > 0, "The nextArgumentIndex must be greater than 0 otherwise we will incorrectly set the sub-state when ResolveArguments completes"); base.Reinitialize(activityInstance); this.nextArgumentIndex = nextArgumentIndex; this.argumentValueOverrides = argumentValueOverrides; this.resultLocation = resultLocation; } protected override void ReleaseToPool(ActivityExecutor executor) { base.ClearForReuse(); this.nextArgumentIndex = 0; this.resultLocation = null; this.argumentValueOverrides = null; executor.ResolveNextArgumentWorkItemPool.Release(this); } public override bool Execute(ActivityExecutor executor, BookmarkManager bookmarkManager) { this.ActivityInstance.ResolveArguments(executor, argumentValueOverrides, resultLocation, nextArgumentIndex); // Return true always to prevent scheduler from yielding silently. return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CheckBoxFlatAdapter.cs
- AdRotator.cs
- DependencyProperty.cs
- SecurityManager.cs
- XmlText.cs
- SessionStateContainer.cs
- SecurityDocument.cs
- RolePrincipal.cs
- DetailsViewRowCollection.cs
- PropertyChangedEventManager.cs
- storepermission.cs
- WorkflowRuntimeServicesBehavior.cs
- XmlValueConverter.cs
- ProvidersHelper.cs
- GeometryHitTestResult.cs
- ListViewDeletedEventArgs.cs
- LiteralText.cs
- PropertyManager.cs
- StickyNoteContentControl.cs
- TimeSpanConverter.cs
- MobileSysDescriptionAttribute.cs
- PeerInvitationResponse.cs
- TcpAppDomainProtocolHandler.cs
- Figure.cs
- DrawListViewItemEventArgs.cs
- MemberHolder.cs
- ControlCollection.cs
- CheckBoxAutomationPeer.cs
- AnnotationHelper.cs
- SystemIPInterfaceStatistics.cs
- FixedSOMSemanticBox.cs
- ProcessThread.cs
- GeneralTransformCollection.cs
- ToolStripStatusLabel.cs
- BreakRecordTable.cs
- AsyncResult.cs
- ManagementClass.cs
- WindowsScrollBarBits.cs
- SafeRightsManagementQueryHandle.cs
- OleDbConnectionInternal.cs
- EncoderBestFitFallback.cs
- PropertyItemInternal.cs
- NetWebProxyFinder.cs
- CombinedGeometry.cs
- SessionIDManager.cs
- Comparer.cs
- ZipPackage.cs
- MouseCaptureWithinProperty.cs
- Hex.cs
- UInt16.cs
- DateTimeStorage.cs
- SystemIcons.cs
- ComponentResourceKey.cs
- RadioButtonRenderer.cs
- UpDownBase.cs
- TemplateNameScope.cs
- WrappedIUnknown.cs
- SqlWebEventProvider.cs
- XmlCompatibilityReader.cs
- DispatcherHookEventArgs.cs
- DodSequenceMerge.cs
- WindowsSidIdentity.cs
- xml.cs
- LockCookie.cs
- ListBindableAttribute.cs
- SchemaElement.cs
- MessageQueuePermissionAttribute.cs
- SamlAuthorizationDecisionClaimResource.cs
- OperatorExpressions.cs
- PerformanceCounterManager.cs
- TimeSpanValidator.cs
- ContextBase.cs
- MemberInfoSerializationHolder.cs
- XamlSerializationHelper.cs
- MarshalByValueComponent.cs
- ScriptReferenceBase.cs
- LogLogRecordEnumerator.cs
- DocumentStream.cs
- localization.cs
- GeneralTransform3D.cs
- LinqDataSourceStatusEventArgs.cs
- XmlLanguageConverter.cs
- FlowLayoutSettings.cs
- CheckBoxAutomationPeer.cs
- ObjectViewEntityCollectionData.cs
- HttpWebRequest.cs
- DataGridViewRowCollection.cs
- LayoutEngine.cs
- DelegatingConfigHost.cs
- ISAPIApplicationHost.cs
- PathFigure.cs
- CallbackHandler.cs
- X509Certificate2Collection.cs
- PropertyGridEditorPart.cs
- Constraint.cs
- View.cs
- OleDbErrorCollection.cs
- Policy.cs
- ToolStripSeparator.cs
- ErrorFormatterPage.cs