-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When starting, app hangs if there are messages in the queue #61
Comments
more info
|
OK, so what I've determined so far (and enough to implement a work-around): We're using Nancy+Autofac. Configuration happens in the bootstrapper, but doesn't activate. The first handler has a bus dependency so nimbus was activating during a nancy request. Not sure what was at play there, but I found that by resolving IBus straight after the container initialisation caused everything to work just fine. |
Something I have done with autofac is register the bus as follow builder.RegisterNimbus(handlerTypesProvider);
builder.Register(componentContext => new BusBuilder()
.Configure()
.WithConnectionString(connectionString)
.WithNames("MyApp", Environment.MachineName)
.WithTypesFrom(handlerTypesProvider)
.WithAutofacDefaults(componentContext)
.Build())
.As<IBus>()
.AsSelf()
.SingleInstance(); and on service / application start call |
Yeah cheers. Our solution was pretty much similar :) |
@lukeschafer Were you calling Start or Autoactivate on the bus as part of your container configuration like we do here ? If you did that and it's not starting automatically that's a worry. |
Yeah we were using auto activate.
|
So far, this has been exhibited running in IIS with commands already in a queue. The handler is never run but the app hangs on startup.
The text was updated successfully, but these errors were encountered: