public override string InvokeInner(string locale, AppInfo app, SessionInfo session, AbstractCallback.EventListener listener)
 {
     return(InvokeWebServiceCallback(
                GetESpaceId(app),
                GetTenantId(app),
                GetUserId(session),
                locale,
                "callbackName=" + GetCallbackEvent(listener).ToString()));
 }
 protected CallbackEvent GetCallbackEvent(AbstractCallback.EventListener listener)
 {
     return(listener == null? CallbackEvent.Unknown: listener.Event);
 }
        public override string InvokeInner(string locale, AppInfo app, SessionInfo session, AbstractCallback.EventListener listener)
        {
            string[] urlParts = _url.Split('|');


            Assembly lib;
            string   handlerClassName;

            if (urlParts.Length == 2)
            {
                if (urlParts[0].IndexOf('/') != -1)
                {
                    lib = Assembly.LoadFrom(urlParts[0]);
                }
                else
                {
                    lib = Assembly.Load(urlParts[0]);
                }
                handlerClassName = urlParts[1];
            }
            else
            {
                lib = Assembly.GetExecutingAssembly();
                handlerClassName = urlParts[0];
            }


            ILibraryCallbackHandler handler = (ILibraryCallbackHandler)lib.CreateInstance(handlerClassName);

            return(handler.GetDynamicHtmlInjection(app, session, locale, _data));
        }
 public abstract object Invoke(string locale, AppInfo app, SessionInfo session, AbstractCallback.EventListener listener);
Ejemplo n.º 5
0
 public override sealed object Invoke(string locale, AppInfo app, SessionInfo session, AbstractCallback.EventListener listener)
 {
     return(InvokeInner(locale, app, session, listener));
 }