NServiceBus makes it quick and easy to send, process, and publish messages across a wide variety of on-premises and cloud-based queuing technologies. With all the low-level serialization, threading, and transaction management handled out-of-the box, just grab the NuGet package and go.
For more resources to get started, follow our learning path.
Installing
PM> Install-Package NServiceBus
Sending a message
await endpoint.Send(new SubmitOrder { OrderId = orderId });
Processing a message
public class OrdersHandler : IHandleMessages<SubmitOrder>
{
public async Task Handle(SubmitOrder message, IMessageHandlerContext context)
{
Console.WriteLine($"Order received {message.OrderId}");
await context.Publish(new OrderAccepted { OrderId = message.OrderId });
}
}
See it in action
Jump into our Quick Start and build your first end-to-end NServiceBus solution in just 15 minutes. Covering all the elements of one-way messaging, publish-subscribe, and automatic recovery from exceptions, you'll know just enough to be dangerous.
Other resources
- Tutorials - Step-by-step guides to help master NServiceBus and the Particular Service Platform
- Samples - Learn by exploring code in fully functional solutions that can be run from Visual Studio. Go to the introduction to samples or skip to the list of samples
- High-level content - Recommended articles to gain an understanding of the key concepts and technologies used within the Particular Service Platform.