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
- CommandField.cs
- DataBoundControlAdapter.cs
- ExclusiveCanonicalizationTransform.cs
- LOSFormatter.cs
- XmlElementAttribute.cs
- GeneralTransform.cs
- SystemKeyConverter.cs
- CodeTypeMember.cs
- SqlCacheDependencySection.cs
- Int32AnimationBase.cs
- StringExpressionSet.cs
- PropertyEmitterBase.cs
- GrammarBuilderWildcard.cs
- SqlDataSourceSelectingEventArgs.cs
- PropertyStore.cs
- invalidudtexception.cs
- NamespaceList.cs
- DiscoveryVersionConverter.cs
- Sql8ConformanceChecker.cs
- RelationshipFixer.cs
- SystemWebExtensionsSectionGroup.cs
- _BasicClient.cs
- Storyboard.cs
- DefaultAuthorizationContext.cs
- safelink.cs
- XamlPoint3DCollectionSerializer.cs
- AttachedAnnotation.cs
- SendActivityDesignerTheme.cs
- DataGridViewTextBoxCell.cs
- TextEditorParagraphs.cs
- translator.cs
- FileUtil.cs
- StateRuntime.cs
- TextServicesManager.cs
- ThreadSafeList.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- ItemsPresenter.cs
- SqlClientFactory.cs
- Int32RectConverter.cs
- HostSecurityManager.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- ClientConfigPaths.cs
- srgsitem.cs
- IndexerNameAttribute.cs
- APCustomTypeDescriptor.cs
- MemberRelationshipService.cs
- XsdDuration.cs
- MultiBindingExpression.cs
- StaticSiteMapProvider.cs
- CorrelationHandle.cs
- Panel.cs
- BooleanKeyFrameCollection.cs
- GenericNameHandler.cs
- GreenMethods.cs
- EventWaitHandleSecurity.cs
- SamlConstants.cs
- DeferrableContent.cs
- PostBackOptions.cs
- COAUTHINFO.cs
- SqlUserDefinedAggregateAttribute.cs
- DataControlLinkButton.cs
- StreamGeometry.cs
- QueryCacheKey.cs
- EraserBehavior.cs
- HttpContextWrapper.cs
- NotifyParentPropertyAttribute.cs
- MessageDescription.cs
- CodeNamespaceImportCollection.cs
- KnownBoxes.cs
- WebPartDisplayMode.cs
- ConvertEvent.cs
- ConfigXmlAttribute.cs
- XomlCompiler.cs
- EventLog.cs
- FixUpCollection.cs
- ReflectionUtil.cs
- DocumentViewerAutomationPeer.cs
- ToolStripStatusLabel.cs
- SchemaConstraints.cs
- ControlPaint.cs
- WebPartDisplayModeCancelEventArgs.cs
- ActivityCodeDomReferenceService.cs
- DataTemplateKey.cs
- cookiecontainer.cs
- AttributeParameterInfo.cs
- ProcessModelInfo.cs
- GlobalizationAssembly.cs
- Composition.cs
- NetworkInformationException.cs
- DataGridItemCollection.cs
- RijndaelManaged.cs
- WinCategoryAttribute.cs
- ChangeInterceptorAttribute.cs
- SrgsSubset.cs
- CodeTypeOfExpression.cs
- Exceptions.cs
- ExpressionBuilderContext.cs
- DistinctQueryOperator.cs
- TextRangeAdaptor.cs
- DataProtection.cs