{"action":"created","issue":{"url":"https://api.github.com/repos/Particular/NServiceBus/issues/2681","labels_url":"https://api.github.com/repos/Particular/NServiceBus/issues/2681/labels{/name}","comments_url":"https://api.github.com/repos/Particular/NServiceBus/issues/2681/comments","events_url":"https://api.github.com/repos/Particular/NServiceBus/issues/2681/events","html_url":"https://github.com/Particular/NServiceBus/issues/2681","id":60865221,"number":2681,"title":"Disposal Behavior for Dependency Injection Containers","user":{"login":"kevin-whalley-gc","id":11445405,"avatar_url":"https://avatars.githubusercontent.com/u/11445405?v=3","gravatar_id":"","url":"https://api.github.com/users/kevin-whalley-gc","html_url":"https://github.com/kevin-whalley-gc","followers_url":"https://api.github.com/users/kevin-whalley-gc/followers","following_url":"https://api.github.com/users/kevin-whalley-gc/following{/other_user}","gists_url":"https://api.github.com/users/kevin-whalley-gc/gists{/gist_id}","starred_url":"https://api.github.com/users/kevin-whalley-gc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevin-whalley-gc/subscriptions","organizations_url":"https://api.github.com/users/kevin-whalley-gc/orgs","repos_url":"https://api.github.com/users/kevin-whalley-gc/repos","events_url":"https://api.github.com/users/kevin-whalley-gc/events{/privacy}","received_events_url":"https://api.github.com/users/kevin-whalley-gc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-12T17:56:55Z","updated_at":"2015-03-17T01:48:14Z","closed_at":null,"body":"Hi,\r\n\r\nWe've noticed that when sharing an Autofac Container between NServiceBus and an ASP.NET MVC application that if NServiceBus encounters a critical error it will dispose of the container, causing an exception in the web application because controllers can no longer use the container for dependency resolution when instantiating.\r\n\r\nI understand that NServiceBus attempts to dispose of all disposable components, but my instinct is that it should draw a line between components its instantiated and components that were injected during configuration. Is this a configuration option we can set or a hard coded behavior?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Particular/NServiceBus/issues/comments/82025647","html_url":"https://github.com/Particular/NServiceBus/issues/2681#issuecomment-82025647","issue_url":"https://api.github.com/repos/Particular/NServiceBus/issues/2681","id":82025647,"user":{"login":"kevin-whalley-gc","id":11445405,"avatar_url":"https://avatars.githubusercontent.com/u/11445405?v=3","gravatar_id":"","url":"https://api.github.com/users/kevin-whalley-gc","html_url":"https://github.com/kevin-whalley-gc","followers_url":"https://api.github.com/users/kevin-whalley-gc/followers","following_url":"https://api.github.com/users/kevin-whalley-gc/following{/other_user}","gists_url":"https://api.github.com/users/kevin-whalley-gc/gists{/gist_id}","starred_url":"https://api.github.com/users/kevin-whalley-gc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevin-whalley-gc/subscriptions","organizations_url":"https://api.github.com/users/kevin-whalley-gc/orgs","repos_url":"https://api.github.com/users/kevin-whalley-gc/repos","events_url":"https://api.github.com/users/kevin-whalley-gc/events{/privacy}","received_events_url":"https://api.github.com/users/kevin-whalley-gc/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T01:48:13Z","updated_at":"2015-03-17T01:48:13Z","body":"@johnsimons, Will we need to add any of the normal critical error process into our definition? E.g. if we override it, but don't add any of the normal resource cleanup will that have an adverse effect?\r\n\r\nWe are on NServiceBus 5.x"}}