Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
research:scope:levels:classpects-loops [2013/04/26 13:21] – ifiguero | research:scope:levels:classpects-loops [2013/04/26 13:23] (current) – ifiguero | ||
---|---|---|---|
Line 2: | Line 2: | ||
The code for the Activity classspect that provokes an aspect loop is: | The code for the Activity classspect that provokes an aspect loop is: | ||
+ | |||
+ | < | ||
+ | using System; | ||
+ | using Eos.Runtime; | ||
+ | |||
+ | public class ActivityAspect | ||
+ | { | ||
+ | | ||
+ | public object LogActivity(Eos.Runtime.AroundADP adp, Point p) | ||
+ | { | ||
+ | object result = null; | ||
+ | Console.WriteLine(" | ||
+ | Console.WriteLine(" | ||
+ | result = adp.InnerInvoke(); | ||
+ | return result; | ||
+ | } | ||
+ | |||
+ | |||
+ | static object around execution(any any(..)) || initialization(any(..)) | ||
+ | && !within(ActivityAspect) && aroundptr(adp) && target(p): | ||
+ | call LogActivity(Eos.Runtime.AroundADP adp, Point p); | ||
+ | } | ||
+ | </ | ||
+ |