/// <summary> /// Returns key from config file /// </summary> /// <param name="input">VetumaKeys enum value</param> /// <returns>Key value from config file</returns> public string GetConfigKey(VetumaKeys input) { return ConfigurationManager.AppSettings[input.ToString()]; }
/// <summary> /// Returns key from config file as Uri /// </summary> /// <param name="input">VetumaKeys enum value</param> /// <returns>Uri object</returns> public Uri GetConfigUriKey(VetumaKeys input) { return new Uri(ConfigurationManager.AppSettings[input.ToString()]); }
/// <summary> /// Formats Vetuma config key to char array, return first 15 items as string /// </summary> /// <param name="key">VetumaKeys value</param> /// <returns>VetumaKeys first 15 chars as string</returns> public static string GetVetumaFormat(VetumaKeys key) { var keystr = key.ToString().ToCharArray(0, 15); return new string(keystr); }