예제 #1
0
 protected void InitEncryptionHandler(string rsaKey)
 {
     encryptionHandler = new MessageEncryptionHandler(new Data.AsymmetricEncryptionHandler(rsaKey));
 }
예제 #2
0
 public ServerConnectionBase()
 {
     ServerId            = Guid.NewGuid();
     onNewMessageHandler = new Progress <MessageModel>(m => NewMessage?.Invoke(this, m));
     encryptionHandler   = new MessageEncryptionHandler(new AsymmetricEncryptionHandler());
 }