rebus-org / Rebus.SqlServer

:bus: Microsoft SQL Server transport and persistence for Rebus
https://mookid.dk/category/rebus
Other
43 stars 42 forks source link

Update to v4.0.0 storage not working anymore #17

Closed ghost closed 6 years ago

ghost commented 6 years ago

After upgrading from v3 to v4 sql server storage is not working anymore

Configure
    .With(new AutofacContainerAdapter(container))
    .Subscriptions(s => s.StoreInSqlServer(settings.QueueRoutingConnectionString,settings.QueueRoutingTableName, true))
    .Serialization(s => s.UseJil(Jil.Options.IncludeInherited))
    .Logging(l => l.NLog())
    .Transport(t => t.UseMsmq(settings.EventsQueueName))
    .Routing(r => r.TypeBased().MapAssemblyOf<UserCreated>(settings.InputQueueName))
    .Options(o => o.SimpleRetryStrategy(settings.ErrorQueueName, 1, true))
    .Options(o => o.SetNumberOfWorkers(2));

While debugging it, the subscription is correctly attached to the configurer, but seems is not configuring the bus correctly

mookid8000 commented 6 years ago

which kind of error are you experiencing?

ghost commented 6 years ago

My bad, after upgrading, I forgot to remove some old code, that was not using a sub storage, updated my code, and everything works fine.

mookid8000 commented 6 years ago

😁 👍