internal void Apply(StateContext context) { if (_action != null) { _action(context); } }
internal ModifiableResponse Execute(StateContext context) { try { Context = context; EnsureInitialized <Dictionary <string, ResponseStorage> >(() => new Dictionary <string, ResponseStorage>()); return(execute()); } finally { Context = null; } }
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; } }
internal ModifiableResponse ExecuteState(StateContext context) { return(State.Execute(context)); }