Ejemplo n.º 1
0
        public object WrapFlowScope(IJointPoint joinpoint)
        {
            var aspectType = typeof(TAspectType);
            var lifecycle  = PerCFlowAspectLifecycle.For(aspectType);

            lifecycle.Push(AspectRuntime.Provider.GetFactory(aspectType).CreateInstance(aspectType, joinpoint));
            try
            {
                return(joinpoint.Execute());
            }
            finally
            {
                lifecycle.Pop();
            }
        }
Ejemplo n.º 2
0
 public IAspectLifecycle GetLifecycle(Type aspectType, IAspectFactory factory)
 {
     return(PerCFlowAspectLifecycle.For(aspectType));
 }