leave network test messages in the network so we can retrieve them later.
This commit is contained in:
parent
2e77354c05
commit
765eee55d4
@ -1779,7 +1779,6 @@ namespace EduNetworkBuilder
|
|||||||
{
|
{
|
||||||
Console.WriteLine(one);
|
Console.WriteLine(one);
|
||||||
}
|
}
|
||||||
myMessages.Clear();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -1791,12 +1790,11 @@ namespace EduNetworkBuilder
|
|||||||
bool HadIssues = false;
|
bool HadIssues = false;
|
||||||
NB.RegisterInvisibleNetwork(this);
|
NB.RegisterInvisibleNetwork(this);
|
||||||
DoAllMarkAsLinked();
|
DoAllMarkAsLinked();
|
||||||
|
myMessages.Clear(); //Erase any old messages we might have
|
||||||
|
|
||||||
//do dhcp request on everything.
|
//do dhcp request on everything.
|
||||||
DoAllDHCP();
|
DoAllDHCP();
|
||||||
NonVisualProcessPacketsOnce(); //loop until we "timeout" or all packets are done.
|
NonVisualProcessPacketsOnce(); //loop until we "timeout" or all packets are done.
|
||||||
DumpInvisibleNetMessages();
|
|
||||||
|
|
||||||
foreach (NetTest NT in NetTests)
|
foreach (NetTest NT in NetTests)
|
||||||
{
|
{
|
||||||
@ -1834,15 +1832,19 @@ namespace EduNetworkBuilder
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
NonVisualProcessPacketsOnce(); //loop until we "timeout" or all packets are done.
|
NonVisualProcessPacketsOnce(); //loop until we "timeout" or all packets are done.
|
||||||
DumpInvisibleNetMessages();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (NetTest NT in NetTests)
|
foreach (NetTest NT in NetTests)
|
||||||
{
|
{
|
||||||
//Here we test it.
|
//Here we test it.
|
||||||
bool WasComplete = NT.TestComplete(this);
|
bool WasComplete = NT.TestComplete(this);
|
||||||
Console.WriteLine(NT.GetDescription(NetTestVerbosity.full) + " done: " + WasComplete.ToString());
|
string tMessage = NT.GetDescription(NetTestVerbosity.full) + " done: " + WasComplete.ToString();
|
||||||
|
//Console.WriteLine(NT.GetDescription(NetTestVerbosity.full) + " done: " + WasComplete.ToString());
|
||||||
|
AddMessage(new PacketMessage("NetTest", tMessage));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DumpInvisibleNetMessages();
|
||||||
|
|
||||||
NB.UnregisterInvisibleNetwork();
|
NB.UnregisterInvisibleNetwork();
|
||||||
|
|
||||||
if(HadIssues)
|
if(HadIssues)
|
||||||
|
@ -40,6 +40,14 @@ namespace EduNetworkBuilder
|
|||||||
set { if (!Finished) _Status = value; }
|
set { if (!Finished) _Status = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public PacketMessage() { }
|
||||||
|
public PacketMessage(string Host, string OneMessage)
|
||||||
|
{
|
||||||
|
DebugMessage DM = new DebugMessage(DebugLevel.info, Host, OneMessage);
|
||||||
|
Status = OneMessage;
|
||||||
|
Messages.Add(DM);
|
||||||
|
}
|
||||||
|
|
||||||
public static T Clone<T>(T source)
|
public static T Clone<T>(T source)
|
||||||
{
|
{
|
||||||
if (!typeof(T).IsSerializable)
|
if (!typeof(T).IsSerializable)
|
||||||
|
Loading…
Reference in New Issue
Block a user