예제 #1
0
 /// <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);
     }
 }
예제 #2
0
 public AppLauncherLinux(ConfigService configService, IProcessInvoker processInvoker)
 {
     _processInvoker = processInvoker;
     _connectionInfo = configService.GetConnectionInfo();
 }
예제 #3
0
 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);
     }
 }
예제 #5
0
 public GenericController(IProcessInvoker invoker, IDataAccess <T> dataAccess)
 {
     this.invoker    = invoker;
     this.dataAccess = dataAccess;
 }
예제 #6
0
 public TrafficLightController(IProcessInvoker invoker, IDataAccess <TrafficLightModel> dataAccess) : base(invoker, dataAccess)
 {
     CaseCategory    = CaseCategories.HighWayIssues;
     CurrentCaseType = CaseType.TrafficLight;
 }
예제 #7
0
 public FraudController(IProcessInvoker invoker, IDataAccess <FraudCaseModel> dataAccess) : base(invoker, dataAccess)
 {
     CaseCategory    = CaseCategories.CitizenIssues;
     CurrentCaseType = CaseType.Fraud;
 }