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