Here's my code:
var table = await ServiceFeatureTable.OpenAsync(new Uri(AGOL_URL_Class.GetURL() + LayerID), null, null);
table.Where = Where;
table.OutFields = Fields;
var selected = await table.QueryAsync(Current_OBJECTID);
Its just like all the samples and it gets stuck almost all the time at QueryAsync
It just turns null after 60 sections then the code continues.
Can you provide more information on this case since this shouldn't not happen. If you can create a simple reproducer and attach to the thread, I'll give a look for it and see what's going on.
I'll email the sample project to you, it has secured layers in it. I was wrong about it not working while loading other layers, it just doesn't work sometimes. its super annoying!!!