Skip to main content

AppSettingsUtils

Assembly: ServiceStack.dll
View Source
Declaration
public static class AppSettingsUtils

Methods

GetRequiredString(IAppSettings, String)

View Source
Declaration
public static string GetRequiredString(this IAppSettings settings, string name)
Returns

System.String

Parameters
TypeName
ServiceStack.Configuration.IAppSettingssettings
System.Stringname

GetNullableString(IAppSettings, String)

View Source
Declaration
public static string GetNullableString(this IAppSettings settings, string name)
Returns

System.String

Parameters
TypeName
ServiceStack.Configuration.IAppSettingssettings
System.Stringname

GetConnectionString(IAppSettings, String)

View Source
Declaration
public static string GetConnectionString(this IAppSettings appSettings, string name)
Returns

System.String

Parameters
TypeName
ServiceStack.Configuration.IAppSettingsappSettings
System.Stringname

GetUserAppSettingsPath(String)

User app.settings for Sharp App

View Source
Declaration
public static string GetUserAppSettingsPath(string appName)
Returns

System.String

Parameters
TypeName
System.StringappName

SaveAppSetting(String, String, String)

View Source
Declaration
public static void SaveAppSetting(string appSettingsPath, string name, string value)
Parameters
TypeName
System.StringappSettingsPath
System.Stringname
System.Stringvalue