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
- SecurityTokenSerializer.cs
- NavigationProgressEventArgs.cs
- LassoSelectionBehavior.cs
- AppDomainCompilerProxy.cs
- MaskDesignerDialog.cs
- WindowsRichEditRange.cs
- AttributeAction.cs
- NamespaceInfo.cs
- Classification.cs
- DataReaderContainer.cs
- DPTypeDescriptorContext.cs
- WebBaseEventKeyComparer.cs
- FrameworkElement.cs
- IndentTextWriter.cs
- DataBindingExpressionBuilder.cs
- String.cs
- FixedSOMGroup.cs
- AutoResizedEvent.cs
- XmlAttributeProperties.cs
- HideDisabledControlAdapter.cs
- StringCollectionMarkupSerializer.cs
- RootBuilder.cs
- RowType.cs
- XsltInput.cs
- AsymmetricKeyExchangeFormatter.cs
- PerspectiveCamera.cs
- PackageRelationship.cs
- TemplateField.cs
- EmbeddedMailObjectsCollection.cs
- TextElementCollection.cs
- HandoffBehavior.cs
- DateTimeOffset.cs
- DesignerToolStripControlHost.cs
- SQLByteStorage.cs
- FunctionImportMapping.cs
- HtmlHistory.cs
- SystemNetHelpers.cs
- Rule.cs
- PrintDialog.cs
- PageSettings.cs
- DataControlFieldCollection.cs
- HelpProvider.cs
- CompositionTarget.cs
- EntityDataSourceReferenceGroup.cs
- BindableAttribute.cs
- AtomParser.cs
- DoubleConverter.cs
- EntityDataSourceSelectedEventArgs.cs
- ClientApiGenerator.cs
- DrawingGroup.cs
- FormsAuthenticationUser.cs
- ItemMap.cs
- MemberHolder.cs
- IDQuery.cs
- FilterException.cs
- NullExtension.cs
- TabControl.cs
- ExternalException.cs
- CuspData.cs
- DataGridViewSelectedRowCollection.cs
- CodeObject.cs
- WebCategoryAttribute.cs
- PropertyMapper.cs
- TransformerConfigurationWizardBase.cs
- SecurityElement.cs
- CompatibleComparer.cs
- Brush.cs
- DataGridViewColumnEventArgs.cs
- XmlCustomFormatter.cs
- DataGridViewColumnConverter.cs
- GradientStop.cs
- SqlServices.cs
- CatalogZoneBase.cs
- ImmutablePropertyDescriptorGridEntry.cs
- ArglessEventHandlerProxy.cs
- PersistenceTypeAttribute.cs
- HyperlinkAutomationPeer.cs
- NativeObjectSecurity.cs
- Handle.cs
- NamedPermissionSet.cs
- SqlConnectionPoolProviderInfo.cs
- CellConstant.cs
- StrokeCollectionDefaultValueFactory.cs
- OrthographicCamera.cs
- EntitySetRetriever.cs
- WebBrowserContainer.cs
- MessageFormatterConverter.cs
- XmlSchemaCompilationSettings.cs
- ReferentialConstraint.cs
- RepeatEnumerable.cs
- ListViewContainer.cs
- TrustLevel.cs
- BufferBuilder.cs
- ToolStripStatusLabel.cs
- securitymgrsite.cs
- HtmlMeta.cs
- XmlSchemaIdentityConstraint.cs
- LinkTarget.cs
- SQLBinary.cs
- NetworkInformationException.cs