I was referring to the custom rest endpoint in the sample. It's doing caching for the 10 mins, but you could just pull that code out of the sample.
What do you mean by this?
What happens if you disable caching in the REST endpoint?
Or have the rest endpoint do caching of the images instead of just the URL to the images
What happens if you disable caching in the REST endpoint? Or have the rest endpoint do caching of the images instead of just the URL to the images?
Layer[] legend = null; if (context.Cache[soapUrl] != null) legend = context.Cache[soapUrl] as Layer[]; if(legend == null) { legend = LegendGenerator.GetLegend(soapUrl); context.Cache.Insert(soapUrl, legend, null, System.Web.Caching.Cache.NoAbsoluteExpiration, TimeSpan.FromMinutes(15), System.Web.Caching.CacheItemPriority.AboveNormal, null); } if (isJson) { GenerateJson(context, legend, isPrettyJson); }
<Cleaning>sliding</Cleaning> <MaxFileAge>600</MaxFileAge>for details seehttp://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#//0093000000mq000000.htm
I have seen that from live it view ( http://silverlight.sharpgis.net/ArcGISLegend.html ) that are created image with prefix '_ags_'. Arcgis server clear this images after 10 minutes . you try see your settings cleaning mode
Have you checked in logs?
I wouldn't recommend using SOAP to ArcGIS Server. The proxy generated is enourmous, and the overhead is even bigger (no caching at all). It just doesn't scale very well. Have you looked at this approach instead: http://resources.esri.com/arcgisserver/apis/silverlight/index.cfm?fa=codeGalleryDetails&scriptID=16800
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.