Class WebServerHelper
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
Collection of static methods related to the web server that allows it to be used by other projects without referencing CheckmateServer.
public static class WebServerHelper
- Inheritance
-
WebServerHelper
- Inherited Members
Fields
DefaultSessionExpiryDays
Default session expiry interval in days.
public const int DefaultSessionExpiryDays = 14
Field Value
Methods
GetPreferableFormat(string)
Returns preferable response type (json, html).
public static string GetPreferableFormat(string acceptFormat)
Parameters
acceptFormatstringAccept http header value.
Returns
- string
prefered format
WrapMyGeotabScript(string, FileInfo, string)
On request of a JS file, this wraps the file contents to enable import/export statement handling.
public static string WrapMyGeotabScript(string fileContent, FileInfo fileInfo, string className)
Parameters
fileContentstringThe entire file body contents.
fileInfoFileInfoFile information.
classNamestringThe "geotab" class name representing this file.
Returns
- string
wrapped script