public DeleteRequestHandler(IEntityContext context, ServiceProviderContainer container, CrudlessConfigManager profileManager) : base(context, profileManager) { _container = container; }
public UniversalRequestDecorator(CrudlessConfigManager profileManager, ServiceProviderContainer container, Func <IRequestHandler <TRequest> > decorateeFactory) { _container = container; _decorateeFactory = decorateeFactory; _requestConfig = profileManager.GetRequestConfigFor <TRequest>(); }
public GetAllRequestHandler(IEntityContext context, ServiceProviderContainer container, CrudlessConfigManager profileManager) : base(context, profileManager) { _container = container; Options = RequestConfig.GetOptionsFor <TEntity>(); }
protected CrudlessRequestHandler(IEntityContext context, CrudlessConfigManager profileManager) { Context = context; RequestConfig = profileManager.GetRequestConfigFor <TRequest>(); DataContext = new DataContext <TEntity>(RequestConfig); var errorHandler = RequestConfig.ErrorConfig.GetErrorHandlerFor <TEntity>(); ErrorDispatcher = new ErrorDispatcher(errorHandler); }
public void Initialize() { var assemblies = _assemblies.Distinct().ToArray(); var configManager = new CrudlessConfigManager(_container, assemblies); using (var scope = _container.AllowOverrides()) { _container.RegisterInstance(configManager); _container.RegisterInstance(_container); } _tasks.ForEach(t => t.Run(_container, assemblies, _options)); }
protected DeleteRequestHandlerBase(IEntityContext context, CrudlessConfigManager profileManager) : base(context, profileManager) { }
protected MergeRequestHandlerBase(IEntityContext context, CrudlessConfigManager profileManager) : base(context, profileManager) { Options = RequestConfig.GetOptionsFor <TEntity>(); }
public void SetUp() { _profileManager = Container.GetInstance <CrudlessConfigManager>(); }