public void RunCommand(string server, string vault, string username, string password, double size)
{
SecurityService secSrv = new SecurityService();
secSrv.SecurityHeaderValue = new VaultFileSize.Security.SecurityHeader();
secSrv.Url = "http://" + server + "/AutodeskDM/Services/SecurityService.asmx";
try
{
secSrv.SignIn(username, password, vault);
DocumentService docSrv = new DocumentService();
docSrv.SecurityHeaderValue = new VaultFileSize.Document.SecurityHeader();
docSrv.SecurityHeaderValue.UserId = secSrv.SecurityHeaderValue.UserId;
docSrv.SecurityHeaderValue.Ticket = secSrv.SecurityHeaderValue.Ticket;
docSrv.Url = "http://" + server + "/AutodeskDM/Services/DocumentService.asmx";
Folder root = docSrv.GetFolderRoot();
PrintFilesInFolder(root, docSrv, size);
}
catch (Exception ex)
{
Console.WriteLine("Error: " + ex.ToString());
return;
}
}