Fix all of the nullable issues
This commit is contained in:
1 parent
9d97ad0975
commit
30feb15821
13 files changed
+58
-53
No files matched your search
@@ -22,6 +22,9 @@ namespace Mistox.Server {
|
||||
public MistoxServer(IPEndPoint ListenerAddress, string serverName) {
|
||||
ServerName = serverName;
|
||||
Listener = new ServerListener(ListenerAddress, this);
|
||||
onUserConnected += (_) => {};
|
||||
onDataReceived += (_, _) => {};
|
||||
onUserDisconnected += (_) => {};
|
||||
Console.WriteLine( "The Server is initilized and waiting for clients to connect at port : " + ListenerAddress.Port );
|
||||
}
|
||||
|
||||
@@ -80,7 +83,7 @@ namespace Mistox.Server {
|
||||
|
||||
public event Action<ServerConnection, object> onDataReceived;
|
||||
public void InvokeDataReceived( ServerConnection user, dynamic data ){
|
||||
switch (data) {
|
||||
switch (data) {
|
||||
case UserAuthPacket packet when !user.IsAuthenticated:
|
||||
_ = RunAsync(async () => {
|
||||
await ProcessAuthRequest(user, packet);
|
||||
|
||||
Reference in new issue
Block a user