public void Config() { try { CodeSharp.Core.Configuration.ConfigWithEmbeddedXml(null , "application_config" , Assembly.GetExecutingAssembly() , "Taobao.Workflow.Activities.Test.ConfigFiles") .RenderProperties() .Castle(o => this.Resolve(o.Container)); //设置容器 Taobao.Activities.ActivityUtilities.Container(new Taobao.Workflow.Activities.Application.Container()); Taobao.Activities.Hosting.WorkflowInstance.IsEnableDebug = false; } catch (InvalidOperationException e) { if (!e.Message.Contains("不可重复初始化配置")) { Console.WriteLine(e.Message); } } this._log = DependencyResolver.Resolve <ILoggerFactory>().Create(this.GetType()); this._userService = DependencyResolver.Resolve <IUserService>(); this._processService = DependencyResolver.Resolve <IProcessService>(); this._processTypeService = DependencyResolver.Resolve <IProcessTypeService>(); this._workItemService = DependencyResolver.Resolve <IWorkItemService>(); this._timeZoneService = DependencyResolver.Resolve <ITimeZoneService>(); this._resumptionService = DependencyResolver.Resolve <ISchedulerService>(); this._scheduler = DependencyResolver.Resolve <IScheduler>(); this._sessionManager = DependencyResolver.Resolve <Castle.Facilities.NHibernateIntegration.ISessionManager>(); this._managementApi = DependencyResolver.Resolve <Taobao.Workflow.Activities.Management.ITFlowEngine>(); this._clientApi = DependencyResolver.Resolve <Taobao.Workflow.Activities.Client.ITFlowEngine>(); }
public void Config() { try { CodeSharp.Core.Configuration.ConfigWithEmbeddedXml(null , "application_config" , Assembly.GetExecutingAssembly() , "Taobao.Workflow.Activities.Test.ConfigFiles") .RenderProperties() .Castle(o => this.Resolve(o.Container)); //设置容器 Taobao.Activities.ActivityUtilities.Container(new Taobao.Workflow.Activities.Application.Container()); Taobao.Activities.Hosting.WorkflowInstance.IsEnableDebug = false; } catch (InvalidOperationException e) { if (!e.Message.Contains("不可重复初始化配置")) Console.WriteLine(e.Message); } this._log = DependencyResolver.Resolve<ILoggerFactory>().Create(this.GetType()); this._userService = DependencyResolver.Resolve<IUserService>(); this._processService = DependencyResolver.Resolve<IProcessService>(); this._processTypeService = DependencyResolver.Resolve<IProcessTypeService>(); this._workItemService = DependencyResolver.Resolve<IWorkItemService>(); this._timeZoneService = DependencyResolver.Resolve<ITimeZoneService>(); this._resumptionService = DependencyResolver.Resolve<ISchedulerService>(); this._scheduler = DependencyResolver.Resolve<IScheduler>(); this._sessionManager = DependencyResolver.Resolve<Castle.Facilities.NHibernateIntegration.ISessionManager>(); this._managementApi = DependencyResolver.Resolve<Taobao.Workflow.Activities.Management.ITFlowEngine>(); this._clientApi = DependencyResolver.Resolve<Taobao.Workflow.Activities.Client.ITFlowEngine>(); }
public ProjectController(IProjectService projectService, IJiraService jiraService, IWorkItemService workItemService) { Ensure.NotNull(projectService, workItemService); _projectService = projectService; _jiraService = jiraService; _workItemService = workItemService; }
public SettingsViewModel(IMvxLogProvider logProvider, IMvxNavigationService navigationService, ISettingsService settingsService, IWorkItemService workItemService) : base(logProvider, navigationService) { _settingsService = settingsService; SaveCommand = new MvxAsyncCommand(SaveSettingsAsync, () => _hasChanges); _workItemService = workItemService; }
public JobQueueControllerService( IJobQueueService service, IWorkItemService workItemService ) { this.service = service; this.workItemService = workItemService; }
public WorkItemChangedHandler(IWorkItemService workItemService, IUserService userService, IBus bus, ILoggerAdapter <WorkItemChangedHandler> logger, IWorkItemAuditService workItemAuditService) { _workItemService = workItemService; _userService = userService; _bus = bus; _logger = logger; _workItemAuditService = workItemAuditService; }
public JobQueueController( IJobQueueService service, IWorkItemService workItemService ) { _service = service; _workItemService = workItemService; }
public TestHumanEscalationHelper(ILoggerFactory factory , IWorkItemService workItemService , IUserService userService , ISchedulerService schedulerService , ProcessService processService) : base(factory, workItemService, userService, schedulerService, processService) { }
public EmployeeTaskController(IEmployeeTaskService employeeTaskService, IEmployeeService employeeService, IWorkItemService workItemService, IRolesService rolesService, IObjectMapper objectMapper, ILogger <EmployeeTaskController> logger) { this.employeeTaskService = employeeTaskService; this.employeeService = employeeService; this.workItemService = workItemService; this.rolesService = rolesService; _objectMapper = objectMapper; _logger = logger; }
public WorkItemController( IContext context, IWorkItemService workItemService, IRepeatingItemService repeatingItemService ) : base(context) { this.workItemService = workItemService; this.repeatingItemService = repeatingItemService; }
public CarController( IContext context, ICarService carService, IWorkItemService workItemService ) : base(context) { this.workItemService = workItemService; this.carService = carService; }
public ProjetoUsuarioAtividadeService(IWorkItemCoreWereRepository coreWereRepository, IWorkItemCustomLatestRepository customLatestRepository, IWorkItemService workItemService, IConstantService constantService, IFieldService fieldService) { _coreWereRepository = coreWereRepository; _customLatestRepository = customLatestRepository; _workItemService = workItemService; _constantService = constantService; _fieldService = fieldService; }
public WorkItemController(ILogger <ScheduleController> logger, IWorkItemService workItemService, IPatrolRepository patrolRepository, ISystemClock clock, IPatrolService patrolService, IUserRepository userRepository, IWorkItemRepository workItemRepository) { _logger = logger; _patrolRepository = patrolRepository; _clock = clock; _patrolService = patrolService; _userRepository = userRepository; _workItemService = workItemService; _workItemRepository = workItemRepository; }
public DefaultHumanEscalationHelper(ILoggerFactory factory , IWorkItemService workItemService , IUserService userService , ISchedulerService schedulerService , ProcessService processService) { this._log = factory.Create(this.GetType()); this._workItemService = workItemService; this._userService = userService; this._schedulerService = schedulerService; this._processService = processService; }
public WorkItemCreateWaitingResumption(ILoggerFactory factory , IUserService userService , IProcessService processService , IWorkItemService workItemService , ISchedulerService resumptionService) { this._log = factory.Create(typeof(WorkItemCreateWaitingResumption)); this._userService = userService; this._processService = processService; this._workItemService = workItemService; this._resumptionService = resumptionService; }
public SearchAndReplaceViewModel(IMvxLogProvider logProvider, IMvxNavigationService navigationService, IWorkItemService workItemService, IMessenger messenger, ISettingsService settingsService) : base(logProvider, navigationService) { SearchCommand = new MvxAsyncCommand( () => SearchAsync(SearchText, SearchItemTypes.Where(f => f.IsSelected).ToList(), SearchFields.Where(f => f.IsSelected).ToList()), () => !string.IsNullOrWhiteSpace(SearchText) && !IsRunningReplace && SearchItemTypes.Count(f => f.IsSelected) > 0 && SearchFields.Count(f => f.IsSelected) > 0); ReplaceCommand = new MvxAsyncCommand(ReplaceAsync, () => TotalReplacementCount > 0 && !string.IsNullOrWhiteSpace(ReplaceText) && !IsRunningSearch); OpenWorkItemCommand = new MvxAsyncCommand <int>(OpenWorkItemAsync, id => id > 0); _workItemService = workItemService; _messenger = messenger; _settingsService = settingsService; }
public HumanEscalationWaitingResumption(ILoggerFactory factory , ISchedulerService schedulerService , IWorkItemService workItemService , IScriptParser parser , IHumanEscalationHelper helper) { this._log = factory.Create(typeof(HumanEscalationWaitingResumption)); this._schedulerService = schedulerService; this._workItemService = workItemService; this._parser = parser; this._helper = helper; }
public HumanEscalationWaitingResumption(ILoggerFactory factory , ISchedulerService schedulerService , IWorkItemService workItemService , IScriptParser parser , IHumanEscalationHelper helper) { this._log = factory.Create(typeof(HumanEscalationWaitingResumption)); this._schedulerService = schedulerService; this._workItemService = workItemService; this._parser = parser; this._helper = helper; }
//private IEngineIntegrationService _integrationService; public HumanEscalationHelper(ILoggerFactory factory , IWorkItemService workItemService , IUserService userService , ISchedulerService schedulerService , ProcessService processService) //, IEngineIntegrationService integrationService) : base(factory , workItemService , userService , schedulerService , processService) { //this._integrationService = integrationService; }
//private IEngineIntegrationService _integrationService; public HumanEscalationHelper(ILoggerFactory factory , IWorkItemService workItemService , IUserService userService , ISchedulerService schedulerService , ProcessService processService) //, IEngineIntegrationService integrationService) : base(factory , workItemService , userService , schedulerService , processService) { //this._integrationService = integrationService; }
public CarService( IContext context, ICurrentUserService currentUserService, IVinService vinService, IMileageService mileageService, IRepeatingItemService repeatingItemService, IWorkItemService workItemService ) : base(context) { this.workItemService = workItemService; this.repeatingItemService = repeatingItemService; this.mileageService = mileageService; this.vinService = vinService; this.currentUserService = currentUserService; }
public WorkItemChangedHandlerTests() { _workItemService = Substitute.For <IWorkItemService>(); _userService = Substitute.For <IUserService>(); _consumeContext = Substitute.For <ConsumeContext <WorkItemUpdated> >(); _bus = Substitute.For <IBus>(); _logger = Substitute.For <ILoggerAdapter <WorkItemChangedHandler> >(); _workItemAuditService = Substitute.For <IWorkItemAuditService>(); _workItemService.GetById(1).Returns(WorkItem); _workItemService.GetById(2).Returns(WorkItemWithNotValidAssignee); _workItemService.GetById(3).Returns <WorkItemDto>(value => null); _userService.GetById(1).Returns(User); _userService.GetById(2).Returns <UserDto>(value => null); _handler = new WorkItemChangedHandler(_workItemService, _userService, _bus, _logger, _workItemAuditService); }
public WorkItemsController(IWorkItemService workItemService, IBacklogPrioritiesService backlogPrioritiesService, IProjectsService projectsService, IMapper mapper, IUserStoryService userStoryService, ITasksService tasksService, ITestsService testsService, IBugsService bugsService, ISprintsService sprintsService, IConfiguration config) : base(projectsService) { this.workItemService = workItemService; this.backlogPrioritiesService = backlogPrioritiesService; this.mapper = mapper; this.userStoryService = userStoryService; this.tasksService = tasksService; this.testsService = testsService; this.bugsService = bugsService; this.sprintsService = sprintsService; this.config = config; }
public TFlowEngine(ILoggerFactory factory , IUserService userService , IAgentService agentService , IWorkItemService workItemService , IProcessService processService , IProcessTypeService processTypeService , ITimeZoneService timeZoneService , IWorkflowParser workflowParser , IMethodInvoker invoker ,ISchedulerService schedulerService) { this._log = factory.Create(typeof(TFlowEngine)); this._userService = userService; this._agentService = agentService; this._workItemService = workItemService; this._processService = processService; this._processTypeService = processTypeService; this._timeZoneService = timeZoneService; this._workflowParser = workflowParser; this._invoker = invoker; this._schedulerService = schedulerService; }
public TFlowEngine(ILoggerFactory factory , IUserService userService , IAgentService agentService , IWorkItemService workItemService , IProcessService processService , IProcessTypeService processTypeService , ITimeZoneService timeZoneService , IWorkflowParser workflowParser , IMethodInvoker invoker , ISchedulerService schedulerService) { this._log = factory.Create(typeof(TFlowEngine)); this._userService = userService; this._agentService = agentService; this._workItemService = workItemService; this._processService = processService; this._processTypeService = processTypeService; this._timeZoneService = timeZoneService; this._workflowParser = workflowParser; this._invoker = invoker; this._schedulerService = schedulerService; }
public HomeController(IWorkItemService workItemService) { _workItemService = workItemService; }
public WorkItemCreateWaitingResumption(ILoggerFactory factory , IUserService userService , IProcessService processService , IWorkItemService workItemService , ISchedulerService resumptionService) { this._log = factory.Create(typeof(WorkItemCreateWaitingResumption)); this._userService = userService; this._processService = processService; this._workItemService = workItemService; this._resumptionService = resumptionService; }
public DefaultHumanEscalationHelper(ILoggerFactory factory , IWorkItemService workItemService , IUserService userService , ISchedulerService schedulerService , ProcessService processService) { this._log = factory.Create(this.GetType()); this._workItemService = workItemService; this._userService = userService; this._schedulerService = schedulerService; this._processService = processService; }
public UsersController(IUserService userService, IWorkItemService workItemService) { _userService = userService; _workItemService = workItemService; }
public WorkItemsController(IWorkItemService worksService) { _worksService = worksService; }
public WorkItemsController(IWorkItemService workItemService, IMapper mapper) { this.workItemService = workItemService; this.mapper = mapper; }
public AddWorkItemController(IWorkItemService workItemService) { _workItemService = workItemService; }
public TestHumanEscalationHelper(ILoggerFactory factory , IWorkItemService workItemService , IUserService userService , ISchedulerService schedulerService , ProcessService processService) : base(factory, workItemService, userService, schedulerService, processService) { }
public WorkItemServiceAdapter(IWorkItemService service) { this._service = service; }
private void ResolveWorkItemService() { var apiMode = ControllerContext.Request.GetApiMode(); workItemService = workItemServiceByMode[apiMode]; }
public CreateWorkItemViewModel(IFrameNavigationService navigationService, IWorkItemService workItemService, ITaskService taskService, IWorkItemFactory workItemFactory) : base(navigationService) { _workItemService = workItemService; _taskService = taskService; _workItemFactory = workItemFactory; }
public WorkItemController(IWorkItemService workItemService, IObjectMapper objectMapper, ILogger <WorkItemController> logger) { this.workItemService = workItemService; _objectMapper = objectMapper; _logger = logger; }