public virtual void Diagnose(IDiagnosticTool tool) { Console.WriteLine(@"new diagnose thread"); var t = new Thread(() => RunDiagnosticTool(tool)); t.Start(); Console.WriteLine(@"Proxy diagnose finished."); }
// This method is time-consuming... public virtual void Diagnose(IDiagnosticTool tool) { Console.WriteLine("(Running tool as thread)"); Thread t = new Thread(() => RunDiagnosticTool(tool)); t.Start(); Console.WriteLine("EngineProxy diagnose() method finished"); }
public virtual void Diagnose(IDiagnosticTool tool) { tool.RunDiagnosis(this); }
public virtual void RunDiagnosticTool(IDiagnosticTool tool) { tool.RunDiagnosis(this); }
protected virtual void RunDiagnosticTool(IDiagnosticTool tool) { tool.RunDiagnosis(this); }
public void Diagnose(IDiagnosticTool tool) { tool.RunDiagnosis(this); }