Select to view content in your preferred language

SyncGeodatabaseJob Timeout

545
0
09-23-2018 04:09 AM
亚张
by
New Contributor

I offline data from my portal,and after edit data,I sync the edits to portal,

var _gdbsyncTask = await GeodatabaseSyncTask.CreateAsync(new Uri(url), tokenRequest);

var parameters = await _gdbsyncTask.CreateDefaultSyncGeodatabaseParametersAsync(gdb, SyncDirection.Upload);
parameters.LayerOptions.Add(new SyncLayerOption(0));

var job = _gdbsyncTask.SyncGeodatabase(parameters, gdb);
job.ProgressChanged += (s, ef) => { Debug.WriteLine(job.Progress); };
job.Start();

var result = await job.GetResultAsync();

the progress is so much slow,and get an exception:

引发的异常:“Esri.ArcGISRuntime.ArcGISRuntimeException”(位于 mscorlib.dll 中)
“Esri.ArcGISRuntime.ArcGISRuntimeException”类型的异常在 mscorlib.dll 中发生,但未在用户代码中进行处理
Illegal state: Job failed because responses have failed for more than 10 minutes.

there is some way to set timeout minutes?

Tags (1)
0 Kudos
0 Replies