It seems strange to me to use context.Server.MapPatheach time only to determine the physical location of any known directory / file in the app_data folder. I have an understanding that after starting the application it should not be possible to change your physical location without disconnecting it first. If so, I can cache the physical path app_data on application_start and use the cache value for its runtime!
I need expert opinion on this. Is my assumption correct? there is no way to change the physical path of the application without restarting, right?
If so, it will save me time to include context as a parameter in every odd method!
The clarity of the method interface is most important to me, and <context> just doesn't fit into that.
By the way, I use shared hosting, so I have no control over the physical placement of the application. Does it matter?
source
share