Shuttle / Shuttle.Esb

A highly extensible service bus implementation.
http://shuttle.github.io/shuttle-esb/
BSD 3-Clause "New" or "Revised" License
95 stars 30 forks source link

transactionScope is not recognized in v8 #28

Closed nohros closed 7 years ago

nohros commented 7 years ago

When starting a process that has transactionScope tag the process fails with the given error:

Element 'transactionScope' não reconhecido.(J:... line 27)

The config file is similar to the following:

<?xml version="1.0"?>
<configuration>
  <configSections>
    <section name="serviceBus" type="Shuttle.Esb.ServiceBusSection, Shuttle.Esb"/>
    <section name="subscription" type="Shuttle.Esb.Sql.Subscription.SubscriptionSection, Shuttle.Esb.Sql.Subscription"/>
  </configSections>

  <connectionStrings>
    <add providerName="System.Data.SqlClient"
         name="shuttle"
         connectionString="*******"/>
  </connectionStrings>

  <serviceBus>
    <inbox
      workQueueUri="sql://shuttle/joins_correlator"
      errorQueueUri="sql://shuttle/error"
      deferredQueueUri="sql://shuttle/joins_correlator_deferred"
      durationToIgnoreOnFailure="10s,30s,1m"/>

    <transactionScope
      enabled="false"
      isolationLevel="ReadCommitted"
      timeoutSeconds="30" />

    <messageRoutes>
      <messageRoute uri="sql://shuttle/joins_correlator">
        <add specification="StartsWith" value="****"/>
      </messageRoute>
    </messageRoutes>
  </serviceBus>
eben-roux commented 7 years ago

Apologies for only responding now. I seem to have failed to mention this in the upgrade guide and it also isn't documented properly.

The transaction scope configuration has been moved to the Shuttle.Core.Infrastructure package and has its own configuration section. You can view sample here.

I have opened these two issue to fix the docs:

Terribly sorry about this :(