/// <summary> /// Initialize the session with a given server /// </summary> /// <param name="server">TCP server</param> public TcpSessionBase(TcpServerBase server) { Id = Guid.NewGuid(); Server = server; OptionReceiveBufferSize = server.OptionReceiveBufferSize; OptionSendBufferSize = server.OptionSendBufferSize; }
public MessageSession( TcpServerBase server, ITextMessageService messageService, ILogger <TcpHostedService> logger, IFileLogger fileLogger) : base(server) { _logger = logger; _fileLogger = fileLogger; _messageService = messageService; }