internal MessageHandlerOrderingContainer( IBaseMessageHandler handler, string matchingRoute, int?order) { MessageHandler = handler; MatchingRoute = matchingRoute; Order = order; }
internal static int?GetOrderForHandler(this MessageHandlerContainer container, IBaseMessageHandler handler) { return(container.MessageHandlerOrderingModels.FirstOrDefault(x => x.MessageHandlerType == handler.GetType())?.Order); }