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
- ClientSettingsStore.cs
- ProcessHostServerConfig.cs
- AbstractSvcMapFileLoader.cs
- LongValidatorAttribute.cs
- DecimalStorage.cs
- UIElementHelper.cs
- GradientStopCollection.cs
- TableRowCollection.cs
- OleAutBinder.cs
- PixelFormatConverter.cs
- NativeObjectSecurity.cs
- SchemaImporterExtensionsSection.cs
- GridViewCommandEventArgs.cs
- SQLDecimal.cs
- XmlWriterSettings.cs
- RepeatButton.cs
- ApplicationManager.cs
- RSAOAEPKeyExchangeDeformatter.cs
- FilterableAttribute.cs
- BaseProcessProtocolHandler.cs
- EventWaitHandleSecurity.cs
- MetadataImporterQuotas.cs
- TimeZone.cs
- ComponentResourceManager.cs
- ToolbarAUtomationPeer.cs
- HtmlControlPersistable.cs
- tibetanshape.cs
- PrinterSettings.cs
- LinkTarget.cs
- DataBindEngine.cs
- PersistenceContext.cs
- HttpResponse.cs
- RetriableClipboard.cs
- Pointer.cs
- HtmlTable.cs
- KeyGestureValueSerializer.cs
- QueueTransferProtocol.cs
- UIElementParaClient.cs
- ActivityFunc.cs
- ActionItem.cs
- HitTestParameters3D.cs
- ChannelServices.cs
- RadioButtonList.cs
- XmlChildNodes.cs
- ToolStripItemTextRenderEventArgs.cs
- mediaeventargs.cs
- Internal.cs
- TextDocumentView.cs
- JournalEntryListConverter.cs
- ClientTargetCollection.cs
- FixedSOMTableCell.cs
- FrameworkPropertyMetadata.cs
- EdmProviderManifest.cs
- StorageMappingItemCollection.cs
- Configuration.cs
- SQLCharsStorage.cs
- FileStream.cs
- DataTemplate.cs
- SimpleBitVector32.cs
- ServicePoint.cs
- AttributedMetaModel.cs
- SqlMethodAttribute.cs
- UndirectedGraph.cs
- PrivateFontCollection.cs
- ElapsedEventArgs.cs
- TimeoutValidationAttribute.cs
- _BaseOverlappedAsyncResult.cs
- SchemaNamespaceManager.cs
- DoWorkEventArgs.cs
- IconEditor.cs
- TraversalRequest.cs
- ReadonlyMessageFilter.cs
- GridItemPattern.cs
- ListControlConvertEventArgs.cs
- FileSystemInfo.cs
- basemetadatamappingvisitor.cs
- AttributeCollection.cs
- XmlSchemaGroupRef.cs
- SamlAudienceRestrictionCondition.cs
- StatusBarItemAutomationPeer.cs
- RecognizerBase.cs
- HtmlPhoneCallAdapter.cs
- LinqDataSourceValidationException.cs
- TemplateXamlParser.cs
- WebPartsSection.cs
- ComPlusServiceLoader.cs
- Mapping.cs
- oledbconnectionstring.cs
- ADMembershipUser.cs
- PerformanceCounterManager.cs
- ListViewSelectEventArgs.cs
- UIElement3D.cs
- BaseInfoTable.cs
- WebEventCodes.cs
- SeverityFilter.cs
- SyntaxCheck.cs
- NavigationEventArgs.cs
- OleDbWrapper.cs
- CharAnimationBase.cs
- DynamicMethod.cs