Пример #1
0
        static void TestPublisher()
        {
            var client = new PublishingWebService(new ConsoleOutput(),
                "http://wurmassistant.aldurslab.net",
                "api/WurmAssistant3/",
                "*****@*****.**",
                "placeholder");

            client.Authenticate();
            client.GetLatestVersion("Stable");
            var info = new FileInfo("pak.dat");
            File.WriteAllText(info.FullName, "test");
            client.Publish(info, new Version(0, 0, 0, 1), "Stable");
        }