{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Docs/issues/7284","repository_url":"https://api.github.com/repos/aspnet/Docs","labels_url":"https://api.github.com/repos/aspnet/Docs/issues/7284/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Docs/issues/7284/comments","events_url":"https://api.github.com/repos/aspnet/Docs/issues/7284/events","html_url":"https://github.com/aspnet/Docs/issues/7284","id":335496537,"node_id":"MDU6SXNzdWUzMzU0OTY1Mzc=","number":7284,"title":"How to register an existing hub with a different DI engine","user":{"login":"grahambunce","id":19230473,"node_id":"MDQ6VXNlcjE5MjMwNDcz","avatar_url":"https://avatars1.githubusercontent.com/u/19230473?v=4","gravatar_id":"","url":"https://api.github.com/users/grahambunce","html_url":"https://github.com/grahambunce","followers_url":"https://api.github.com/users/grahambunce/followers","following_url":"https://api.github.com/users/grahambunce/following{/other_user}","gists_url":"https://api.github.com/users/grahambunce/gists{/gist_id}","starred_url":"https://api.github.com/users/grahambunce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grahambunce/subscriptions","organizations_url":"https://api.github.com/users/grahambunce/orgs","repos_url":"https://api.github.com/users/grahambunce/repos","events_url":"https://api.github.com/users/grahambunce/events{/privacy}","received_events_url":"https://api.github.com/users/grahambunce/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-25T17:20:11Z","updated_at":"2018-06-25T17:28:17Z","closed_at":null,"author_association":"NONE","body":"How to I get an reference to an existing Hub created by the .UseSignalR route mapping and then register it with my existing DI container (e.g. Unity) so that I can inject it into my business logic layer?\n\n\n---\n#### Document Details\n\n⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*\n\n* ID: 7bf6fefc-557e-114a-a37c-90939e06b083\n* Version Independent ID: 92da23e0-6dc5-170e-b489-2ad8bbd46dff\n* Content: [SignalR HubContext](https://docs.microsoft.com/en-us/aspnet/core/signalr/hubcontext?view=aspnetcore-2.1)\n* Content Source: [aspnetcore/signalr/hubcontext.md](https://github.com/aspnet/Docs/blob/master/aspnetcore/signalr/hubcontext.md)\n* Product: **aspnet-core**\n* GitHub Login: @rachelappel\n* Microsoft Alias: **rachelap**"},"comment":{"url":"https://api.github.com/repos/aspnet/Docs/issues/comments/400031610","html_url":"https://github.com/aspnet/Docs/issues/7284#issuecomment-400031610","issue_url":"https://api.github.com/repos/aspnet/Docs/issues/7284","id":400031610,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDAzMTYxMA==","user":{"login":"scottaddie","id":10702007,"node_id":"MDQ6VXNlcjEwNzAyMDA3","avatar_url":"https://avatars3.githubusercontent.com/u/10702007?v=4","gravatar_id":"","url":"https://api.github.com/users/scottaddie","html_url":"https://github.com/scottaddie","followers_url":"https://api.github.com/users/scottaddie/followers","following_url":"https://api.github.com/users/scottaddie/following{/other_user}","gists_url":"https://api.github.com/users/scottaddie/gists{/gist_id}","starred_url":"https://api.github.com/users/scottaddie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottaddie/subscriptions","organizations_url":"https://api.github.com/users/scottaddie/orgs","repos_url":"https://api.github.com/users/scottaddie/repos","events_url":"https://api.github.com/users/scottaddie/events{/privacy}","received_events_url":"https://api.github.com/users/scottaddie/received_events","type":"User","site_admin":false},"created_at":"2018-06-25T17:28:17Z","updated_at":"2018-06-25T17:28:17Z","author_association":"MEMBER","body":"@grahambunce Here's info on replacing the native IoC container with a different one: https://docs.microsoft.com/aspnet/core/fundamentals/dependency-injection?view=aspnetcore-2.1#replacing-the-default-services-container. The example used here is Autofac. Does this help you solve the problem?"}}
{"actor":{"display_login":"scottaddie"}}