Inheritance: AuthenticationInfo
 public SSHCommand(string command, string args, SSHAuthenticationInfo auth_info) :
     base(Path.Combine(SSHPath, command), args)
 {
 }
示例#2
0
        public BaseController ()
        {
            string app_data_path = Environment.GetFolderPath (Environment.SpecialFolder.ApplicationData);

            if (InstallationInfo.OperatingSystem != OS.Windows && InstallationInfo.OperatingSystem != OS.Mac)
                app_data_path = Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.Personal), ".config");

            string config_path = Path.Combine (app_data_path, "org.sparkleshare.SparkleShare");
            
            Config = new Configuration (config_path, "projects.xml");
            Configuration.DefaultConfiguration = Config;

            UserAuthenticationInfo = new SSHAuthenticationInfo ();
            SSHAuthenticationInfo.DefaultAuthenticationInfo = UserAuthenticationInfo;

            FoldersPath = Config.FoldersPath;
        }