예제 #1
0
 public virtual object Intercept(Net.Vpc.Upa.Impl.Util.PlatformMethodProxyEvent <T> @event) /* throws System.Exception */
 {
     if (methodFilter == null || methodFilter.Accept(@event.GetMethod()))
     {
         return(Net.Vpc.Upa.UPA.GetContext().Invoke <object>(new Net.Vpc.Upa.Impl.Config.MakeSessionAwareMethodInterceptor2Action <T>(@event), null));
     }
     else
     {
         return(@event.InvokeBase(@event.GetObject(), @event.GetArguments()));
     }
 }
예제 #2
0
 public virtual object Intercept(Net.Vpc.Upa.Impl.Util.PlatformMethodProxyEvent <T> @event) /* throws System.Exception */
 {
     if (methodFilter == null || methodFilter.Accept(@event.GetMethod()))
     {
         System.Collections.Generic.Dictionary <string, object> properties = new System.Collections.Generic.Dictionary <string, object>();
         try {
             return(Net.Vpc.Upa.UPA.GetContext().Invoke <object>(new Net.Vpc.Upa.Impl.Config.MakeSessionAwareMethodInterceptorAction <T>(this, @event)));
         } catch (Net.Vpc.Upa.Exceptions.ExecutionException e) {
             throw (e).InnerException;
         }
     }
     else
     {
         return(@event.InvokeBase(instance, @event.GetArguments()));
     }
 }