The Problem SolverWIndows Workflow Foundation
HomeShow ChangesEditPrintRecent ChangesSubscriptionsLost and FoundFind ReferencesRename

Search

History

14-5-2008 16:39:59

List all versions

Get Service
.
Summary

The GetService function can be used inside of an activity to return a reference to one of the BaseRuntimeServices derived classes that have been added to the WorkflowRuntime.

The GetService function is defined on a number of classes and interfaces like WorkflowRuntime, ActivityExecutionContext, ExternalDataExchangeService and IServiceProvider.

Depending on the object used to call GetService a number of RuntimeServices might not be returned, a null/Nothing is returned instead. This is the case with a ActivityExecutionContext which will not return any of the following: WorkflowSchedulerService, WorkflowPersistenceService, TrackingService, WorkflowCommitWorkBatchService, WorkflowLoaderService or the WorkflowRuntime itself.

http://msdn.microsoft.com/en-us/library/ms592893.aspx

Wiki Usage

This wiki site is supposed to be a shared resource. As a shared resource everyone is encouraged to add new content or modify existing content!

Enjoy the WF wiki.

Recent Topics

  • GetService