/// <summary> /// Performs the slow, asynchronous work. /// </summary> /// <remarks> /// Does not run on the main thread, so should not access caches /// (or do anything else that expects to be synchronous). /// When this returns, the work is expected to have completed. /// </remarks> public void RunAsync() { if (this.useCloudExecution) { // // REVIEW: Would prefer to use the verb's input hash value as the request identifier below. // this.pinv = new CloudSubmitter( // Path.GetRandomFileName(), // this.workingDirectory, // this.inputFiles, // this.outputFiles, // this.executable, // this.args, // this.failureBase, // this.captureStdout, // this.dbgText); } else { this.pinv = new ProcessInvoker( this.workingDirectory, this.executable, this.args, this.failureBase, this.captureStdout, this.dbgText, this.allowAbsoluteExe, this.allowAbsoluteArgs, this.workingDirOverride); } }
public AppLauncherLinux(ConfigService configService, IProcessInvoker processInvoker) { _processInvoker = processInvoker; _connectionInfo = configService.GetConnectionInfo(); }
public DeviceInformationServiceLinux(IProcessInvoker processInvoker) { _processInvoker = processInvoker; }
/// <summary> /// Performs the slow, asynchronous work. /// </summary> /// <remarks> /// Does not run on the main thread, so should not access caches /// (or do anything else that expects to be synchronous). /// When this returns, the work is expected to have completed. /// </remarks> public void RunAsync() { if (this.useCloudExecution) { // REVIEW: Would prefer to use the verb's input hash value as the request identifier below. this.pinv = new CloudSubmitter( Path.GetRandomFileName(), this.workingDirectory, this.inputFiles, this.outputFiles, this.executable, this.args, this.failureBase, this.captureStdout, this.dbgText); } else { this.pinv = new ProcessInvoker( this.workingDirectory, this.executable, this.args, this.failureBase, this.captureStdout, this.dbgText, this.allowAbsoluteExe, this.allowAbsoluteArgs, this.workingDirOverride); } }
public GenericController(IProcessInvoker invoker, IDataAccess <T> dataAccess) { this.invoker = invoker; this.dataAccess = dataAccess; }
public TrafficLightController(IProcessInvoker invoker, IDataAccess <TrafficLightModel> dataAccess) : base(invoker, dataAccess) { CaseCategory = CaseCategories.HighWayIssues; CurrentCaseType = CaseType.TrafficLight; }
public FraudController(IProcessInvoker invoker, IDataAccess <FraudCaseModel> dataAccess) : base(invoker, dataAccess) { CaseCategory = CaseCategories.CitizenIssues; CurrentCaseType = CaseType.Fraud; }