예제 #1
0
 /// <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;
 }
예제 #2
0
 public MessageSession(
     TcpServerBase server,
     ITextMessageService messageService,
     ILogger <TcpHostedService> logger,
     IFileLogger fileLogger) : base(server)
 {
     _logger         = logger;
     _fileLogger     = fileLogger;
     _messageService = messageService;
 }