示例#1
0
 /// <summary>
 /// DEVELOPERS do not use!
 /// A hack method needed in some VERY RARE cases, like serving an error page form the filter which is out of portal scope.
 /// </summary>
 public void ___InternalInjectPortal(Portal portal           = null,
                                     Theme theme             = null,
                                     WorkMatch match         = null,
                                     JsonDataMap matchedVars = null)
 {
     m_Portal            = portal;
     m_PortalTheme       = theme;
     m_PortalMatch       = match;
     m_PortalMatchedVars = matchedVars;
 }
示例#2
0
        protected WorkHandler(WorkDispatcher dispatcher, string name, int order, WorkMatch match) : base(dispatcher)
        {
            if (name.IsNullOrWhiteSpace())
            {
                name = "{0}({1})".Args(GetType().FullName, Guid.NewGuid());
            }

            m_Name       = name;
            m_Dispatcher = dispatcher;
            m_Server     = dispatcher.ComponentDirector;
            m_Order      = order;
            if (match != null)
            {
                m_Matches.Register(match);
            }
        }
示例#3
0
        protected WorkHandler(WorkDispatcher dispatcher, string name, int order, WorkMatch match) : base(dispatcher)
        {
            if (dispatcher == null)
            {
                throw new WaveException(StringConsts.ARGUMENT_ERROR + GetType().FullName + ".ctor(dispatcher==null|empty)");
            }

            if (name.IsNullOrWhiteSpace())
            {
                name = "{0}({1})".Args(GetType().FullName, Guid.NewGuid());
            }

            m_Name       = name;
            m_Dispatcher = dispatcher;
            m_Server     = dispatcher.ComponentDirector;
            m_Order      = order;
            if (match != null)
            {
                m_Matches.Register(match);
            }
        }
示例#4
0
 /// <summary>
 /// Internal method. Developers do not call
 /// </summary>
 internal void ___SetWorkMatch(WorkMatch match, JsonDataMap vars)
 {
     m_Match = match; m_MatchedVars = vars;
 }