public static ServiceExecution Create(IWorkEnvironment workEnvironment) { if (!RepositoryAppXmlConfiguration.Instance.UseHistory) { return(new NullServiceExecution()); } ExecutionHistory executionHistory = ExecutionHistory.Create(); return(new ServiceExecution(executionHistory, workEnvironment ?? new NullWorkEnvironment())); }
public ServiceExecutionTest() { type = typeof(TestService); executionHistory = new ExecutionHistory(); serviceExecution = new ServiceExecution(executionHistory, new NullWorkEnvironment()); }
public ServiceExecution(ExecutionHistory executionHistory, IWorkEnvironment workEnvironment) { this.executionHistory = executionHistory; this.workEnvironment = workEnvironment; }