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