Ejemplo n.º 1
0
        protected Transformer(int transformerId, TransformerDefinition definition, TransformerBase transformer, Logger log)
        {
            Definition = definition;

            if (Definition != null) // FaultyInMemoryTransformer can have this
            {
                Definition.TransfomerId = transformerId;
            }

            _transformer = transformer;
            _log         = log;
        }
Ejemplo n.º 2
0
 public TransformationScope(TransformerBase transformer, BlittableJsonReaderObject transformerParameters, IncludeDocumentsCommand include, DocumentsStorage documentsStorage, TransformerStore transformerStore, DocumentsOperationContext context, bool nested)
 {
     _transformer = transformer;
     _context     = context;
     _nested      = nested;
     if (_nested == false)
     {
         Debug.Assert(CurrentTransformationScope.Current == null);
         CurrentTransformationScope.Current = new CurrentTransformationScope(transformerParameters, include, documentsStorage, transformerStore, context);
     }
     else
     {
         Debug.Assert(CurrentTransformationScope.Current != null);
     }
 }