上一页 1 ··· 176 177 178 179 180 181 182 183 184 ··· 399 下一页
摘要: 事件总线知多少(1) 总结出以下几条: 事件总线维护一个事件源与事件处理的映射字典; 通过单例模式,确保事件总线的唯一入口; 利用反射完成事件源与事件处理的初始化绑定; 提供统一的事件注册、取消注册和触发接口。 eShopOnContainers 知多少[5]:EventBus With Rabbi 阅读全文
posted @ 2020-05-14 18:41 ChuckLu 阅读(209) 评论(0) 推荐(0)
摘要: Explanation of the UML arrows https://www.cnblogs.com/chucklu/p/10623671.html 想要学习设计模式,你得先会看类图,一张图读懂UML 虚线箭头指向依赖dependency; 实线箭头指向关联associate; 虚线三角指向接 阅读全文
posted @ 2020-05-14 16:33 ChuckLu 阅读(360) 评论(0) 推荐(0)
摘要: DDD理论学习系列——案例及目录 UnitOfWork知多少 『设计模式』之小试牛刀 事件总线知多少(1) 阅读全文
posted @ 2020-05-14 16:30 ChuckLu 阅读(149) 评论(0) 推荐(0)
摘要: https://docs.microsoft.com/en-us/visualstudio/msbuild/customize-your-build?view=vs-2019 MSBuild projects that use the standard build process (importin 阅读全文
posted @ 2020-05-13 14:20 ChuckLu 阅读(331) 评论(0) 推荐(0)
摘要: WaitAll vs WhenAll 回答1 Task.WaitAll blocks the current thread until everything has completed. Task.WhenAll returns a task which represents the action 阅读全文
posted @ 2020-05-12 16:51 ChuckLu 阅读(302) 评论(0) 推荐(0)
摘要: When does a C# Task actually start? Calling an async method returns a hot task, a task that has already been started. So there is no actual code neces 阅读全文
posted @ 2020-05-12 16:08 ChuckLu 阅读(162) 评论(0) 推荐(0)
摘要: What are 'closures' in .NET? I have an article on this very topic. (It has lots of examples.) In essence, a closure is a block of code which can be ex 阅读全文
posted @ 2020-05-12 14:46 ChuckLu 阅读(135) 评论(0) 推荐(0)
摘要: 经过测试发现,多线程操作都是安全的。甚至包括在遍历的时候,进行删除操作 https://github.com/ChuckTest/ConcurrentTest class Program { private static readonly ConcurrentDictionary<int, int> 阅读全文
posted @ 2020-05-11 19:15 ChuckLu 阅读(259) 评论(0) 推荐(0)
摘要: When Iterating Over ConcurrentDictionary and only reading, is ConcurrentDictionary locked? https://referencesource.microsoft.com/#mscorlib/system/Coll 阅读全文
posted @ 2020-05-11 14:11 ChuckLu 阅读(703) 评论(0) 推荐(0)
摘要: ArrayList.Synchronized Method Returns a list wrapper that is synchronized (thread safe). The following code example shows how to lock the collection u 阅读全文
posted @ 2020-05-11 11:28 ChuckLu 阅读(226) 评论(0) 推荐(0)
上一页 1 ··· 176 177 178 179 180 181 182 183 184 ··· 399 下一页