コード例 #1
0
        static void TestUpload()
        {
            WebDavManager manager = new WebDavManager("admin", "admin", "http://192.168.10.242", "/owncloud/remote.php/webdav/KV/");

            manager.SucceededHandler = (sender, e) => { Console.WriteLine("Upload Success"); };
            manager.FailedHandler    = (sender, e) => { Console.WriteLine("Upload Failed"); };
            manager.Upload("/", "fxx2", "C:/workspace/KFC.txt");
        }
コード例 #2
0
        static void TestLink()
        {
            WebDavManager manager = new WebDavManager("admin", "admin", "http://192.168.10.242", "/owncloud/remote.php/webdav/KV/");

            manager.SucceededHandler = (sender, e) => { Console.WriteLine("Link Success"); };
            manager.FailedHandler    = (sender, e) => { Console.WriteLine("Link Failed"); };
            manager.CheckLink();
        }
コード例 #3
0
 public WebDavProcess(string user, string mUser, string mPassword, string server, string root)
 {
     m_sUser = user;
     for (int i = 0; i < m_sFolders.Length; i++)
     {
         m_sFolders[i] = "/" + user + m_sFolders[i];
     }
     iStatus    = StatusCode.EMPTY;
     m_wManager = new WebDavManager(mUser, mPassword, server, root);
 }