NServiceBus.Validations.AssertIsValidForSend C# (CSharp) Method

AssertIsValidForSend() public method

public AssertIsValidForSend ( Type messageType ) : void
messageType System.Type
return void
        public void AssertIsValidForSend(Type messageType)
        {
            if (conventions.IsInSystemConventionList(messageType))
            {
                return;
            }
            if (!conventions.IsEventType(messageType))
            {
                return;
            }
            throw new Exception("Events can have multiple recipient so they should be published.");
        }