Skip to content
Attribute based conventions for NServiceBus messages, commands, and events.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.dependabot
assets
src
targets
.editorconfig
.gitattributes
.gitignore
.travis.yml
Directory.Build.props
LICENSE
README.md
appveyor.yml
build.cmd
build.sh

README.md

NServiceBus.AttributeConventions.Contracts

Enables to configure NServiceBus messages, commands, and events conventions by using attributes on message types:

[Message]
public class SampleMessage
{}

[Command]
public class DoSomething
{}

[Event]
public class SomethingHappened
{}

NOTE: Attributes are defined in a separate NServiceBus.AttributeConventions.Contracts package to prevent coupling endpoints to the NServiceBus version this feature depends on. More information on unobtrusive mode can be found in the NServiceBus documentation.

To configure the endpoint:

endpointConfiguration.UseAttributeConventions();

Downloads

Nuget package: https://www.nuget.org/packages/NServiceBus.AttributeConventions/


Icon: Handshake by Bruno Landowski from the Noun Project

You can’t perform that action at this time.