rebus-org / Rebus.ServiceProvider

:bus: Microsoft Extensions Dependency Injection container adapter for Rebus
https://mookid.dk/category/rebus
Other
67 stars 34 forks source link

Does not seem to work with Rebus.Serilog #51

Closed r-brend closed 3 years ago

r-brend commented 3 years ago

I may just be missing something but I can't seem to get serilog to work with this library. This is what I am trying to do:

services.AddRebus(c => c .Logging(l => l.Serilog()) .Transport(t => t.UseAzureStorageQueues(storageAccount, queueName)) .Options(o => o.SimpleRetryStrategy(secondLevelRetriesEnabled: true)) .Routing(r => r.TypeBased().Map<NewHandler>(queueName)));

However Serilog is not a valid method.

r-brend commented 3 years ago

Ignore me I had an issue in visual studio where any new nuget packages I added weren't working closing and restarting VS and everything worked.