/// <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();
     }
 }
예제 #2
0
 /// <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();
     }
 }