public static string GetMessageText(this QueueMessage message, bool base64Decode) { if (message == null) { return(string.Empty); } if (base64Decode) { return(message.GetDecodedMessageText()); } return(message.MessageText); }