public object Execute(TransformContext context) { var service = context.Service <ISimpleService>(); var arg = context.Arguments.Get <string>("foo"); return(service.ToUpper(arg)); }
public object Execute(TransformContext context) { var input = context.Arguments.Get <string>("input"); var data = new ModelData(); context .Service <IEmailParser>() .Parse(formatMessage(input, context.Model)) .Each(_ => data[_.Key] = _.Value); return(data); }