Inheritance: IDisposable, ISampleCache
        public override bool Execute(DocInput input)
        {
            var settings = input.ToSettings();

            using (var project = new DocProject(settings))
            {
                using (var server = project.LaunchRunner())
                {
                    ProcessLauncher.GotoUrl(project.BaseAddress);


                    tellUsersWhatToDo(project.BaseAddress);
                    ConsoleKeyInfo key = Console.ReadKey();
                    while (key.Key != ConsoleKey.Q)
                    {
                        Console.WriteLine();
                        Console.WriteLine("Shutting down the Storyteller documentation preview runner....");
                        Console.WriteLine();
                    }
                }
            }

            return(true);
        }
Ejemplo n.º 2
0
 public TopicFileWatcher(DocSettings settings, DocProject project)
 {
     _settings = settings;
     _project = project;
 }
        public void TheUrlResolutionIs(UrlStyle style)
        {
            _settings.UrlStyle = style;

            _project = new DocProject(_settings);
        }
 public TopicFileWatcher(DocSettings settings, DocProject project)
 {
     _settings = settings;
     _project  = project;
 }