Class SystemHelper
System operations.
public static class SystemHelper
- Inheritance
-
objectSystemHelper
Properties
ApplicationGuid
Gets application GUID from application configuration file.
[Obsolete("Property was not intended for public use and will be removed.")]
[ObsoleteSince(29, 6)]
public static Guid ApplicationGuid { get; }
Property Value
- Guid
Remarks
Application configuration file must contain a value for key CMS.Helpers.SystemHelper.APP_GUID_KEY_NAME which is different from System.Guid.Empty.
Exceptions
- InvalidOperationException
Thrown when the application configuration file does not specify a value for key CMS.Helpers.SystemHelper.APP_GUID_KEY_NAME.
ApplicationName
Gets application name from application configuration file.
[Obsolete("Property was not intended for public use and will be removed.")]
[ObsoleteSince(29, 6)]
public static string ApplicationName { get; }
Property Value
- string
Remarks
Application configuration file must contain a value for key CMS.Helpers.SystemHelper.APP_NAME_KEY_NAME. If CMS.Helpers.SystemHelper.APP_NAME_KEY_NAME is missing, a fallback to ApplicationGuid is performed.
Exceptions
- InvalidOperationException
Thrown when the application configuration file does not specify value for any key of CMS.Helpers.SystemHelper.APP_NAME_KEY_NAME and CMS.Helpers.SystemHelper.APP_GUID_KEY_NAME.
RestartApplicationIfInitFails
Indicates if application restart should occur after application initialization fails.
[Obsolete("Property was not intended for public use and will be removed.")]
[ObsoleteSince(29, 6)]
public static bool RestartApplicationIfInitFails { get; set; }
Property Value
- bool
Methods
RestartApplication()
Tries to restart application and returns if restart was successful.
public static bool RestartApplication()
Returns
- bool