-
Notifications
You must be signed in to change notification settings - Fork 40
CatLib.Core 1.2 Beta #16
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
Merged
Conversation
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
…feature/events
Feature/events
Codecov Report
@@ Coverage Diff @@
## master #16 +/- ##
==========================================
+ Coverage 97.42% 98.09% +0.66%
==========================================
Files 30 33 +3
Lines 2994 3942 +948
==========================================
+ Hits 2917 3867 +950
+ Misses 59 53 -6
- Partials 18 22 +4
Continue to review full report at Codecov.
|
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.
新增内容
IDisposable接口的对象,在Release时会自动触发接口。IVariant),允许将一个基础类型转为复杂类型。Params数据结构,允许容器进行参数名参数匹配。BindMethod方法允许向容器注册一个方法。OnRebound和Watch函数,该函数用于监听当已经解决的服务发生重定义时触发的事件,这个事件对实例绑定的服务也会有效。-- Filter函数可以过滤返回值为false的键值对
-- Remove函数可以移除比较回掉返回为true的元素
-- Modify函数可以直接修改键值对的值
-- AddRange允许批量添加到字典
-- Map函数将回调的返回值作为新的字典
-- Keys函数可以获取字典的键名数组
-- Values函数可以获取字典的值数组
-- Get函数可以通过点状表达式访问深度字典
-- Set函数可以通过点状表达式写入深度字典
-- Remove函数可以通过点状表达式删除深度字典元素
RemoveAt函数,可以通过数组下标移除元素,并且返回被移除的元素值。Container.Call支持直接为lambda表达式提供依赖注入。更新内容
Bind)校验并及时的抛出异常。string被认为是不可以被实例的对象。OnResolving和OnRelease所加入的新的修饰器不会再处理已经生成的实例。实例的变化应该使用Watch来监控@变量名来推测类型了。BindIfAPI 不再返回已绑定的api,而是返回bool来表示是否成功绑定,IBindData将以out参数的形式返回。Bug修复
App.Trigger返回值不正确的bug。移除内容