public void UploadFile(string filePath) { var bytes = File.ReadAllBytes(filePath); var fileName = Path.GetFileName(filePath); var peerNewFile = new PeerFile(fileName, bytes); var message = new UploadFileMessage(peerNewFile); processor.Send(message); }