English 中文(简体)
环斑和银光中环绕的物体链
原标题:events passed up chain of objects in c# and silverlight

我有一套协作目标,我希望保持这一结构不变,因为把关切、单一负责原则和可测试性分开。

我面临的挑战是,如何最好地处理链条上的不同步事件。

我的设想是:

目的

目的 A. 发出反对B的呼吁,最终导致反对D向外部系统发出一致呼吁。

问题:我期待着建议的最佳做法,即如何让反对者发出非锁定电话,然后将目标D完成的成果通知他。

我与通过和链条活动的人一道工作,使各个层次上下台,但这似乎过于复杂,我对业绩感到关切。

就如何更好地处理这一问题提出建议?

感谢。

最佳回答

诸如。 净额。 它允许你签署不同类型的活动,而不必担心谁公布活动。 换言之,目标A赞同以目标D出版的“行动组合”活动,但目标A从未提及或知道它的存在。

问题回答

您可在MVVVER Light Toolkit查询信使的功能。 它基本上像一个Caleb Vear建议的那样是一个事件。 多国机器人电灯的主要目的是为多国机器人听器模式提供便利,但是如果需要,你可以自行使用信使功能。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签