private void OnSendDataAvailable(object sender, ByteDataEventArgs e) { var dataModel = new DataModel { Guid = _senderId, RadioModel = _model, RawAudioSample = e.Data, NetworkTask = _networkTaskManager.CurrentNetworkTask }; var bytes = _converter.ConvertToBytes(dataModel); var compressed = _compressor.Compress(bytes); var result = _transmitter.Write(compressed); if (result.IsFailure) { SimpleLogger.Log(result.Error); } }