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
- PathNode.cs
- SystemWebSectionGroup.cs
- Geometry3D.cs
- ResourcesBuildProvider.cs
- OrderedEnumerableRowCollection.cs
- CodePageUtils.cs
- Knowncolors.cs
- PublisherIdentityPermission.cs
- MetaTableHelper.cs
- PersistencePipeline.cs
- ItemCheckEvent.cs
- Label.cs
- StrongNameHelpers.cs
- EntityAdapter.cs
- QueryMath.cs
- BindingWorker.cs
- dsa.cs
- PeerNameRecord.cs
- ServiceContractViewControl.Designer.cs
- BooleanToVisibilityConverter.cs
- RtfControlWordInfo.cs
- COM2ComponentEditor.cs
- LayoutTable.cs
- ContainerAction.cs
- XmlSchemaInfo.cs
- DependencyObjectPropertyDescriptor.cs
- XmlWellformedWriter.cs
- UniqueEventHelper.cs
- WebPartHelpVerb.cs
- OTFRasterizer.cs
- StackOverflowException.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- DetailsViewRow.cs
- XmlLanguage.cs
- DBSchemaRow.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- DesignerActionUIStateChangeEventArgs.cs
- DataGridViewUtilities.cs
- GroupItem.cs
- PlanCompilerUtil.cs
- CallId.cs
- SignedXml.cs
- BitmapSizeOptions.cs
- keycontainerpermission.cs
- NotifyCollectionChangedEventArgs.cs
- DataGridViewRowPostPaintEventArgs.cs
- MediaTimeline.cs
- SoapAttributes.cs
- CodeDOMProvider.cs
- LambdaCompiler.Logical.cs
- EventSetter.cs
- SqlDataSourceStatusEventArgs.cs
- DictionarySectionHandler.cs
- PixelShader.cs
- ObjectIDGenerator.cs
- BlockUIContainer.cs
- recordstate.cs
- BufferModeSettings.cs
- HttpModuleCollection.cs
- OutputCacheSettings.cs
- StsCommunicationException.cs
- ObjectIDGenerator.cs
- MultiAsyncResult.cs
- Compiler.cs
- _ContextAwareResult.cs
- OleStrCAMarshaler.cs
- GridLength.cs
- Boolean.cs
- WindowsToolbarAsMenu.cs
- StretchValidation.cs
- RuntimeHandles.cs
- CacheVirtualItemsEvent.cs
- WindowsAuthenticationModule.cs
- XhtmlBasicControlAdapter.cs
- SqlConnectionManager.cs
- Mappings.cs
- AnnotationComponentChooser.cs
- CancelRequestedRecord.cs
- DataStreams.cs
- CollectionDataContractAttribute.cs
- CommentAction.cs
- EditorZone.cs
- QilPatternFactory.cs
- BeginStoryboard.cs
- ListItemConverter.cs
- cookie.cs
- EntityTypeEmitter.cs
- SQLGuid.cs
- PackagePart.cs
- SqlSupersetValidator.cs
- DigitShape.cs
- DetailsViewUpdateEventArgs.cs
- _LocalDataStore.cs
- XmlAttribute.cs
- DotExpr.cs
- TextTabProperties.cs
- WindowsAltTab.cs
- XamlVector3DCollectionSerializer.cs
- TagNameToTypeMapper.cs
- KeySpline.cs