public void Build(CompositionContext context)
 {
     context.Mutate <TTag, TMut>((m) => mutator(m, context));
 }
Esempio n. 2
0
 public void Build(CompositionContext context)
 {
     context.Remove <T>();
 }
Esempio n. 3
0
 protected abstract bool IsInScope(CompositionContext context);
 /// <summary>
 /// TODO: Not called right now unless we sort out the class hierarchy per above comment
 /// </summary>
 /// <param name="context"></param>
 /// <returns></returns>
 protected override bool IsInScope(CompositionContext context)
 {
     return(context.HasParam <TParam>(_paramName));
 }
 /// <summary>
 /// Allows access to the paramater value once you are in Execution
 /// </summary>
 /// <param name="context"></param>
 /// <returns></returns>
 public TParam Get(CompositionContext context)
 {
     return(context.Param <TParam>(_paramName));
 }
Esempio n. 6
0
 public void Build(CompositionContext context)
 {
     context.Tag <T>();
 }