/// <summary> /// Add system message convention. /// </summary> /// <param name="definesMessageType">Function to define system message convention.</param> public void AddSystemMessagesConventions(Func <Type, bool> definesMessageType) { if (!IsSystemMessageActions.Contains(definesMessageType)) { IsSystemMessageActions.Add(definesMessageType); MessagesConventionCache.Reset(); } }
/// <summary> /// Add system message convention. /// </summary> /// <param name="definesMessageType">Function to define system message convention.</param> public void AddSystemMessagesConventions(Func <Type, bool> definesMessageType) { Guard.AgainstNull(nameof(definesMessageType), definesMessageType); if (!IsSystemMessageActions.Contains(definesMessageType)) { IsSystemMessageActions.Add(definesMessageType); MessagesConventionCache.Reset(); } }