private void OnCompileSandboxCompletionEvent(object sender, CompileSandboxCompletionEventArgs args) { var sandbox = (CompileSandbox)sender; this.RemoveSandbox(sandbox); sandbox.StatusChangeEvent -= this.OnStatusChangeEvent; sandbox.CompletedEvent -= this.OnCompileSandboxCompletionEvent; var compileResponse = new CompileSourceResponse(args.Id, args.Response.StandardOutput, args.Response .StandardErrorOutput, args.Response.Result, args.Response.Status); this._logger.LogInformation($"compile: {JsonConvert.SerializeObject(compileResponse)}"); this._publisher.PublishCompileSourceResponse(compileResponse) .FireAndForgetSafeAsync(this.HandleSandboxCompleteFailedException); }
/// <summary> /// Handles the base event from the under lining compile and raises the test simple completion event. /// With the related results. /// </summary> private void HandleBaseSandboxCompletionEvent(object sender, CompileSandboxCompletionEventArgs args) { this.RaiseCompletedChangeEvent(this.GetResponse(args.Response)); }