|
|
@ -25,7 +25,11 @@ namespace isn
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var wrqueryHandler = new UploadFilesToServerUsingWebRequest();
|
|
|
|
var wrqueryHandler = new UploadFilesToServerUsingWebRequest();
|
|
|
|
// await wrqueryHandler.UploadFilesToServerAsync(report, new Uri(source), fi, apikey);
|
|
|
|
// await wrqueryHandler.UploadFilesToServerAsync(report, new Uri(source), fi, apikey);
|
|
|
|
if (source == null) source = Program.Settings.DefaultSource;
|
|
|
|
if (source == null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
source = Program.Settings.DefaultSource;
|
|
|
|
|
|
|
|
apikey = Program.Settings.Sources[source].ApiKey;
|
|
|
|
|
|
|
|
}
|
|
|
|
if (Program.Settings.Sources.ContainsKey(source))
|
|
|
|
if (Program.Settings.Sources.ContainsKey(source))
|
|
|
|
if (apikey is null) apikey = Program.Protector.UnProtect(Program.Settings.Sources[source].ApiKey);
|
|
|
|
if (apikey is null) apikey = Program.Protector.UnProtect(Program.Settings.Sources[source].ApiKey);
|
|
|
|
wrqueryHandler.UploadFilesToServer(report, new Uri(source), fi, apikey);
|
|
|
|
wrqueryHandler.UploadFilesToServer(report, new Uri(source), fi, apikey);
|
|
|
|