/// <summary> /// Loads all message handler assemblies in the runtime directory /// and specifies that the handlers in the given 'order' are to /// run before all others and in the order specified. /// </summary> /// <param name="config">The <see cref="EndpointConfiguration" /> instance to apply the settings to.</param> /// <param name="handlerTypes">The handler types to execute first.</param> public static void ExecuteTheseHandlersFirst(this EndpointConfiguration config, params Type[] handlerTypes) { Guard.AgainstNull(nameof(config), config); Guard.AgainstNull(nameof(handlerTypes), handlerTypes); config.ExecuteTheseHandlersFirst((IEnumerable<Type>) handlerTypes); }