NServiceBus.ConventionsBuilder.DefiningDataBusPropertiesAs C# (CSharp) Method

DefiningDataBusPropertiesAs() public method

Sets the function to be used to evaluate whether a property should be sent via the DataBus or not.
public DefiningDataBusPropertiesAs ( bool>.Func definesDataBusProperty ) : ConventionsBuilder
definesDataBusProperty bool>.Func
return ConventionsBuilder
        public ConventionsBuilder DefiningDataBusPropertiesAs(Func<PropertyInfo, bool> definesDataBusProperty)
        {
            Guard.AgainstNull(nameof(definesDataBusProperty), definesDataBusProperty);
            Conventions.IsDataBusPropertyAction = definesDataBusProperty;
            return this;
        }