Esempio n. 1
0
 internal void Apply(StateContext context)
 {
     if (_action != null)
     {
         _action(context);
     }
 }
Esempio n. 2
0
        internal ModifiableResponse Execute(StateContext context)
        {
            try
            {
                Context = context;
                EnsureInitialized <Dictionary <string, ResponseStorage> >(() => new Dictionary <string, ResponseStorage>());

                return(execute());
            }
            finally
            {
                Context = null;
            }
        }
Esempio n. 3
0
        private void setProperties(StateContext context, StateProperty2[] properties)
        {
            var index = 0;

            foreach (var value in context.Substitutions)
            {
                if (index >= properties.Length)
                {
                    //no properties to be set
                    return;
                }

                context.SetValue(properties[index], value);

                ++index;
            }
        }
Esempio n. 4
0
 internal ModifiableResponse ExecuteState(StateContext context)
 {
     return(State.Execute(context));
 }