There are two ways to add local service to workflow runtime, programatically or declaratively. Below is section of code that do it programatically.
private static void AddServices(WorkflowRuntime instance)
{
//add the external data exchange service to the runtime
ExternalDataExchangeService exchangeService
= new ExternalDataExchangeService();
instance.AddService(exchangeService);
//add our custom local service
//to the external data exchange service
exchangeService.AddService(new AccountService());
}
Or you can do it using config file. Below is section of the configuration file.
No comments:
Post a Comment