A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Particular/NServiceBus.SqlServer below:

Particular/NServiceBus.SqlServer: SQL Server Transport for NServiceBus

NServiceBus.SqlServer provides support for sending messages using Microsoft SQL Server or PostgreSQL without the use of a service broker.

It is part of the Particular Service Platform, which includes NServiceBus and tools to build, monitor, and debug distributed systems.

See the SQL Server transport documentation and PostgreSQL transport documentation for more details on how to use it.

Before doing anything else, make sure you have SQL Server up and running in your environment. Also, make sure it is accessible from all the machines in your setup.

  1. Choose which package you want to use:
  2. Add the package to your project(s).
  3. In your code provide the necessary connection information to communicate with the SQL server instance. A typical setup would be:
    <connectionStrings>
      <add name="NServiceBus/Transport" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=nservicebus;Integrated Security=True;TrustServerCertificate=true"/>
    </connectionStrings>
  1. Add NServiceBus.Transport.PostgreSql the package to your project(s).
  2. In code provide connection string information necessary to connect to the PostgreSQL database, e.g.:
    var transport = new PostgreSqlTransport("User ID=<user>;Password=<pwd>;Host=localhost;Port=5432;Database=nservicebus;Pooling=true;Connection Lifetime=0;");

Deployments with multiple endpoints running on PostgreSQL require external connection pooling e.g. using pgBouncer

Consider creating a RAM drive or using a temporary one when running in a cloud VM and hosting your databases to reduce the time required to run acceptance tests.

The tests expect a SQL Server instance to be available.

All tests use the default connection string Data Source=.\SQLEXPRESS;Initial Catalog=nservicebus;Integrated Security=True;TrustServerCertificate=true. This can be changed by setting the SqlServerTransportConnectionString environment variable. The initial catalog, nservicebus, is hardcoded in some tests and cannot be changed.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4