{"action":"created","issue":{"url":"https://api.github.com/repos/dotnetcore/CAP/issues/263","repository_url":"https://api.github.com/repos/dotnetcore/CAP","labels_url":"https://api.github.com/repos/dotnetcore/CAP/issues/263/labels{/name}","comments_url":"https://api.github.com/repos/dotnetcore/CAP/issues/263/comments","events_url":"https://api.github.com/repos/dotnetcore/CAP/issues/263/events","html_url":"https://github.com/dotnetcore/CAP/issues/263","id":394843717,"node_id":"MDU6SXNzdWUzOTQ4NDM3MTc=","number":263,"title":"取消usecap后，cap的启动时机不合适","user":{"login":"chaiziqi","id":12622920,"node_id":"MDQ6VXNlcjEyNjIyOTIw","avatar_url":"https://avatars2.githubusercontent.com/u/12622920?v=4","gravatar_id":"","url":"https://api.github.com/users/chaiziqi","html_url":"https://github.com/chaiziqi","followers_url":"https://api.github.com/users/chaiziqi/followers","following_url":"https://api.github.com/users/chaiziqi/following{/other_user}","gists_url":"https://api.github.com/users/chaiziqi/gists{/gist_id}","starred_url":"https://api.github.com/users/chaiziqi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaiziqi/subscriptions","organizations_url":"https://api.github.com/users/chaiziqi/orgs","repos_url":"https://api.github.com/users/chaiziqi/repos","events_url":"https://api.github.com/users/chaiziqi/events{/privacy}","received_events_url":"https://api.github.com/users/chaiziqi/received_events","type":"User","site_admin":false},"labels":[{"id":500567622,"node_id":"MDU6TGFiZWw1MDA1Njc2MjI=","url":"https://api.github.com/repos/dotnetcore/CAP/labels/help%20wanted","name":"help wanted","color":"006b75","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-12-30T03:45:16Z","updated_at":"2019-01-03T02:46:46Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nThank you for reporting an issue.\r\n\r\n1. It's RECOMMENDED to submit PR for typo or tiny bug fix.\r\n2. If this's a FEATURE request, please provide: details, pseudo codes if necessary.\r\n3. If this's a BUG, please provide: course repetition, error log and configuration. Fill in as much of the template below as you're able.\r\n\r\n感谢您向我们反馈问题。\r\n\r\n1. 提交问题前，请先阅读 https://github.com/dotnetcore/CAP/wiki 上的文档。\r\n2. 我们推荐如果是小问题（错别字修改，小的 bug fix）直接提交 PR。\r\n3. 如果是一个新需求，请提供：详细需求描述，最好是有伪代码实现。\r\n4. 如果是一个 BUG，请提供：复现步骤，错误日志以及相关配置，并尽量填写下面的模板中的条目。\r\n6. 如果可能，请使用【英文】来提交你的问题。\r\n-->\r\n\r\nPlease answer these questions before submitting your issue.\r\n\r\n- Why do you submit this issue?\r\n- [√ ] Question or discussion\r\n- [ ] Bug\r\n- [ ] Requirement\r\n- [ ] Feature or performance improvement\r\n\r\n___\r\n### Question\r\n- What do you want to know?\r\n取消usecap扩展方法后，cap的启动时机不合适，开发者不能根据自身情况自由的选择cap启动的时间。比我们采用了ABP等开发框架的项目，业务类注入到IOC容器的时机并非在ConfigureServices内，而是延后处理的，在2.3.1版本以前我们可以在框架将IOC容器初始化完毕后，再调用Usecap扩展方法灵活启用，现在却做不到了。您可能会建议我们把IOC容器初始化的时机提前到AddCap之前，但是像ABP这类的框架在初始化IOC容器时，由于没有注入Publisher接口的实现，那么对于依赖了IPublisher接口的业务类，又会因为没有满足IPublisher这个依赖而无法实现初始化，也就是循环依赖的。\r\n      综上所述，考虑实际应用技术栈的复杂项和cap的普适性，能否保留显式的usecap方法供开发者自主决定开启时间，您可以采用隐式默认的在addcap中启用呢？\r\n___\r\n### Bug\r\n- Which version of CAP, OS and .NET Core?\r\n .NET Core  ABP开发框架\r\n- Which company or project?\r\n\r\n- What happen?\r\nIf possible, provide a way for reproducing the error. e.g. demo application, component version.\r\n\r\n___\r\n### Requirement or improvement\r\n- Please describe about your requirements or improvement suggestions."},"comment":{"url":"https://api.github.com/repos/dotnetcore/CAP/issues/comments/451044246","html_url":"https://github.com/dotnetcore/CAP/issues/263#issuecomment-451044246","issue_url":"https://api.github.com/repos/dotnetcore/CAP/issues/263","id":451044246,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTA0NDI0Ng==","user":{"login":"yang-xiaodong","id":8205994,"node_id":"MDQ6VXNlcjgyMDU5OTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/8205994?v=4","gravatar_id":"","url":"https://api.github.com/users/yang-xiaodong","html_url":"https://github.com/yang-xiaodong","followers_url":"https://api.github.com/users/yang-xiaodong/followers","following_url":"https://api.github.com/users/yang-xiaodong/following{/other_user}","gists_url":"https://api.github.com/users/yang-xiaodong/gists{/gist_id}","starred_url":"https://api.github.com/users/yang-xiaodong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yang-xiaodong/subscriptions","organizations_url":"https://api.github.com/users/yang-xiaodong/orgs","repos_url":"https://api.github.com/users/yang-xiaodong/repos","events_url":"https://api.github.com/users/yang-xiaodong/events{/privacy}","received_events_url":"https://api.github.com/users/yang-xiaodong/received_events","type":"User","site_admin":false},"created_at":"2019-01-03T02:46:46Z","updated_at":"2019-01-03T02:46:46Z","author_association":"MEMBER","body":"难道 Abp IOC的注册时间，比 Microsoft.AspNetCore.Hosting 的 `IStartupFilter` 还要晚？ 是在 `public void Configure()` 里面？"}}
{"actor":{"display_login":"yang-xiaodong"}}