Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / RunTime / Hosting / WorkflowTimerService.cs / 1305376 / WorkflowTimerService.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- using System.Workflow.ComponentModel; using System.Workflow.Runtime; using System.Threading; namespace System.Workflow.Runtime.Hosting { class WorkflowTimerService : WorkflowRuntimeService, ITimerService { public WorkflowTimerService() : base() { } public void ScheduleTimer(WaitCallback callback, Guid workflowInstanceId, DateTime whenUtc, Guid timerId) { WorkflowSchedulerService schedulerService = this.Runtime.GetService(typeof(WorkflowSchedulerService)) as WorkflowSchedulerService; schedulerService.Schedule(callback, workflowInstanceId, whenUtc, timerId); } public void CancelTimer(Guid timerId) { WorkflowSchedulerService schedulerService = this.Runtime.GetService(typeof(WorkflowSchedulerService)) as WorkflowSchedulerService; schedulerService.Cancel(timerId); } } } // 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
- BulletChrome.cs
- WebRequestModulesSection.cs
- UserMapPath.cs
- SystemIPv4InterfaceProperties.cs
- TriggerAction.cs
- DoubleAnimationUsingPath.cs
- SchemaTableColumn.cs
- DrawingVisualDrawingContext.cs
- EnglishPluralizationService.cs
- ManagedWndProcTracker.cs
- RectValueSerializer.cs
- XpsFilter.cs
- thaishape.cs
- httpserverutility.cs
- DesignerActionPanel.cs
- ColorBlend.cs
- MailWebEventProvider.cs
- DependencyPropertyChangedEventArgs.cs
- ParserStack.cs
- LabelLiteral.cs
- Stackframe.cs
- _CommandStream.cs
- _ProxyRegBlob.cs
- ProgressBar.cs
- PassportAuthenticationEventArgs.cs
- mediapermission.cs
- XmlSchemaAll.cs
- TimeManager.cs
- RelationshipWrapper.cs
- DBSqlParserColumnCollection.cs
- Subset.cs
- ModelPropertyDescriptor.cs
- CfgRule.cs
- CheckBoxAutomationPeer.cs
- SecurityHeader.cs
- BindingMAnagerBase.cs
- DoubleLinkList.cs
- TreeNodeCollection.cs
- EmptyEnumerator.cs
- MemberMaps.cs
- KnownColorTable.cs
- AutomationPeer.cs
- DragDrop.cs
- ObjRef.cs
- SafeNativeMethods.cs
- EmptyStringExpandableObjectConverter.cs
- FlowLayoutPanel.cs
- BaseCodeDomTreeGenerator.cs
- HistoryEventArgs.cs
- ProxyHelper.cs
- WpfGeneratedKnownTypes.cs
- ExtensionsSection.cs
- _NestedMultipleAsyncResult.cs
- XmlUtil.cs
- TextShapeableCharacters.cs
- PersonalizationDictionary.cs
- LinqDataSourceEditData.cs
- DataReaderContainer.cs
- PrimitiveXmlSerializers.cs
- RectangleGeometry.cs
- Relationship.cs
- ReplacementText.cs
- ToolStripItemCollection.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ProviderConnectionPoint.cs
- PrinterResolution.cs
- MouseActionValueSerializer.cs
- MemoryPressure.cs
- AxHost.cs
- StyleSheetDesigner.cs
- ToolboxService.cs
- TypeExtension.cs
- TextAutomationPeer.cs
- XmlILOptimizerVisitor.cs
- FrameworkReadOnlyPropertyMetadata.cs
- SqlDependencyListener.cs
- QualificationDataItem.cs
- QuaternionKeyFrameCollection.cs
- DefaultParameterValueAttribute.cs
- ADConnectionHelper.cs
- EventProviderWriter.cs
- PromptBuilder.cs
- TripleDES.cs
- StreamInfo.cs
- ResourceWriter.cs
- CompilerScopeManager.cs
- ResourceLoader.cs
- RemoteWebConfigurationHostStream.cs
- HiddenFieldPageStatePersister.cs
- ConversionValidationRule.cs
- CalendarDesigner.cs
- UnsafeNativeMethods.cs
- RepeaterCommandEventArgs.cs
- SessionParameter.cs
- BindingFormattingDialog.cs
- SHA384.cs
- AnnotationAdorner.cs
- SQLMoneyStorage.cs
- ComboBoxItem.cs
- DataGridViewRowPostPaintEventArgs.cs