/// <summary>
        /// Create the the step that enables Visual Studio remote debugging tool port.
        /// </summary>
        public static EnablePowerShellPortStepViewModel CreateStep(AttachDebuggerContext context)
        {
            var content = new EnablePortStepContent();
            var step    = new EnablePowerShellPortStepViewModel(content, context);

            content.DataContext = step;
            return(step);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// If it connects to remote debugger tool successfully, go to ListProcess step.
 /// Otherwise go to enalbe remote powershell port step that later it goes to install, start remote tool step.
 /// </summary>
 protected override async Task <IAttachDebuggerStep> GetNextStep()
 {
     SetStage(Stage.CheckingConnectivity);
     if (!(await Context.DebuggerPort.ConnectivityTest(CancelToken)))
     {
         return(EnablePowerShellPortStepViewModel.CreateStep(Context));
     }
     else
     {
         return(ListProcessStepViewModel.CreateStep(Context));
     }
 }