Miner.Responder.WindowsService Assembly > Miner.Responder.WindowsService Namespace > ServiceSettings Class : Load Method |
'Declaration Public Shared Function Load() As ServiceSettings
'Usage Dim value As ServiceSettings value = ServiceSettings.Load()
public static ServiceSettings Load()
There are potentially two files that contain the service settings. (1) the app.config and (2) the dynamically saved settings in the documents and settings folder. There are two files because we cannot rely on having permissions to write to the app.config file.
The user can change settings via the webpages to change settings - these are saved to the documents and settings folder.
The user can edit the app.config directly (these are *not* picked up during runtime).
The saved settings will also record a hash value of the original settings in order to determine if the original settings have changed. We do not use the modified/write stamp of the file since this changes everytime we build. If the hash value is different then we always default to using the app.config settings - otherwise we default to using the saved settings.
Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)
Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.