Example #1
0
 protected ATextWriterInstaller(
     ITextWriter ancestor,
     ITextWriterReplicatorManager replicatorManager,
     T textWriterOfT,
     DisposeAncestor disposeAncestor)
     : base(ancestor, replicatorManager, textWriterOfT, disposeAncestor)
 {
     TextWriterOfT = textWriterOfT;
 }
Example #2
0
 protected ATextWriterInstaller(
     ITextWriter ancestor,
     ITextWriterReplicatorManager replicatorManager,
     TextWriter textWriter,
     DisposeAncestor disposeAncestor)
 {
     //TODO ancestor is not set in constructor and wont be disposed, but can break existing functionality, must be analyzed!
     ReplicatorManager = replicatorManager ?? throw new ArgumentNullException(nameof(replicatorManager));
     TextWriter        = textWriter ?? throw new ArgumentNullException(nameof(textWriter));
     DisposeAncestor   = disposeAncestor;
     //TODO Virtual member call in constructor!
     Install();
 }
 public ConsoleTextWriterInstaller(ITextWriter ancestor, ITextWriterReplicatorManager replicatorManager, DisposeAncestor disposeAncestor = DisposeAncestor.No)
     : base(ancestor, replicatorManager, System.Console.Out, disposeAncestor)
 {
 }
 public TextWriterInstaller(ITextWriter ancestor, ITextWriterReplicatorManager replicatorManager, TextWriter textWriter, DisposeAncestor disposeAncestor)
     : base(ancestor, replicatorManager, textWriter, disposeAncestor)
 {
 }