public StreamsViewModel(Configuration conf, ICasparCGService casparCGService, IPlaceholderService placeholderService, IExecuteService executeService) { this.casparCGService = casparCGService; this.placeholderService = placeholderService; this.executeService = executeService; Streams = new ObservableCollection <Stream>(conf.Streams); StreamsHeader = conf.StreamsHeader; ActivateCommand = new DelegateCommand <Stream>(ActivateStream); DeactivateCommand = new DelegateCommand <Stream>(DeactivateStream); }
public ScheduleTaskController(ILogService logService, ICommonService commonService, IHostingEnvironment hostingEnvironment, IUserService userService, IPermissionService permissionService, IScheduleTaskService scheduleTaskService, IExecuteService executeService) { _logService = logService; _commonService = commonService; _hostingEnvironment = hostingEnvironment; _userService = userService; _permissionService = permissionService; _scheduleTaskService = scheduleTaskService; _executeService = executeService; }
private void AddExecuteServices(IInitService[] services) { foreach (var service in services) { IExecuteService temp = service as IExecuteService; if (temp != null) { AddExecuteService(temp); } } }
public ExecuteCommandHandler(IExecuteService executeService) => _executeService = executeService;
/// <summary> /// 添加帧函数服务对象 /// </summary> /// <param name="service"></param> private void AddExecuteService(IExecuteService service) { _executeServices.Add(service); }
public ExecuteController(IExecuteService executeService) { _executeService = executeService; }
private static async Task ExecuteServiceAsync(IServiceProvider serviceProvider) { IExecuteService executeService = serviceProvider.GetService <IExecuteService>(); //TODO: 結果をチェックする bool isSuccess = await executeService.ExecuteConsoleWriteLine(); }
public ExecuteController(IExecuteService executeService, IEncryptService encryptService) { _encryptService = encryptService; _executeService = executeService; }