-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Idea: One Handler rule both Asp.Net
and Asp.Net-Core
#29
base: master
Are you sure you want to change the base?
Conversation
sync code
2.0.0 alpha
sync code
buildAction(builder); | ||
} | ||
return builder.Build(); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好像这里 上面用 Singletion 下面用 Scoped 不行呢, 好像会重复添加
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add 的时候使用Lazy<T>
, 好像可以, 不过我发现,我有点偏离了我的目标, 我打算 发起支付的 部分叫 Client , 处理回调的部分叫 NotifyHandler , 这样用 Layz<T>
也不是不行,感觉不如 IServiceProvider
给力 , 先试试 Lazy<T>
能走多远吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
恩恩,先走走看吧,
!!! 不要合并, DO NOT MERGE
To do
Asp.Net
andAsp.Net Core
NotifyHub
as 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 版本, 要么做我们自己的抽象层希望大家可以多多提供意见