logo

Obtaining basic system URL with a script

Connect the following namespaces:

using EleWise.ELMA.Runtime.Settings;
using EleWise.ELMA.Services;

You can get the basic system URL as shown below:

var str = Locator.GetServiceNotNull<CommonSettingsModule>().Settings.ApplicationBaseUrl;
Console.WriteLine(str);  // if shown in console