示例#1
0
 public CrossDomainTextWriter(AppDomain domain, TextWriter writer)
 {
     this.remoteTracer = domain.CreateInstanceFrom(Assembly.GetExecutingAssembly().Location, typeof(CrossDomainTextWriter).FullName).Unwrap() as CrossDomainTextWriter;
     if (remoteTracer != null)
     {
         remoteTracer.StartListening(this, writer);
     }
 }
示例#2
0
 public void StartListening(CrossDomainTextWriter farTracer, TextWriter writer)
 {
     this.remoteTracer = farTracer;
     Console.SetOut(writer);
 }