You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.3 KiB
69 lines
1.3 KiB
using System.Configuration;
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace EasyBL.WebApi.Common
|
|
{
|
|
public class WebSettingsConfig
|
|
{
|
|
public static string UrlExpireTime
|
|
{
|
|
get
|
|
{
|
|
return AppSettingValue();
|
|
}
|
|
}
|
|
|
|
public static string TokenApi
|
|
{
|
|
get
|
|
{
|
|
return AppSettingValue();
|
|
}
|
|
}
|
|
|
|
public static string GetApi
|
|
{
|
|
get
|
|
{
|
|
return AppSettingValue();
|
|
}
|
|
}
|
|
|
|
public static string OrgId
|
|
{
|
|
get
|
|
{
|
|
return AppSettingValue();
|
|
}
|
|
}
|
|
|
|
public static string UserId
|
|
{
|
|
get
|
|
{
|
|
return AppSettingValue();
|
|
}
|
|
}
|
|
|
|
public static string PassWd
|
|
{
|
|
get
|
|
{
|
|
return AppSettingValue();
|
|
}
|
|
}
|
|
|
|
public static string ExpireTime
|
|
{
|
|
get
|
|
{
|
|
return AppSettingValue();
|
|
}
|
|
}
|
|
|
|
private static string AppSettingValue([CallerMemberName] string key = null)
|
|
{
|
|
return ConfigurationManager.AppSettings[key];
|
|
}
|
|
}
|
|
}
|