Added prepare messages to csharp hook to enable sending to dedicated publishers