{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Blazor/issues/1403","repository_url":"https://api.github.com/repos/aspnet/Blazor","labels_url":"https://api.github.com/repos/aspnet/Blazor/issues/1403/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Blazor/issues/1403/comments","events_url":"https://api.github.com/repos/aspnet/Blazor/issues/1403/events","html_url":"https://github.com/aspnet/Blazor/issues/1403","id":358434078,"node_id":"MDU6SXNzdWUzNTg0MzQwNzg=","number":1403,"title":"\"MonoTouch does not support dynamic proxy code generation.\" when trying to call existing services using existing controllers.","user":{"login":"StingyJack","id":15381181,"node_id":"MDQ6VXNlcjE1MzgxMTgx","avatar_url":"https://avatars1.githubusercontent.com/u/15381181?v=4","gravatar_id":"","url":"https://api.github.com/users/StingyJack","html_url":"https://github.com/StingyJack","followers_url":"https://api.github.com/users/StingyJack/followers","following_url":"https://api.github.com/users/StingyJack/following{/other_user}","gists_url":"https://api.github.com/users/StingyJack/gists{/gist_id}","starred_url":"https://api.github.com/users/StingyJack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StingyJack/subscriptions","organizations_url":"https://api.github.com/users/StingyJack/orgs","repos_url":"https://api.github.com/users/StingyJack/repos","events_url":"https://api.github.com/users/StingyJack/events{/privacy}","received_events_url":"https://api.github.com/users/StingyJack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-09-10T01:18:36Z","updated_at":"2018-09-10T17:33:25Z","closed_at":null,"author_association":"NONE","body":"I made a solution with the Blazor getting started project. It ran, so I added a login page and the interactivity with the UI seems correct when running it. I then tried to extend it a little bit by adding three projects to the solution. \r\n\r\n- a netFx 4.6.2 library for common objects and service contracts. \r\n- a netFx 4.6.2 library for page controllers/service ChannelFactory/ClientBase's. This refs the common library\r\n- a netFx 4.6.2 Asp.net web application with a single Wcf AuthService.svc. This refs the common library\r\n\r\nOnly the things to support attempting a user login are present. The method signatures in the controllers and services are simple `AuthResult AttemptUserAuth(string username, string password);` where `AuthResult` has an `IsAuthed` bool property and a few string properties.  Using a console application I can ref the two libraries and successfully make calls to the AuthService.svc.  If I try to wire in the same assemblies into the Blazor project, when it calls the wcf service I get the error in the title.\r\n\r\nI found a [suggestion](https://stackoverflow.com/questions/10054581/monotouch-wcf-how-to-consume-the-wcf-service-without-svcutil) to override the ChannelBase for the ClientBase, but that didnt work as-is because ChannelBase has no `Invoke` method, only the `Begin/EndInvoke` pair. When I tried to use those I would get only null reference exceptions. \r\n\r\nKeeping the arrangement of libraries and the existing wcf services is critical to the story, as there are a few hundred projects and a few million lines of code invested in that stack type and there is no financial benefit to just changing from the wcf/xml/soap to rest/json. However, there is as much leeway as code generation can permit, I just cant find a working pattern that I can use within this \"getting started\" project.\r\n\r\nBefore I spend another afternoon trying to make this work, can someone please tell me if what I am trying to do is possible, or is going to be possible with Blazor?"},"comment":{"url":"https://api.github.com/repos/aspnet/Blazor/issues/comments/419996058","html_url":"https://github.com/aspnet/Blazor/issues/1403#issuecomment-419996058","issue_url":"https://api.github.com/repos/aspnet/Blazor/issues/1403","id":419996058,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTk5NjA1OA==","user":{"login":"Suchiman","id":7110884,"node_id":"MDQ6VXNlcjcxMTA4ODQ=","avatar_url":"https://avatars3.githubusercontent.com/u/7110884?v=4","gravatar_id":"","url":"https://api.github.com/users/Suchiman","html_url":"https://github.com/Suchiman","followers_url":"https://api.github.com/users/Suchiman/followers","following_url":"https://api.github.com/users/Suchiman/following{/other_user}","gists_url":"https://api.github.com/users/Suchiman/gists{/gist_id}","starred_url":"https://api.github.com/users/Suchiman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Suchiman/subscriptions","organizations_url":"https://api.github.com/users/Suchiman/orgs","repos_url":"https://api.github.com/users/Suchiman/repos","events_url":"https://api.github.com/users/Suchiman/events{/privacy}","received_events_url":"https://api.github.com/users/Suchiman/received_events","type":"User","site_admin":false},"created_at":"2018-09-10T17:33:25Z","updated_at":"2018-09-10T17:33:25Z","author_association":"CONTRIBUTOR","body":".NET Core's WCF uses `HttpClient` but is hardcoded on `HttpClientHandler`. If you can manage to swap out the `HttpChannelFactory` then it might work (but requires using exclusively async APIs)"}}
{"actor":{"display_login":"Suchiman"}}