Ejemplo n.º 1
0
 public override void Apply(ModelShapeContext context) {
     var chain = new ModelChainContext() {
         Model = _model,
         Prefix = _prefix
     };
     if (_onCompleted != null) {
         chain.Completed += _onCompleted;
     }
     context.ChainedResults.Add(chain);
 }
Ejemplo n.º 2
0
 protected override dynamic BuildShape(ModelShapeContext context) {
     var chain = new ModelChainContext() {
         Model = _model,
         ShapeType = _shapeType,
         Prefix = _prefix
     };
     chain.Root = _shape(chain);
     context.ChainedResults.Add(chain);
     return chain.Root;
 }
Ejemplo n.º 3
0
        protected override dynamic BuildShape(ModelShapeContext context)
        {
            var chain = new ModelChainContext()
            {
                Model     = _model,
                ShapeType = _shapeType,
                Prefix    = _prefix
            };

            chain.Root = _shape(chain);
            context.ChainedResults.Add(chain);
            return(chain.Root);
        }
Ejemplo n.º 4
0
        public override void Apply(ModelShapeContext context)
        {
            var chain = new ModelChainContext()
            {
                Model  = _model,
                Prefix = _prefix
            };

            if (_onCompleted != null)
            {
                chain.Completed += _onCompleted;
            }
            context.ChainedResults.Add(chain);
        }