if (Startup.EnvVar == "true")
{
List<ClientViewModelNew> idChecksList = new List<ClientViewModelNew>();
}
else
{
List<ClientViewModelOld> idChecksList = new List<ClientViewModelOld>();
}
List<IClientViewModel> idChecksList = new List<IClientViewModel>();
List<ClientViewModelNew> mappedClientsNew = new List<ClientViewModelNew>();
List<ClientViewModelOld> mappedClientsOld = new List<ClientViewModelOld>();
var obj1 = new ClientViewModelNew();
var obj2 = new ClientViewModelOld();
// Console.WriteLine(obj1.EXa);
mappedClientsNew.Add(obj1);
mappedClientsOld.Add(obj2);
bool useNewClientObject = true;
if (useNewClientObject == true)
{
foreach (ClientViewModelNewWrapper item in mappedClientsNew) // Suspicious cast: there is no type in the solution
// which is inherited from both 'ConsoleApp1.ClientViewModelNew' and 'ConsoleApp1.IClientViewModel'
{
idChecksList.Add(item);
}
}
else
{
foreach (ClientViewModelOldWrapper item in mappedClientsOld) // Cannot convert element type
// 'ConsoleApp1.ClientViewModelOld' to iterator type 'ConsoleApp1.ClientViewModelOldWrapper'
{
idChecksList.Add(item);
}
}
List<dynamic> idChecksList = new List<dynamic>();
List<ClientViewModelNew> mappedClientsNew = new List<ClientViewModelNew>();
List<ClientViewModelOld> mappedClientsOld = new List<ClientViewModelOld>();
var obj1 = new ClientViewModelNew();
var obj2 = new ClientViewModelOld();
// Console.WriteLine(obj1.EXa);
mappedClientsNew.Add(obj1);
mappedClientsOld.Add(obj2);
bool useNewClientObject = true;
if (useNewClientObject == true)
{
foreach (ClientViewModelNew item in mappedClientsNew)
{
idChecksList.Add(item);
}
}
else
{
foreach (ClientViewModelOld item in mappedClientsOld)
{
idChecksList.Add(item);
}
}
1. Нет соответствующей днс записи
2. Localhost - какой. Каждый контейнер сам себя считает localhost, также как и машина на которой все контейнеры и работают
копай отсюда
https://stackoverflow.com/questions/42175951/how-t...
https://stackoverflow.com/questions/31149501/how-t...