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;
 }
Exemple #3
0
 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;
Exemple #5
0
 /// <summary>
 /// 添加帧函数服务对象
 /// </summary>
 /// <param name="service"></param>
 private void AddExecuteService(IExecuteService service)
 {
     _executeServices.Add(service);
 }
Exemple #6
0
 public ExecuteController(IExecuteService executeService)
 {
     _executeService = executeService;
 }
Exemple #7
0
 private static async Task ExecuteServiceAsync(IServiceProvider serviceProvider)
 {
     IExecuteService executeService = serviceProvider.GetService <IExecuteService>();
     //TODO: 結果をチェックする
     bool isSuccess = await executeService.ExecuteConsoleWriteLine();
 }
Exemple #8
0
 public ExecuteController(IExecuteService executeService, IEncryptService encryptService)
 {
     _encryptService = encryptService;
     _executeService = executeService;
 }