Dotnet version upgrade
This commit is contained in:
@@ -1,23 +1,17 @@
|
||||
using System.Net.WebSockets;
|
||||
using System.Text;
|
||||
using Newtonsoft.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace MauMau_Server.Websockets;
|
||||
|
||||
public class ConnectionInstance
|
||||
public class ConnectionInstance(string name, Guid id, WebSocket socket)
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public Guid Id { get; set; } = id;
|
||||
public string Name { get; set; } = name;
|
||||
|
||||
[JsonIgnore]
|
||||
public WebSocket Socket { get; set; }
|
||||
|
||||
public ConnectionInstance(string name, Guid id, WebSocket socket)
|
||||
{
|
||||
Name = name;
|
||||
Id = id;
|
||||
Socket = socket;
|
||||
}
|
||||
|
||||
public WebSocket Socket { get; set; } = socket;
|
||||
|
||||
/**
|
||||
* <summary>
|
||||
* Sends a message to the client. This method is asynchronous and formats the message to be ready to be sent.
|
||||
|
||||
Reference in New Issue
Block a user