NServiceBus Home

Contents

  • Long-Running Processes
  •     Sagas
Samples

Samples

This page describes the samples available with NServiceBus.

AsyncPages

This sample illustrates the use of NServiceBus in a web application. What you'll see is how to configure NServiceBus for use in a web application, how to use the bus to send a message, and how to handle the response.

Encryption

This sample illustrates how to encrypt data transmitted in messages by NServiceBus. What you'll see is how to define messages containing sensitive data, how to specify that the bus use an encryption service, and how to configure the keys that encryption service uses.

Full Duplex - Request/Response

This sample illustrates how to full duplex - request/response communication works with NServiceBus. What you'll see is how to define messages, how to specify the destination for a message, and how to handle messages when they are received.

Generic Host - Logging

This sample illustrates the various ways to use the NServiceBus host process to configure logging. You'll see the minimal amount of configuration necessary to set up logging, how to go back to standard log4net configuration, and the extensibility model using profiles.

PubSub

This sample shows publish subscribe messaging using NServiceBus. This sample is also the "Getting Started" section of the documentation and shows polymorphic subscriptions as well as durable subscriptions for publisher fault-tolerance.

Versioning

This sample is based on the PubSub sample above and shows how to go about versioning messages in this environment. You'll see how to inherit message types, how subscribers can continue to receive messages in the old schema even when the publisher publishes messages in the new schema.

Legal

“NServiceBus” is among the trademarks of NServiceBus Ltd. All other product and company names and marks mentioned are the property of their respective owners and are mentioned for identification purposes only.

© 2010 NServiceBus Ltd. All rights reserved.