public RequestReciever(TcpServer server, RsaCrpyter asymetricCrypter, IAuthenticator authenticator, IAuthorizator authorizator) { this.server = server; this.asymetricCrypter = asymetricCrypter; this.authenticator = authenticator; this.authorizator = authorizator; this.sessions = new SessionManager(); this.formatter = new NetFormatter(); server.ClientEstablishing += Server_ClientEstablishing; server.DataRecieved += Server_DataRecieved; }
public RequestSender(TcpSender client) { this.client = client; formatter = new NetFormatter(); }