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
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- SqlBooleanMismatchVisitor.cs
- TaiwanCalendar.cs
- SafeNativeMethodsMilCoreApi.cs
- ComplexLine.cs
- GridItemPattern.cs
- SqlCommandBuilder.cs
- ButtonColumn.cs
- FunctionDefinition.cs
- DoubleAnimationClockResource.cs
- StickyNoteAnnotations.cs
- HttpCapabilitiesEvaluator.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- SmtpNtlmAuthenticationModule.cs
- DataGridViewAccessibleObject.cs
- GeneralTransform.cs
- Rotation3DAnimation.cs
- GeometryModel3D.cs
- SafeLocalMemHandle.cs
- TemplatePartAttribute.cs
- HighlightComponent.cs
- DbTransaction.cs
- BamlLocalizationDictionary.cs
- TemplatePropertyEntry.cs
- Attachment.cs
- ServiceDescriptions.cs
- DCSafeHandle.cs
- ObjectDataSourceStatusEventArgs.cs
- KnownIds.cs
- CacheChildrenQuery.cs
- WebDescriptionAttribute.cs
- DataGridViewCellLinkedList.cs
- SyndicationPerson.cs
- HttpRuntime.cs
- _ListenerAsyncResult.cs
- NativeMethodsOther.cs
- ResourceManagerWrapper.cs
- ApplicationDirectoryMembershipCondition.cs
- FormsAuthenticationModule.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- Transform3DGroup.cs
- UpdateCompiler.cs
- SamlAttributeStatement.cs
- HyperLink.cs
- WebDescriptionAttribute.cs
- DesignerActionPanel.cs
- NameValueConfigurationElement.cs
- PasswordRecoveryDesigner.cs
- CallbackValidatorAttribute.cs
- EncodingTable.cs
- ProcessHostFactoryHelper.cs
- ContentPresenter.cs
- NamespaceInfo.cs
- ErrorHandler.cs
- ConfigViewGenerator.cs
- ConfigurationCollectionAttribute.cs
- FrameworkReadOnlyPropertyMetadata.cs
- ActivationServices.cs
- UpdateRecord.cs
- DataGridViewSortCompareEventArgs.cs
- TreeViewAutomationPeer.cs
- Facet.cs
- OutOfProcStateClientManager.cs
- WebPartsPersonalization.cs
- DoubleCollectionValueSerializer.cs
- FileSystemEventArgs.cs
- ExpressionEditorAttribute.cs
- RunInstallerAttribute.cs
- WebPartConnectionsCloseVerb.cs
- IMembershipProvider.cs
- ValidatedControlConverter.cs
- SynchronousChannelMergeEnumerator.cs
- BoundColumn.cs
- Fonts.cs
- WebServiceErrorEvent.cs
- Roles.cs
- TypeInformation.cs
- BufferBuilder.cs
- EmptyStringExpandableObjectConverter.cs
- ClosureBinding.cs
- CodeDomSerializerBase.cs
- SqlUserDefinedAggregateAttribute.cs
- TemplateColumn.cs
- RectKeyFrameCollection.cs
- TextWriterTraceListener.cs
- AutomationFocusChangedEventArgs.cs
- ShapeTypeface.cs
- SvcMapFileSerializer.cs
- XomlDesignerLoader.cs
- CompilerScope.Storage.cs
- ProfileGroupSettings.cs
- OracleParameterCollection.cs
- FuncTypeConverter.cs
- RoleManagerEventArgs.cs
- ReaderWriterLock.cs
- TypeSystem.cs
- FacetDescription.cs
- LockRenewalTask.cs
- ViewSimplifier.cs
- SchemaExporter.cs