{"action":"created","issue":{"url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/2088","repository_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate","labels_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/2088/labels{/name}","comments_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/2088/comments","events_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/2088/events","html_url":"https://github.com/aspnetboilerplate/aspnetboilerplate/issues/2088","id":225251623,"number":2088,"title":"Trigger event in different project","user":{"login":"Zonciu","id":10374056,"avatar_url":"https://avatars3.githubusercontent.com/u/10374056?v=3","gravatar_id":"","url":"https://api.github.com/users/Zonciu","html_url":"https://github.com/Zonciu","followers_url":"https://api.github.com/users/Zonciu/followers","following_url":"https://api.github.com/users/Zonciu/following{/other_user}","gists_url":"https://api.github.com/users/Zonciu/gists{/gist_id}","starred_url":"https://api.github.com/users/Zonciu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zonciu/subscriptions","organizations_url":"https://api.github.com/users/Zonciu/orgs","repos_url":"https://api.github.com/users/Zonciu/repos","events_url":"https://api.github.com/users/Zonciu/events{/privacy}","received_events_url":"https://api.github.com/users/Zonciu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-04-29T11:40:42Z","updated_at":"2017-04-30T18:05:52Z","closed_at":null,"body":"I have several projects in one solution, the event class and event handler class is in Domain project, when I trigger this event in Application project, it won't call the handle method. \r\n\r\nEven I trigger this event in Domain project by calling a method from Application project, it still not work, until I move this class to Application project.\r\n\r\n```\r\n    public class RoleRemovedEvent : EventData\r\n    {\r\n        public string RoleId { get; set; }\r\n\r\n        public RoleRemovedEvent(string roleId)\r\n        {\r\n            RoleId = roleId;\r\n        }\r\n    }\r\n\r\n    public class RoleEventHandler : IEventHandler<RoleRemovedEvent>, ITransientDependency\r\n    {\r\n        private ILogger<RoleEventHandler> _logger { get; set; }\r\n\r\n        public RoleEventHandler(ILogger<RoleEventHandler> logger)\r\n        {\r\n            _logger = logger;\r\n        }\r\n\r\n        public void HandleEvent(RoleRemovedEvent removedEventData)\r\n        {\r\n            _logger.LogInformation(\"Role removed: {0}\", removedEventData.RoleId);\r\n        }\r\n    }\r\n```\r\nAbp version: 2.0.2\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/comments/298247260","html_url":"https://github.com/aspnetboilerplate/aspnetboilerplate/issues/2088#issuecomment-298247260","issue_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/2088","id":298247260,"user":{"login":"hikalkan","id":1210527,"avatar_url":"https://avatars2.githubusercontent.com/u/1210527?v=3","gravatar_id":"","url":"https://api.github.com/users/hikalkan","html_url":"https://github.com/hikalkan","followers_url":"https://api.github.com/users/hikalkan/followers","following_url":"https://api.github.com/users/hikalkan/following{/other_user}","gists_url":"https://api.github.com/users/hikalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/hikalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hikalkan/subscriptions","organizations_url":"https://api.github.com/users/hikalkan/orgs","repos_url":"https://api.github.com/users/hikalkan/repos","events_url":"https://api.github.com/users/hikalkan/events{/privacy}","received_events_url":"https://api.github.com/users/hikalkan/received_events","type":"User","site_admin":false},"created_at":"2017-04-30T18:05:52Z","updated_at":"2017-04-30T18:05:52Z","body":"GetExecutingAssembly and GetEntryAssembly are completely different things. In your project you register entry assembly multiple times but not registering domain module at all. This this for DomainModule:\r\n\r\n````C#\r\nIocManager.RegisterAssemblyByConvention(typeof(DomainModule).GetTypeInfo().Assembly);\r\n````\r\n\r\nor ABP's shortcut:\r\n\r\n````C#\r\nIocManager.RegisterAssemblyByConvention(typeof(DomainModule).GetAssembly());\r\n````\r\n"}}
{"actor":{"display_login":"hikalkan"}}