Construct() private method

private Construct ( DownloadOperation op = null ) : Task
op Windows.Networking.BackgroundTransfer.DownloadOperation
return Task
Ejemplo n.º 1
0
 public static async Task<DownloadItem> Create(DownloadOperation op)
 {
     DownloadItem item = new DownloadItem();
     item.Downloader = new BackgroundDownloader();
     item.Url = op.RequestedUri.OriginalString;
     await item.Construct(op);
     return item;
 }
Ejemplo n.º 2
0
 public static async Task<DownloadItem> Create(BackgroundDownloader b, string url)
 {
     DownloadItem item = new DownloadItem();
     item.Downloader = b;
     item.Url = url;
     await item.Construct();   
     return item;
 }
Ejemplo n.º 3
0
        public static async Task <DownloadItem> Create(DownloadOperation op)
        {
            DownloadItem item = new DownloadItem();

            item.Downloader = new BackgroundDownloader();
            item.Url        = op.RequestedUri.OriginalString;
            await item.Construct(op);

            return(item);
        }
Ejemplo n.º 4
0
        public static async Task <DownloadItem> Create(BackgroundDownloader b, string url)
        {
            DownloadItem item = new DownloadItem();

            item.Downloader = b;
            item.Url        = url;
            await item.Construct();

            return(item);
        }