There is a test server, but this is an intermittent issue and only shows up on the live system. I don't have a method to simulate live activity. Are you having second doubts as to whether a new MapConfiguration for each request is the solution?
A few days ago I posted the following:
One thing nearmap pointed out to me is that when there is no tile caching the tile request size to them is always 1050x1680. However, with caching the tile size requests are all of varying values, such as 1024x1536, 768x1536, 768x1280, 512x1536, and other combinations. Why do these values vary?
Nearmap also sees many requests for 256x256 and this just doesn't make sense to us.
During the initial deployment of caching I see that all the cached tiles are 256x256. What is the design consideration of having cached tile sizes all 256x256 pixels? This seems inefficient when the client size is 1050x1680.
Even after setting TileMatrix.TileHeight=1050 and TileMatrix.TileWidth=1680 the cached tiles were still 256x256. How do we get the tiles sizes to be 1050x1680 with caching?
Here's another concerning thing I've noticed -- for just one map extent a bit less then 1050x1680 results in eight tile cache directories being created with each directory containing twelve 256x256 pixel tiles. This seems odd to me that there are that many directories/files created for just one map extent. Below are examples.
I've experimented with implementing a DeepCopy. Below is code that I am using. It appears to work, but events are not copied. I lose the SendingWebRequest and SentWebRequest events. I can easily add code to set those after the DeepCopy. My question for you is does MapSuite have any events that it sets in MapConfiguration? I want to make sure I'm not losing those.
Can you speak to the above as these have to be considered before caching is deployed?
public static T DeepCopy<T>(T obj)
T result = default(T);
using (var memoryStream = new MemoryStream())
var formatter = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter();
result = (T)formatter.Deserialize(memoryStream);