|
POST
|
I did not mean ping in the literal sense of sending an ICMP request. It was just meant in a generic way, as send a request to the server and see if you get a response from the server. If you look at the code sample it shows that a standard request over 443 is being sent. The same as any request that is being sent to portal. Just it requests a very generic reply which can be checked or you can see if it times out instead of getting a reply. In my case I have this run continuously in the background. This way prior to doing any operation that requires a connection there is confirmation that a connection to the portal is available.
... View more
04-01-2022
08:35 AM
|
0
|
1
|
2268
|
|
POST
|
I basically just ping the portal and see if I get a response. I have this run in the background and it sets a flag that I check before doing something that requires a connection public override async Task<bool> CheckIsConnectedAsync()
{
try
{
var tokenUri = new Uri($"{ConnectionUrl}/sharing/rest?f=json");
HttpClient client = new HttpClient { Timeout = TimeSpan.FromSeconds(7) };
var result = await client.GetStringAsync(tokenUri);
var jsonObject = JsonConvert.DeserializeObject<Dictionary<string, object>>(result);
//just something I know is in the return json
return jsonObject.ContainsKey("currentVersion");
}
catch ( TaskCanceledException )
{
//timeout - server down
return false;
}
catch ( Exception )
{
//Can connect but server not fully up and running
return false;
}
}
... View more
03-30-2022
01:19 PM
|
1
|
3
|
2288
|
|
POST
|
I had never really looked at the ToJson() output I had just assumed it would have everything, but I see that I was the wrong in that assumption. I think the best way to do something along those lines would be to look at a mobile map package and mimic that in saving the map. The mobile map package is basically just a folder that contains everything that is in the offline map. One of the things in there is a mobile_map.mmap file which contains the json defining the entire map including layers (this is what I had assumed the ToJson output was). I am still not clear how you are initially loading a map and why that approach is not available the second time you want to load a map, as opposed to this idea of saving it. In any workflow I have used either I am using an offline map package, have all the data stored offline in a known structure, or am using an online map. I am still not really understanding why you need a separate mechanism to save/open the map vs. just using the code that originally loaded the map
... View more
03-21-2022
07:59 AM
|
0
|
0
|
1318
|
|
POST
|
I've only ever done with offline tables, but you could try to explicitly load the related tables and see if that helps var relatedTables = myFeatureTable .GetRelatedTables();
foreach (var relatedTable in relatedTables)
{
await relatedTable.LoadAsync();
}
var relatedFeaturesResult = await myFeatureTable.QueryRelatedFeaturesAsync(myFeature);
... View more
03-18-2022
12:29 PM
|
0
|
1
|
985
|
|
POST
|
A little more information about what you want to accomplish by saving the map might be helpful. A map is simply a collection of layers and the configuration of those layers. There is a Map.ToJson method which allows you to write out the definition of the Map in Json and there is a FromJson method that could rehydrate a map object with that same definition. I think that is probably what you would want if you are trying to save a Map object definition.
... View more
03-18-2022
06:32 AM
|
0
|
2
|
1349
|
|
POST
|
You can either download a new copy of the map, or open what exists on the device. If you open the offline map it would not download a new version, you have to explicitly download MobileMapPackage localMapArea = await MobileMapPackage.OpenAsync(mapPackagePath);
//assuming a single map in map package
var map = localMapArea.Maps.First();
await map.LoadAsync();
//This just makes sure all the FeatureLayers are loaded
map.OperationalLayers.ToList().ForEach(async l => await l.LoadAsync());
... View more
02-15-2022
07:39 AM
|
1
|
0
|
1577
|
|
POST
|
At this point, mostly seems annoying. I haven't noticed anything that is not functioning correct Thanks for the info
... View more
01-20-2022
07:17 AM
|
0
|
0
|
1212
|
|
POST
|
I get the following compiler warning on my iOS project with Runtime 100.13 and VS 2022. Any thoughts? Warning The referenced component 'C:\Users\..\.nuget\packages\esri.arcgisruntime.runtimes.ios\100.13.0\buildTransitive\Xamarin.iOS10\..\..\framework\ios-arm64\native\ArcGIS-arm64.framework' could not be found.
... View more
01-19-2022
03:47 PM
|
0
|
2
|
1247
|
|
IDEA
|
What would be really nice to better support applications using external GPS units would be an ability to input information about an NTRIP server so that corrections could be done within an application instead of requiring a separate application be running to do the corrections Thanks
... View more
01-05-2022
10:01 AM
|
2
|
2
|
1959
|
|
POST
|
I rebuilt the Asset Package from the Network geodatabase and got things to work.
... View more
12-23-2021
10:02 AM
|
0
|
0
|
1697
|
|
IDEA
|
+1 I am setting up Utility network, and it seems I need to add each table individually. How is there not a way to do this on a group table selection? Or am I completely missing something
... View more
12-23-2021
09:03 AM
|
0
|
0
|
4296
|
|
POST
|
I downloaded the version 2.0 Gas and Pipeline Referencing Utility Network Foundation and am having issues building the Structure network. I have gone through a couple times and encountered the same issue. Any thoughts on the issue and how to resolve? Thanks - Joe Below is setup and errors.
... View more
12-22-2021
07:54 AM
|
0
|
1
|
1731
|
|
POST
|
@sapnas thank you very much. This is exactly what I needed, everything came in correct. Seems to me this is buried kind of deep in the file, but guess that is how CloudFormation works.
... View more
12-19-2021
08:01 AM
|
0
|
0
|
3798
|
|
POST
|
Thanks. What I see in the chef logs, is that the condition that the template check does was not working either. I am running now, but according to the log I can only use a '.' My password had an @ in it which seems to have failed in creating site. I will see what happens this run
... View more
12-17-2021
08:31 AM
|
0
|
2
|
10977
|
|
POST
|
After finally keeping resources, and checking the logs it seems this failure os due to: The 'password' field can only have the numbers 0-9, the ASCII letters a-z, A-Z and the dot character (.) Couple things here, This is not validated when kicking off the CloudFormation. Portal does not require these conditions, why is it required during the running of this chef script?
... View more
12-17-2021
08:07 AM
|
1
|
1
|
996
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-11-2026 09:07 AM | |
| 1 | 10-23-2025 12:16 PM | |
| 1 | 10-19-2022 01:08 PM | |
| 1 | 09-03-2025 09:25 AM | |
| 1 | 04-16-2025 12:37 PM |
| Online Status |
Offline
|
| Date Last Visited |
Tuesday
|