2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-05-06 03:32:57 +00:00
This commit is contained in:
Ahmed Zamil 2024-07-03 15:15:42 +03:00
parent 4d813bcf3d
commit cd7063ceb4
2 changed files with 13 additions and 15 deletions

View File

@ -124,28 +124,25 @@ public abstract class NetworkServer<TConnection> : IDestructible where TConnecti
//Console.WriteLine("New Socket ... " + DateTime.Now); //Console.WriteLine("New Socket ... " + DateTime.Now);
var c = new TConnection(); var c = new TConnection();
//c.OnClose += ClientDisconnectedEventReceiver;
c.Assign(s);
Add(c);
//Connections.Add(c);
try c.Assign(s);
Add(c);
try
{ {
//ClientConnected(c); ClientConnected(c);
ClientConnected(c); }
//NetworkConnect(c);
}
catch catch
{ {
// something wrong with the child. // something wrong with the child.
} }
s.Begin(); s.Begin();
// Accept more // Accept more
//listener.Accept().Then(NewConnection); //listener.Accept().Then(NewConnection);
} }
catch (Exception ex) catch (Exception ex)
{ {
Console.WriteLine(ex); Console.WriteLine(ex);

View File

@ -1,2 +1,3 @@
1- Scan assembly for child classes 1- Scan assembly for child classes
2- Auto reconnect id 2- Auto reconnect id
3- ResourceTrigger.PopulateDate (after ef data setting)