tripvur.blogg.se

Caliburn windowmanager
Caliburn windowmanager





caliburn windowmanager caliburn windowmanager

Additionally, all Actions in Caliburn.Micro have access to a special execution context which can be used to discover additional information useful in setting up view-oriented coroutines, such as playing animations. Caliburn.Micro makes this available transparently from any Action method since it can set up all the necessary machinery to enable this feature without the developer needing to do any extra work. This functionality enables us to write our code in a sequential fashion, but have it execute asynchronously, which greatly improves the understandability of the code.

caliburn windowmanager

Practically speaking, this is very useful for asynchronous programming since we can "enter" the method and execute code to set up an async request, then "re-enter" it when the async request is complete. Since the compiler generates a state machine for us for each iterator function, you can essentially call the method multiple times with different states and effectively "enter" the method at a different location each time. In Caliburn.Micro, we implement this functionality on top of C#'s iterators. Rob Eisenberg: Coroutines are a CS term which describes the ability to create a subroutine that can have multiple entry points.







Caliburn windowmanager