Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.Activities / System / Activities / Runtime / EmptyWorkItem.cs / 1305376 / EmptyWorkItem.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.Activities.Runtime { using System; using System.Runtime; using System.Reflection; using System.Runtime.Serialization; using System.Diagnostics.CodeAnalysis; [DataContract] class EmptyWorkItem : ActivityExecutionWorkItem { // Called by the Pool. public EmptyWorkItem() { this.IsPooled = true; // Empty doesn't need to be cleared/reinitialized so we set it here this.IsEmpty = true; } public void Initialize(ActivityInstance activityInstance) { base.Reinitialize(activityInstance); } protected override void ReleaseToPool(ActivityExecutor executor) { base.ClearForReuse(); executor.EmptyWorkItemPool.Release(this); } public override void TraceCompleted() { TraceRuntimeWorkItemCompleted(); } public override void TraceScheduled() { TraceRuntimeWorkItemScheduled(); } public override void TraceStarting() { TraceRuntimeWorkItemStarting(); } public override bool Execute(ActivityExecutor executor, BookmarkManager bookmarkManager) { Fx.Assert("Empty work items should never been executed."); 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
- ProfilePropertyMetadata.cs
- HtmlControlPersistable.cs
- ListBindingConverter.cs
- BufferAllocator.cs
- JsonWriterDelegator.cs
- ConsoleKeyInfo.cs
- GlyphShapingProperties.cs
- CapabilitiesRule.cs
- SqlDataSourceDesigner.cs
- PropertyMapper.cs
- ResourceAssociationType.cs
- CircleHotSpot.cs
- EnumDataContract.cs
- OleDbConnectionInternal.cs
- NodeLabelEditEvent.cs
- UIElementCollection.cs
- CustomAttribute.cs
- PropertyEmitterBase.cs
- ToolStripItemCollection.cs
- BitStack.cs
- DecoderFallback.cs
- PanelStyle.cs
- EntityReference.cs
- SqlDataSourceCommandEventArgs.cs
- HTMLTextWriter.cs
- ConfigXmlText.cs
- ActivationProxy.cs
- GZipDecoder.cs
- StatusBar.cs
- ConfigurationSectionHelper.cs
- ConfigXmlWhitespace.cs
- ScriptingAuthenticationServiceSection.cs
- SerializationAttributes.cs
- ExpressionsCollectionEditor.cs
- SqlBinder.cs
- TextTreeTextBlock.cs
- ScrollViewer.cs
- SqlMethodCallConverter.cs
- ToolStripContentPanelRenderEventArgs.cs
- SchemaNotation.cs
- LabelLiteral.cs
- WebPartCatalogCloseVerb.cs
- SrgsElement.cs
- FormsIdentity.cs
- VirtualPath.cs
- PointLight.cs
- BasicHttpSecurityElement.cs
- TextRangeSerialization.cs
- ListControlBuilder.cs
- HtmlInputReset.cs
- CodeDirectoryCompiler.cs
- SinglePageViewer.cs
- ControlBuilder.cs
- ApplicationBuildProvider.cs
- RunWorkerCompletedEventArgs.cs
- PrinterUnitConvert.cs
- CompositeDesignerAccessibleObject.cs
- TypeLoadException.cs
- HtmlTableCellCollection.cs
- ToolStripItemGlyph.cs
- WebHttpEndpoint.cs
- WindowsProgressbar.cs
- DispatcherHooks.cs
- ResumeStoryboard.cs
- XmlIncludeAttribute.cs
- WebRequestModulesSection.cs
- ModuleBuilderData.cs
- CheckBox.cs
- RepeatButtonAutomationPeer.cs
- XmlNamespaceMapping.cs
- ContentPlaceHolder.cs
- Exceptions.cs
- DataControlFieldHeaderCell.cs
- FormsIdentity.cs
- precedingquery.cs
- XmlEncodedRawTextWriter.cs
- ValueType.cs
- DefaultPropertyAttribute.cs
- MachineKeyConverter.cs
- DBConnection.cs
- KoreanLunisolarCalendar.cs
- BitmapCache.cs
- TextRange.cs
- BStrWrapper.cs
- AggregatePushdown.cs
- DisplayNameAttribute.cs
- XmlAnyAttributeAttribute.cs
- IntegerValidatorAttribute.cs
- UnsafeCollabNativeMethods.cs
- OracleBFile.cs
- HttpCachePolicy.cs
- ReadOnlyDictionary.cs
- DataViewManagerListItemTypeDescriptor.cs
- DataRecordInternal.cs
- CodeTypeParameter.cs
- ApplicationTrust.cs
- Drawing.cs
- listitem.cs
- SelfIssuedTokenFactoryCredential.cs
- Light.cs