private void PrepareData(DownloadWizardArgs args) { try { var links = this.GetLinks(args); args.Links = links; } catch (Exception ex) { Log.Error(ex, string.Format("Error while preparing data")); } }
private void PrepareData(DownloadWizardArgs args) { try { var links = this.GetLinks(args); args.Links = links; } catch (Exception ex) { Log.Error(ex, "Error while preparing data"); } }
private ReadOnlyCollection<Uri> GetLinks(DownloadWizardArgs args) { return new ReadOnlyCollection<Uri>(args.Products.Select(product => product.Value).ToArray()); }
private ReadOnlyCollection <Uri> GetLinks(DownloadWizardArgs args) { return(new ReadOnlyCollection <Uri>(args.Products.Select(product => product.Value).ToArray())); }