public object GetService(System.Workflow.ComponentModel.Activity currentActivity, Type serviceType) { if (serviceType == typeof(IWorkflowCoreRuntime)) { return(this); } if (serviceType == typeof(WorkflowQueuingService)) { this.workflowQueuingService.CallingActivity = ContextActivity(currentActivity); return(this.workflowQueuingService); } if (!(serviceType == typeof(ITimerService))) { return(((IServiceProvider)this.ServiceProvider).GetService(serviceType)); } if (this.timerSchedulerSerivce == null) { this.timerSchedulerSerivce = new TimerSchedulerService(this); } return(this.timerSchedulerSerivce); }
public object GetService(Activity currentActivity, Type serviceType) { if (serviceType == typeof(IWorkflowCoreRuntime)) { return this; } if (serviceType == typeof(WorkflowQueuingService)) { this.workflowQueuingService.CallingActivity = ContextActivity(currentActivity); return this.workflowQueuingService; } if (serviceType == typeof(ITimerService)) { if (this.timerSchedulerSerivce == null) { this.timerSchedulerSerivce = new TimerSchedulerService(this); } return this.timerSchedulerSerivce; } return ((IServiceProvider)this.ServiceProvider).GetService(serviceType); }