{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Blazor/issues/1295","repository_url":"https://api.github.com/repos/aspnet/Blazor","labels_url":"https://api.github.com/repos/aspnet/Blazor/issues/1295/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Blazor/issues/1295/comments","events_url":"https://api.github.com/repos/aspnet/Blazor/issues/1295/events","html_url":"https://github.com/aspnet/Blazor/issues/1295","id":349669075,"node_id":"MDU6SXNzdWUzNDk2NjkwNzU=","number":1295,"title":"Getting erro calling registered JSInvokable function in component lib","user":{"login":"rpedretti","id":675601,"node_id":"MDQ6VXNlcjY3NTYwMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/675601?v=4","gravatar_id":"","url":"https://api.github.com/users/rpedretti","html_url":"https://github.com/rpedretti","followers_url":"https://api.github.com/users/rpedretti/followers","following_url":"https://api.github.com/users/rpedretti/following{/other_user}","gists_url":"https://api.github.com/users/rpedretti/gists{/gist_id}","starred_url":"https://api.github.com/users/rpedretti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpedretti/subscriptions","organizations_url":"https://api.github.com/users/rpedretti/orgs","repos_url":"https://api.github.com/users/rpedretti/repos","events_url":"https://api.github.com/users/rpedretti/events{/privacy}","received_events_url":"https://api.github.com/users/rpedretti/received_events","type":"User","site_admin":false},"labels":[{"id":794118843,"node_id":"MDU6TGFiZWw3OTQxMTg4NDM=","url":"https://api.github.com/repos/aspnet/Blazor/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-10T21:58:57Z","updated_at":"2018-08-17T20:06:53Z","closed_at":"2018-08-17T11:35:24Z","author_association":"NONE","body":"I have a Component lib created using the blazom component lib template (CLI) asn have registered a instance method to be invokable in th JS side\r\n\r\n```\r\n[JSInvokable]\r\npublic Task ClearSelection()\r\n{\r\n...\r\n}\r\n```\r\n\r\nBut when calling it i get the following error:\r\n\r\n```\r\nError: System.InvalidOperationException: The assembly 'RPedretti.Blazor.Components' contains more than one [JSInvokable] method with identifier 'ClearSelection'. All [JSInvokable] methods within the same assembly must have different identifiers. You can pass a custom identifier as a parameter to the [JSInvokable] attribute.\r\n```\r\n\r\nI tried to to register using a identifyer but the error remains. This doesn't happens in a instance method registered in the main assembly"},"comment":{"url":"https://api.github.com/repos/aspnet/Blazor/issues/comments/413974969","html_url":"https://github.com/aspnet/Blazor/issues/1295#issuecomment-413974969","issue_url":"https://api.github.com/repos/aspnet/Blazor/issues/1295","id":413974969,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzk3NDk2OQ==","user":{"login":"rpedretti","id":675601,"node_id":"MDQ6VXNlcjY3NTYwMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/675601?v=4","gravatar_id":"","url":"https://api.github.com/users/rpedretti","html_url":"https://github.com/rpedretti","followers_url":"https://api.github.com/users/rpedretti/followers","following_url":"https://api.github.com/users/rpedretti/following{/other_user}","gists_url":"https://api.github.com/users/rpedretti/gists{/gist_id}","starred_url":"https://api.github.com/users/rpedretti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpedretti/subscriptions","organizations_url":"https://api.github.com/users/rpedretti/orgs","repos_url":"https://api.github.com/users/rpedretti/repos","events_url":"https://api.github.com/users/rpedretti/events{/privacy}","received_events_url":"https://api.github.com/users/rpedretti/received_events","type":"User","site_admin":false},"created_at":"2018-08-17T20:06:53Z","updated_at":"2018-08-17T20:06:53Z","author_association":"NONE","body":"Thanks! Although in my case i had no `[JSInvokable]` on my base class I have a strong feeling that it will solve the issue."}}
{"actor":{"display_login":"rpedretti"}}