{"action":"created","issue":{"url":"https://api.github.com/repos/Particular/NServiceBus.UniformSession/issues/7","repository_url":"https://api.github.com/repos/Particular/NServiceBus.UniformSession","labels_url":"https://api.github.com/repos/Particular/NServiceBus.UniformSession/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/Particular/NServiceBus.UniformSession/issues/7/comments","events_url":"https://api.github.com/repos/Particular/NServiceBus.UniformSession/issues/7/events","html_url":"https://github.com/Particular/NServiceBus.UniformSession/issues/7","id":271889529,"number":7,"title":"UniformSession feature isn't loaded on .NET Core","user":{"login":"timbussmann","id":3524870,"avatar_url":"https://avatars1.githubusercontent.com/u/3524870?v=4","gravatar_id":"","url":"https://api.github.com/users/timbussmann","html_url":"https://github.com/timbussmann","followers_url":"https://api.github.com/users/timbussmann/followers","following_url":"https://api.github.com/users/timbussmann/following{/other_user}","gists_url":"https://api.github.com/users/timbussmann/gists{/gist_id}","starred_url":"https://api.github.com/users/timbussmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timbussmann/subscriptions","organizations_url":"https://api.github.com/users/timbussmann/orgs","repos_url":"https://api.github.com/users/timbussmann/repos","events_url":"https://api.github.com/users/timbussmann/events{/privacy}","received_events_url":"https://api.github.com/users/timbussmann/received_events","type":"User","site_admin":false},"labels":[{"id":729196380,"url":"https://api.github.com/repos/Particular/NServiceBus.UniformSession/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Particular/NServiceBus.UniformSession/milestones/1","html_url":"https://github.com/Particular/NServiceBus.UniformSession/milestone/1","labels_url":"https://api.github.com/repos/Particular/NServiceBus.UniformSession/milestones/1/labels","id":2894647,"number":1,"title":"2.0.0","description":null,"creator":{"login":"timbussmann","id":3524870,"avatar_url":"https://avatars1.githubusercontent.com/u/3524870?v=4","gravatar_id":"","url":"https://api.github.com/users/timbussmann","html_url":"https://github.com/timbussmann","followers_url":"https://api.github.com/users/timbussmann/followers","following_url":"https://api.github.com/users/timbussmann/following{/other_user}","gists_url":"https://api.github.com/users/timbussmann/gists{/gist_id}","starred_url":"https://api.github.com/users/timbussmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timbussmann/subscriptions","organizations_url":"https://api.github.com/users/timbussmann/orgs","repos_url":"https://api.github.com/users/timbussmann/repos","events_url":"https://api.github.com/users/timbussmann/events{/privacy}","received_events_url":"https://api.github.com/users/timbussmann/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2017-11-07T16:09:28Z","updated_at":"2017-11-07T16:10:03Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2017-11-07T16:10:02Z","updated_at":"2017-11-08T07:28:35Z","closed_at":null,"author_association":"MEMBER","body":"Because .NET Core doesn't copy assemblies from nuget packages into the bin folder by default, the UniformSession assembly won't be scanned when running a project from VS or via dotnet run without publishing it. Due to the missing scanning, the Feature won't be detected and properly initialized, causing exceptions when trying to inject IUniformSession.\r\n\r\nA possible workaround would be an explicit Opt-In API (e.g. `endpointConfiguration.EnableUniformSession()`. This way, the assembly is referenced and loaded before NServiceBus AssemblyScanning takes place and the feature will be properly initialized.\r\n\r\na workaround until this is fixed, is to load the \"NServiceBus.UniformSession\" assembly manually via Assembly.Load before starting the endpoint.\r\n\r\n(v1 should not be affected as this is only an issue with .net core)\r\n\r\ncc @danielmarbach "},"comment":{"url":"https://api.github.com/repos/Particular/NServiceBus.UniformSession/issues/comments/342733363","html_url":"https://github.com/Particular/NServiceBus.UniformSession/issues/7#issuecomment-342733363","issue_url":"https://api.github.com/repos/Particular/NServiceBus.UniformSession/issues/7","id":342733363,"user":{"login":"danielmarbach","id":174258,"avatar_url":"https://avatars1.githubusercontent.com/u/174258?v=4","gravatar_id":"","url":"https://api.github.com/users/danielmarbach","html_url":"https://github.com/danielmarbach","followers_url":"https://api.github.com/users/danielmarbach/followers","following_url":"https://api.github.com/users/danielmarbach/following{/other_user}","gists_url":"https://api.github.com/users/danielmarbach/gists{/gist_id}","starred_url":"https://api.github.com/users/danielmarbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielmarbach/subscriptions","organizations_url":"https://api.github.com/users/danielmarbach/orgs","repos_url":"https://api.github.com/users/danielmarbach/repos","events_url":"https://api.github.com/users/danielmarbach/events{/privacy}","received_events_url":"https://api.github.com/users/danielmarbach/received_events","type":"User","site_admin":false},"created_at":"2017-11-08T07:28:35Z","updated_at":"2017-11-08T07:28:35Z","author_association":"MEMBER","body":"This means all plugins that rely solely on scanning and features enabled by default are sort of broken with .NET Core, right? I was actually never a big fan of silently enabled features and I like the explicit opt-in approach much more. Given that this affects many other plugins should we summarize it and RFC a potential solution approach?"}}
{"actor":{"display_login":"danielmarbach"}}