public ProjectionProcessor( IProjectionOptionsFactory optionsFactory, IProjectionFactory projectionFactory, IProjectionDiagnostics diagnostics) { this.projectionFactory = projectionFactory; this.diagnostics = diagnostics; filters = optionsFactory .GetOptions <TProjection>() .Filters; projectionMetadata = projectionFactory .GetProjectionMetadata <TProjection>(); projectionName = typeof(TProjection).Name; }
/// <summary> /// Create a new instance of <see cref="TypeProjector"/> /// </summary> protected TypeProjector(Type left, Type right, IProjectionFactory factory = null) { if (left == null) { throw new ArgumentNullException(nameof(left)); } if (right == null) { throw new ArgumentNullException(nameof(right)); } if (factory == null) { factory = ProjectionFactory.Auto; } Projections = factory.CreateProjections(left, right).ToList(); }
public ProjectionService(IProjectionFactory factory, ITypeResolver typeResolver) { _factory = factory; _typeResolver = typeResolver; }
public ProjectionManager(IProjectionFactory projectionFactory) { Contract.Requires(projectionFactory != null); _projectionFactory = projectionFactory; }
/// <summary> /// Create a new type projector /// </summary> public static TypeProjector Create(Type left, Type right, IProjectionFactory factory = null) { return(new TypeProjector(left, right, factory)); }
/// <summary> /// Create a new type projector /// </summary> public static TypeProjector Create <TLeft, TRight>(IProjectionFactory factory = null) { return(new TypeProjector(typeof(TLeft), typeof(TRight), factory)); }
public ProjectorBase AddProjectionFactory(IProjectionFactory projectionFactory) { ProjectionFactory = projectionFactory ?? new ActivatorProjectionFactory(); return(this); }
public Observer(IProjectionFactory factory) { Projection = factory.CreateProjection(); }
public ProjectionService(IProjectionFactory factory, ITypeResolver typeResolver) { _factory = factory; _typeResolver = typeResolver; }
/// <summary> /// Creates a new instance of <see cref="ProjectionEntityMapper{TEntity,TModel}"/> /// </summary> public ProjectionEntityMapper(IProjectionFactory factory = null) { _projector = TypeProjector.Create <TEntity, TModel>(factory); }
public ProjectionManager2(IProjectionFactory <TProjection> projectionFactory, IProjectionHandlerCatalog catalog) { }