{"action":"closed","issue":{"url":"https://api.github.com/repos/aspnet/Blazor/issues/1588","repository_url":"https://api.github.com/repos/aspnet/Blazor","labels_url":"https://api.github.com/repos/aspnet/Blazor/issues/1588/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Blazor/issues/1588/comments","events_url":"https://api.github.com/repos/aspnet/Blazor/issues/1588/events","html_url":"https://github.com/aspnet/Blazor/issues/1588","id":371960636,"node_id":"MDU6SXNzdWUzNzE5NjA2MzY=","number":1588,"title":"Server-side Blazor does not provide HttpClient for injection","user":{"login":"mblataric","id":10866736,"node_id":"MDQ6VXNlcjEwODY2NzM2","avatar_url":"https://avatars2.githubusercontent.com/u/10866736?v=4","gravatar_id":"","url":"https://api.github.com/users/mblataric","html_url":"https://github.com/mblataric","followers_url":"https://api.github.com/users/mblataric/followers","following_url":"https://api.github.com/users/mblataric/following{/other_user}","gists_url":"https://api.github.com/users/mblataric/gists{/gist_id}","starred_url":"https://api.github.com/users/mblataric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mblataric/subscriptions","organizations_url":"https://api.github.com/users/mblataric/orgs","repos_url":"https://api.github.com/users/mblataric/repos","events_url":"https://api.github.com/users/mblataric/events{/privacy}","received_events_url":"https://api.github.com/users/mblataric/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-10-19T13:35:39Z","updated_at":"2018-10-30T23:55:33Z","closed_at":"2018-10-30T23:55:33Z","author_association":"NONE","body":"Hi, \r\n\r\nI am trying a scenario where I would use server-side blazor with WebApi. \r\nFor that, I created project from self-hosted template and modified Startup method to match the one created in server-side template and I also changed script include in index.html. \r\n\r\nBut I get an error in razor page when I try to inject HttpClient:\r\n`Unhandled Promise Rejection: Error: System.InvalidOperationException: Cannot provide a value for property 'Http' on type 'CarFleet4.Client.Pages.FetchData'. There is no registered service of type 'System.Net.Http.HttpClient'.`\r\n\r\nI can probably manually provide HttpClient for injection, but I was wondering if this is intended or not?\r\n\r\nThanks, \r\nMario"}}
{"actor":{"display_login":"danroth27"}}