NServiceBus.RoutingSettings.DoNotEnforceBestPractices C# (CSharp) Method

DoNotEnforceBestPractices() public method

Disables the enforcement of messaging best practices (e.g. validating that a published message is an event).
public DoNotEnforceBestPractices ( ) : void
return void
        public void DoNotEnforceBestPractices()
        {
            Settings.Set(RoutingFeature.EnforceBestPracticesSettingsKey, false);
        }