public ABaseController(IConfiguration config, IDbSettingsReader settings, ILogger logger) : base() { this.Settings = settings; this.Config = config; this.Views = new ViewNames(); this.Logger = logger; this.Controllers = new ControllerNames { DashboardController = Settings.GetAppDashboardControllerName(), MyProfileController = Settings.GetAppMyProfileControllerName(), AccountController = Settings.GetAccountControllerName(), UninstallController = Settings.GetAppUninstallControllerName() }; this.VersionInfo = new Versions() { AppVersion = settings.GetAppVersion(), FrameWorkVersion = AppSettingsAccessor.GetFrameWorkBuildNumber(), DataSeederFrameworkVersion = Settings.GetDataSeederFrameworkVersion() }; }
/// <summary> /// Gets the application uninstall web hook URL. /// </summary> /// <param name="settings">The settings.</param> /// <param name="userId">The user identifier.</param> /// <returns></returns> public static string GetAppUninstallWebHookUrl(IDbSettingsReader settings, string userId) => GetAppUninstallWebHookUrl($"{settings.GetAppBaseUrl()}/{settings.GetAppUninstallControllerName()}/{UNINSTALL_ACTIONS.AppUninstalled}", userId);