[WIP] Idea: One Handler rule both Asp.Net and Asp.Net-Core #29
Open
John0King wants to merge 26 commits intoVarorbc:masterfrom
Open
[WIP] Idea: One Handler rule both Asp.Net and Asp.Net-Core #29John0King wants to merge 26 commits intoVarorbc:masterfrom
Asp.Net and Asp.Net-Core #29John0King wants to merge 26 commits intoVarorbc:masterfrom
Conversation
sync code
2.0.0 alpha
sync code
Open
John0King
commented
May 3, 2018
| buildAction(builder); | ||
| } | ||
| return builder.Build(); | ||
| }); |
Contributor
Author
There was a problem hiding this comment.
好像这里 上面用 Singletion 下面用 Scoped 不行呢, 好像会重复添加
Contributor
Author
There was a problem hiding this comment.
Add 的时候使用Lazy<T> , 好像可以, 不过我发现,我有点偏离了我的目标, 我打算 发起支付的 部分叫 Client , 处理回调的部分叫 NotifyHandler , 这样用 Layz<T> 也不是不行,感觉不如 IServiceProvider 给力 , 先试试 Lazy<T> 能走多远吧
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
!!! 不要合并, DO NOT MERGE
To do
Asp.NetandAsp.Net CoreNotifyHubas an adaptor for multipleHubHandler(one handler per hub)description
big picture
IGatewayBuilder添加 。Microsoft.Extensions.Logging.Abstractions这个 Logger 适配器, 不过到2.0之后,他的编译目标是 .net standard 2.0 ,也就是 如果小于 .net framework 4.6.1 无法使用,如果我们要让 .net 45 也能使用,我们要么降级 1.x 版本, 要么做我们自己的抽象层希望大家可以多多提供意见