public static DownloadFileResult DownloadFile(string internalName)
        {
            List <string> links;

            byte[]        torrent;
            List <string> dependencies;
            ResourceType  resourceType;
            string        torrentFileName;
            var           ok = ResourceLinkProvider.GetLinksAndTorrent(internalName,
                                                                       out links,
                                                                       out torrent,
                                                                       out dependencies,
                                                                       out resourceType,
                                                                       out torrentFileName);

            if (ok)
            {
                return(new DownloadFileResult()
                {
                    links = links,
                    torrent = torrent,
                    dependencies = dependencies,
                    resourceType = resourceType,
                    torrentFileName = torrentFileName,
                });
            }
            return(null);
        }
 public static bool DownloadFile(string internalName,
                                 out List <string> links,
                                 out byte[] torrent,
                                 out List <string> dependencies,
                                 out ResourceType resourceType,
                                 out string torrentFileName)
 {
     return(ResourceLinkProvider.GetLinksAndTorrent(internalName,
                                                    out links,
                                                    out torrent,
                                                    out dependencies,
                                                    out resourceType,
                                                    out torrentFileName));
 }