Ejemplo n.º 1
0
 public DirectiveRunner(IDeploymentDiagnostics diagnostics, IEnumerable <IDeployer <T> > deployers, IEnumerable <IInitializer <T> > initializers, IEnumerable <IFinalizer <T> > finalizers)
 {
     _diagnostics  = diagnostics;
     _deployers    = deployers;
     _initializers = initializers;
     _finalizers   = finalizers;
 }
Ejemplo n.º 2
0
        private void WriteToFile(IDeploymentDiagnostics diagnostics)
        {
            var path = Path.GetFullPath("run.log");
            File.Delete(path);

            Console.WriteLine(path);
            //diagnostics.ForEach(log=>
            //{
            //    File.AppendAllText(path, log.Description);
            //    File.AppendAllText(path, log.FullTraceText());
            //    File.AppendAllText(path, System.Environment.NewLine);
            //});
        }
Ejemplo n.º 3
0
        private void WriteToFile(IDeploymentDiagnostics diagnostics)
        {
            var path = Path.GetFullPath("run.log");

            File.Delete(path);

            Console.WriteLine(path);
            //diagnostics.ForEach(log=>
            //{
            //    File.AppendAllText(path, log.Description);
            //    File.AppendAllText(path, log.FullTraceText());
            //    File.AppendAllText(path, System.Environment.NewLine);
            //});
        }
Ejemplo n.º 4
0
 public DiagnosticsReporter(IDeploymentDiagnostics diagnostics)
 {
     _diagnostics = diagnostics;
 }
Ejemplo n.º 5
0
 public DeploymentController(IProfileReader reader, IDeploymentDiagnostics diagnostics, IDirectiveRunnerFactory factory)
 {
     _reader = reader;
     _diagnostics = diagnostics;
     _factory = factory;
 }
Ejemplo n.º 6
0
 public DeploymentController(IProfileReader reader, IDeploymentDiagnostics diagnostics, IDirectiveRunnerFactory factory)
 {
     _reader      = reader;
     _diagnostics = diagnostics;
     _factory     = factory;
 }