public override void Apply(ModelShapeContext context) { var chain = new ModelChainContext() { Model = _model, Prefix = _prefix }; if (_onCompleted != null) { chain.Completed += _onCompleted; } context.ChainedResults.Add(chain); }
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; }
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); }