zarusz / SlimMessageBus

Lightweight message bus interface for .NET (pub/sub and request-response) with transport plugins for popular message brokers.
Apache License 2.0
467 stars 78 forks source link

[Host.Outbox] Bug: Exception thrown on OutboxSendingTask starting schema migration #273

Closed EtherZa closed 2 months ago

EtherZa commented 2 months ago

An exception is being thrown by OutboxSendingTask.MigrateSchema as the IOutboxMigrationService is dependent on scoped service ISqlOutboxRepository.

System.InvalidOperationException: 'Cannot resolve 'SlimMessageBus.Host.Outbox.IOutboxMigrationService' from root provider because it requires scoped service 'SlimMessageBus.Host.Outbox.Sql.ISqlOutboxRepository'.'
zarusz commented 2 months ago

Fixed via #274