Пример #1
0
 /// <summary>
 /// Checks if this header is from an open session message.
 /// </summary>
 /// <param name="header">The message header.</param>
 /// <returns><c>true</c> if the header is from an open session message; <c>false</c> otherwise.</returns>
 public static bool IsAllowedBeforeSessionIsOpen(this IMessageHeader header)
 {
     return(header.IsRequestSession() || header.IsOpenSession() || header.IsAcknowledge() || header.IsProtocolException() || header.IsCloseSession());
 }