示例#1
0
 public virtual void Diagnose(IDiagnosticTool tool)
 {
     Console.WriteLine(@"new diagnose thread");
     var t = new Thread(() => RunDiagnosticTool(tool));
     t.Start();
     Console.WriteLine(@"Proxy diagnose finished.");
 }
示例#2
0
 // 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");
 }
        // 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");
        }
示例#4
0
 public virtual void Diagnose(IDiagnosticTool tool)
 {
     tool.RunDiagnosis(this);
 }
 public virtual void RunDiagnosticTool(IDiagnosticTool tool)
 {
     tool.RunDiagnosis(this);
 }
示例#6
0
 protected virtual void RunDiagnosticTool(IDiagnosticTool tool)
 {
     tool.RunDiagnosis(this);
 }
示例#7
0
 public void Diagnose(IDiagnosticTool tool)
 {
     tool.RunDiagnosis(this);
 }