示例#1
0
 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;
 }
示例#2
0
 public RequestSender(TcpSender client)
 {
     this.client = client;
     formatter   = new NetFormatter();
 }