Exemple #1
0
        public ModelShapeBuilder Builder(IContent model, CompositionContext context)
        {
            var paradigms = context.Get <ContentList, ParadigmsContext>();
            var builder   = _origami.ContentBuilder(model).WithDisplayType(context.Get <ContentList, ShapeMetadata>().DisplayType);

            if (paradigms != null)
            {
                builder.WithParadigms(paradigms);
            }
            return(builder);
        }
 public T Build <T>()
 {
     return(_context.Get <T>());
 }
 public ModelShapeBuilder Builder(IContent model,CompositionContext context) {
     var paradigms = context.Get<ContentList,ParadigmsContext>();
     var builder = _origami.ContentBuilder(model).WithDisplayType(context.Get<ContentList, ShapeMetadata>().DisplayType);
     if (paradigms != null) {
         builder.WithParadigms(paradigms);
     }
     return builder;
 }