static void Main(string[] args) { Console.WriteLine("Redis_Hostname: " + EnvVar.AsString("Redis_Hostname")); Console.WriteLine("Redis_Port: " + EnvVar.AsString("Redis_Port")); Console.WriteLine("BoM_CsvFileName: " + EnvVar.AsString("BoM_CsvFileName")); var BomLoaded = new BoMServerMapping(); }
public IEnumerable <ServerMappingEntry> Get() { using (var RedisConnection = new RedisClient(EnvVar.AsString("Redis_Hostname"), EnvVar.AsInt("Redis_Port"))) { var RedisContext = RedisConnection.As <ServerMappingEntry>(); return(RedisContext.GetAll()); } }