IDbConnection connection = executionContext.GetService();
IMessageService messageService = executionContext.GetService();
IWorkflowInstanceExtension instanceExtension = executionContext.GetServiceThis code retrieves an IWorkflowInstanceExtension service instance from the workflow runtime using the ActivityExecutionContext.GetService method. This example is used to retrieve an instance extension from the runtime. Package/Library: System.Activities.Extensions();