ArcGIS Runtime SyncGeodatabaseJob超时

时间:2018-09-23 11:15:30

标签: .net runtime arcgis

我使用ArcGIS Runtime Sdk for .Net编辑数据。我从门户脱机数据,并且在编辑数据后,将编辑同步到门户,

// I use 768px just for sample purpose

@media all and (min-width : 768px) {
    div.footban {
        flex-direction: column;
    }
}        

进度太慢了,并得到一个例外:

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();

有什么方法可以设置超时时间?

0 个答案:

没有答案