/// <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); }
/// <summary> /// Initializes an instance of the <seealso cref="EnablePortStepViewModel"/> class. /// </summary> /// <param name="content">The associated user control.</param> /// <param name="port">The port to open.</param> /// <param name="context">The <seealso cref="AttachDebuggerContext"/> object.</param> public EnablePortStepViewModel( EnablePortStepContent content, AttachDebuggerFirewallPort port, AttachDebuggerContext context) : base(context) { Content = content; _port = port; SetStage(Stage.Init); EnablePortHelpLinkCommand = new ProtectedCommand(() => Process.Start(EnablePortHelpLink)); }
private EnablePowerShellPortStepViewModel(EnablePortStepContent content, AttachDebuggerContext context) : base(content, context.RemotePowerShellPort, context) { }
private EnableDebuggerPortStepViewModel(EnablePortStepContent content, AttachDebuggerContext context) : base(content, context.DebuggerPort, context) { }