public EntityTranslator(IEntityFactory <TEntity> entityFactory, IReadOnlyList <IPropertyTranslator <TEntity, TInput, TSchema> > propertyTranslaters) { _entityFactory = entityFactory; _propertyTranslaters = propertyTranslaters; _observers = new TranslatorObservable <TSchema>(); }
public Translator(IReadOnlyDictionary <Type, IEntityTranslator <TSchema> > entityTranslators) { _entityTranslators = entityTranslators; _observers = new TranslatorObservable <TSchema>(); _handles = _entityTranslators.Values.Select(x => x.ConnectTranslateObserver(_observers)).ToArray(); }
public ExcludeEntityTranslator(TranslateEntityFilter <TEntity, TSchema> filter = null) { _filter = filter; _observers = new TranslatorObservable <TSchema>(); }