Beispiel #1
0
 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();
 }
Beispiel #2
0
 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());
     }
 }