🚀 Welcome to MDriven Learn –  Don’t miss the latest Release Notes.
SysSingleton optional properties

See also: SysSingleton GetSystemUrl

Turnkey now checks for filled SysSingleton properties if found (in StreamingApp_API_Base Open). We strongly suggest you have these as non-persistent to get the desired per-user-session result:

  • SysSingleton.ClientIp:String?, Transient - if found, Turnkey will fill it in with ClientIp.
  • SysSingleton.SystemType:String?, Transient - if found, Turnkey will fill it in with TurnkeyNetFramework or TurnkeyNetCore.
  • SysSingleton.UserAgent:String?, Transient - if found, Turnkey will fill it in with the User-agent from the client.
  • From 2023-10-17, we call a method OnCurrentUserChanged if found on SysSingleton whenever the CurrentUser is set or nulled out. This happens when a user logs in or out. For MVC, it happens on postback.

See also: SHA512ComputeHash,_SHA256ComputeHash_and_BitConverterToString