protected override string OnInit()
        {
            if (targetMethod == null)
            {
                return("Missing Method");
            }

            try {
                functionWrapper.Init(targetMethod.IsStatic ? null : agent);
                return(null);
            }
            catch { return("ImplementedAction Error"); }
        }
Пример #2
0
        protected override string OnInit()
        {
            if (targetMethod == null)
            {
                return("Missing Property");
            }

            try {
                functionWrapper.Init(targetMethod.IsStatic ? null : agent);
                return(null);
            }
            catch { return("Get Property Error"); }
        }
Пример #3
0
        //store the method info on agent set for performance
        protected override string OnInit()
        {
            if (targetMethod == null)
            {
                return("CheckFunction Error");
            }

            try
            {
                functionWrapper.Init(agent);
                return(null);
            }
            catch { return("CheckFunction Error"); }
        }
        protected override string OnInit()
        {
            if (functionWrapper == null)
            {
                return("No Method selected");
            }
            if (targetMethod == null)
            {
                return(string.Format("Missing Method '{0}'", functionWrapper.GetMethodString()));
            }

            try {
                functionWrapper.Init(targetMethod.IsStatic ? null : agent);
                return(null);
            }
            catch { return("ImplementedAction Error"); }
        }
Пример #5
0
        //store the method info on init for performance
        protected override string OnInit()
        {
            if (functionWrapper == null)
            {
                return("No Property selected");
            }
            if (targetMethod == null)
            {
                return(string.Format("Missing Property '{0}'", functionWrapper.GetMethodString()));
            }

            try
            {
                functionWrapper.Init(agent);
                return(null);
            }
            catch { return("GetProperty Error"); }
        }
Пример #6
0
        //store the method info on init for performance
        protected override string OnInit()
        {
            if (functionWrapper == null)
            {
                return("No Property selected");
            }
            if (targetMethod == null)
            {
                return(string.Format("Missing Property '{0}'", functionWrapper.GetMethodString()));
            }

            try
            {
                object instance = targetMethod.IsStatic ? default(T) : target.value;
                functionWrapper.Init(instance);
                return(null);
            }
            catch { return("GetProperty Error"); }
        }