public async Task SetInfo(CWebShellInfo info)
 {
     m_pWebShellInfo = info;
     m_pShellControl = WebShellControlFactory.Create(m_pWebShellInfo.Type);
     m_pShellControl.SetInfo(m_pWebShellInfo.Url, m_pWebShellInfo.Password, Encoding.GetEncoding(m_pWebShellInfo.Encoding), CShellTransmissionEncryptAndDecryptFactory.Create("base64"));
     try
     {
         await QueryVolumes();
     }
     catch (Exception e)
     {
         await new MessageDialog(e.Message).ShowAsync();
     }
 }
Exemple #2
0
        public static IWebShellControl Create(WebShellType type)
        {
            IWebShellControl ret = null;

            switch (type)
            {
            case WebShellType.PHP5:
                ret = new CWebShellPHP5();
                break;

            case WebShellType.PHP7:
                break;

            case WebShellType.ASPX:
                break;

            case WebShellType.ASP:
                break;

            default:
                break;
            }
            return(ret);
        }