NServiceBus.ConventionsBuilder.DefiningEventsAs C# (CSharp) Method

DefiningEventsAs() public method

Sets the function to be used to evaluate whether a type is a event.
public DefiningEventsAs ( bool>.Func definesEventType ) : ConventionsBuilder
definesEventType bool>.Func
return ConventionsBuilder
        public ConventionsBuilder DefiningEventsAs(Func<Type, bool> definesEventType)
        {
            Guard.AgainstNull(nameof(definesEventType), definesEventType);
            Conventions.IsEventTypeAction = definesEventType;
            return this;
        }