diff --git a/src/Foundatio/Messaging/Message.cs b/src/Foundatio/Messaging/Message.cs index f4153c35..179cb003 100644 --- a/src/Foundatio/Messaging/Message.cs +++ b/src/Foundatio/Messaging/Message.cs @@ -13,11 +13,11 @@ public interface IMessage { [DebuggerDisplay("Type: {Type}")] public class Message : IMessage { - private Lazy _getBody; + private readonly Lazy _getBody; public Message(Func getBody) { if (getBody == null) - throw new ArgumentNullException("getBody"); + throw new ArgumentNullException(nameof(getBody)); _getBody = new Lazy(getBody); }