Workflows interact with local services in these two ways:
Calling a method on a local service
Waiting for an event to be raised by a local service
Calling a method on a local service is done synchronously using the thread from the current workflow instance. This means that the method shouldn’t perform long-running tasks that will block the workflow thread for a long period of time.
Use the GetService method to obtain a reference to the service and call one of the methods defined by the service interface.