コード例 #1
0
        public static ServiceExecution Create(IWorkEnvironment workEnvironment)
        {
            if (!RepositoryAppXmlConfiguration.Instance.UseHistory)
            {
                return(new NullServiceExecution());
            }
            ExecutionHistory executionHistory = ExecutionHistory.Create();

            return(new ServiceExecution(executionHistory, workEnvironment ?? new NullWorkEnvironment()));
        }
コード例 #2
0
 public ServiceExecutionTest()
 {
     type = typeof(TestService);
     executionHistory = new ExecutionHistory();
     serviceExecution = new ServiceExecution(executionHistory, new NullWorkEnvironment());
 }
コード例 #3
0
 public ServiceExecution(ExecutionHistory executionHistory, IWorkEnvironment workEnvironment)
 {
     this.executionHistory = executionHistory;
     this.workEnvironment  = workEnvironment;
 }