Ejemplo n.º 1
0
 public async Task <IEnumerable <ChangeLog> > GetChangeLogAsync(
     [Service] IChangeLogService service,
     [Parent] Component application,
     CancellationToken cancellationToken)
 {
     return(await service.GetByComponentId(application.Id, cancellationToken));
 }
Ejemplo n.º 2
0
 public OrderModuleController(ICustomerOrderService customerOrderService, ICustomerOrderSearchService searchService, IStoreService storeService
                              , IUniqueNumberGenerator numberGenerator
                              , IPlatformMemoryCache platformMemoryCache
                              , Func <IOrderRepository> repositoryFactory
                              //, IPermissionScopeService permissionScopeService
                              //, ISecurityService securityService
                              , ICustomerOrderBuilder customerOrderBuilder
                              , IShoppingCartService cartService
                              , INotificationSender notificationSender
                              , IChangeLogService changeLogService, INotificationTemplateRenderer notificationTemplateRenderer)
 {
     _customerOrderService  = customerOrderService;
     _searchService         = searchService;
     _uniqueNumberGenerator = numberGenerator;
     _storeService          = storeService;
     _platformMemoryCache   = platformMemoryCache;
     _repositoryFactory     = repositoryFactory;
     //_securityService = securityService;
     //_permissionScopeService = permissionScopeService;
     _customerOrderBuilder         = customerOrderBuilder;
     _cartService                  = cartService;
     _notificationSender           = notificationSender;
     _changeLogService             = changeLogService;
     _notificationTemplateRenderer = notificationTemplateRenderer;
 }
Ejemplo n.º 3
0
 public OrderModuleController(
     ICustomerOrderService customerOrderService,
     ICustomerOrderSearchService searchService,
     IStoreService storeService,
     IUniqueNumberGenerator numberGenerator,
     ICacheManager<object> cacheManager,
     Func<IOrderRepository> repositoryFactory,
     IPermissionScopeService permissionScopeService,
     ISecurityService securityService,
     ICustomerOrderBuilder customerOrderBuilder,
     IShoppingCartService cartService,
     INotificationManager notificationManager,
     INotificationTemplateResolver notificationTemplateResolver,
     IChangeLogService changeLogService,
     ICustomerOrderTotalsCalculator totalsCalculator)
 {
     _customerOrderService = customerOrderService;
     _searchService = searchService;
     _uniqueNumberGenerator = numberGenerator;
     _storeService = storeService;
     _cacheManager = cacheManager;
     _repositoryFactory = repositoryFactory;
     _securityService = securityService;
     _permissionScopeService = permissionScopeService;
     _customerOrderBuilder = customerOrderBuilder;
     _cartService = cartService;
     _notificationManager = notificationManager;
     _notificationTemplateResolver = notificationTemplateResolver;
     _changeLogService = changeLogService;
     _totalsCalculator = totalsCalculator;
 }
Ejemplo n.º 4
0
 public CategoryIndexBuilder(ISearchProvider searchProvider, ICatalogSearchService catalogSearchService,
                             ICategoryService categoryService, IChangeLogService changeLogService)
 {
     _searchProvider       = searchProvider;
     _categoryService      = categoryService;
     _catalogSearchService = catalogSearchService;
     _changeLogService     = changeLogService;
 }
        public QuoteRequestServiceImpl(Func<IQuoteRepository> quoteRepositoryFactory, IUniqueNumberGenerator uniqueNumberGenerator, IDynamicPropertyService dynamicPropertyService, IEventPublisher<QuoteRequestChangeEvent> eventPublisher, IChangeLogService changeLogService)
		{
			_repositoryFactory = quoteRepositoryFactory;
			_uniqueNumberGenerator = uniqueNumberGenerator;
			_dynamicPropertyService = dynamicPropertyService;
			_eventPublisher = eventPublisher;
            _changeLogService = changeLogService;
        }
 public QuoteRequestServiceImpl(Func <IQuoteRepository> quoteRepositoryFactory, IUniqueNumberGenerator uniqueNumberGenerator, IDynamicPropertyService dynamicPropertyService, IEventPublisher <QuoteRequestChangeEvent> eventPublisher, IChangeLogService changeLogService)
 {
     _repositoryFactory      = quoteRepositoryFactory;
     _uniqueNumberGenerator  = uniqueNumberGenerator;
     _dynamicPropertyService = dynamicPropertyService;
     _eventPublisher         = eventPublisher;
     _changeLogService       = changeLogService;
 }
Ejemplo n.º 7
0
 public LicenseService(Func <ILicenseRepository> licenseRepositoryFactory, IChangeLogService changeLogService, ISettingsManager settingsManager, IEventPublisher eventPublisher
                       , IOptions <LicenseOptions> licenseOptions)
 {
     _licenseRepositoryFactory = licenseRepositoryFactory;
     _changeLogService         = changeLogService;
     _settingsManager          = settingsManager;
     _eventPublisher           = eventPublisher;
     _licenseOptions           = licenseOptions.Value;
 }
Ejemplo n.º 8
0
 public CatalogItemIndexBuilder(ISearchProvider searchProvider, ICatalogSearchService catalogSearchService,
                                IItemService itemService, IPricingService pricingService,
                                IChangeLogService changeLogService)
 {
     _searchProvider       = searchProvider;
     _itemService          = itemService;
     _catalogSearchService = catalogSearchService;
     _pricingService       = pricingService;
     _changeLogService     = changeLogService;
 }
 public CatalogItemIndexBuilder(ISearchProvider searchProvider, ICatalogSearchService catalogSearchService,
                                IItemService itemService, IPricingService pricingService,
                                IChangeLogService changeLogService)
 {
     _searchProvider = searchProvider;
     _itemService = itemService;
     _catalogSearchService = catalogSearchService;
     _pricingService = pricingService;
     _changeLogService = changeLogService;
 }
Ejemplo n.º 10
0
 public ComponentService(
     IComponentStore componentStore,
     IDataLoader <Guid, Component> componentById,
     ISchemaService schemaService,
     IChangeLogService changeLogService)
 {
     _componentStore   = componentStore;
     _componentById    = componentById;
     _schemaService    = schemaService;
     _changeLogService = changeLogService;
 }
Ejemplo n.º 11
0
 public SecurityService(Func <IPlatformRepository> platformRepository, Func <ApplicationUserManager> userManagerFactory, IApiAccountProvider apiAccountProvider,
                        IModuleCatalog moduleCatalog, IPermissionScopeService permissionScopeService, ICacheManager <object> cacheManager, IChangeLogService changeLogService)
 {
     _platformRepository     = platformRepository;
     _userManagerFactory     = userManagerFactory;
     _apiAccountProvider     = apiAccountProvider;
     _cacheManager           = cacheManager;
     _moduleCatalog          = moduleCatalog;
     _permissionScopeService = permissionScopeService;
     _changeLogService       = changeLogService;
 }
Ejemplo n.º 12
0
 public SubscriptionServiceImpl(Func <ISubscriptionRepository> subscriptionRepositoryFactory, ICustomerOrderService customerOrderService, ICustomerOrderSearchService customerOrderSearchService,
                                IStoreService storeService, IUniqueNumberGenerator uniqueNumberGenerator, IChangeLogService changeLogService, IEventPublisher eventPublisher)
 {
     _customerOrderSearchService    = customerOrderSearchService;
     _subscriptionRepositoryFactory = subscriptionRepositoryFactory;
     _customerOrderService          = customerOrderService;
     _storeService          = storeService;
     _uniqueNumberGenerator = uniqueNumberGenerator;
     _changeLogService      = changeLogService;
     _eventPublisher        = eventPublisher;
 }
Ejemplo n.º 13
0
 public VariableService(
     IVariableStore variableStore,
     IVariableValueStore variableValueStore,
     IChangeLogService changeLogService,
     IVariableCryptoProvider cryptoProvider)
 {
     _variableStore      = variableStore;
     _variableValueStore = variableValueStore;
     _changeLogService   = changeLogService;
     _cryptoProvider     = cryptoProvider;
 }
 public CustomerOrderServiceImpl(Func <IOrderRepository> orderRepositoryFactory, IUniqueNumberGenerator uniqueNumberGenerator, IDynamicPropertyService dynamicPropertyService, IShippingMethodsService shippingMethodsService, IPaymentMethodsService paymentMethodsService,
                                 IStoreService storeService, IChangeLogService changeLogService, IEventPublisher eventPublisher, ICustomerOrderTotalsCalculator totalsCalculator)
 {
     RepositoryFactory      = orderRepositoryFactory;
     UniqueNumberGenerator  = uniqueNumberGenerator;
     EventPublisher         = eventPublisher;
     DynamicPropertyService = dynamicPropertyService;
     ShippingMethodsService = shippingMethodsService;
     PaymentMethodsService  = paymentMethodsService;
     StoreService           = storeService;
     ChangeLogService       = changeLogService;
     TotalsCalculator       = totalsCalculator;
 }
Ejemplo n.º 15
0
 public SubscriptionServiceImpl(Func <ISubscriptionRepository> subscriptionRepositoryFactory, ICustomerOrderService customerOrderService,
                                ICustomerOrderSearchService customerOrderSearchService, IStoreService storeService,
                                IUniqueNumberGenerator uniqueNumberGenerator, IChangeLogService changeLogService, IEventPublisher eventPublisher,
                                IPlatformMemoryCache platformMemoryCache)
 {
     CustomerOrderSearchService    = customerOrderSearchService;
     SubscriptionRepositoryFactory = subscriptionRepositoryFactory;
     CustomerOrderService          = customerOrderService;
     StoreService          = storeService;
     UniqueNumberGenerator = uniqueNumberGenerator;
     ChangeLogService      = changeLogService;
     EventPublisher        = eventPublisher;
     PlatformMemoryCache   = platformMemoryCache;
 }
Ejemplo n.º 16
0
 public CustomerOrderServiceImpl(Func <IOrderRepository> orderRepositoryFactory, IUniqueNumberGenerator uniqueNumberGenerator, IEventPublisher <OrderChangeEvent> orderChangingPublisher,
                                 IDynamicPropertyService dynamicPropertyService, IShippingMethodsService shippingMethodsService, IPaymentMethodsService paymentMethodsService,
                                 IStoreService storeService, IChangeLogService changeLogService, IEventPublisher <OrderChangedEvent> orderChangedPublisher)
 {
     RepositoryFactory      = orderRepositoryFactory;
     UniqueNumberGenerator  = uniqueNumberGenerator;
     OrderChangingPublisher = orderChangingPublisher;
     OrderChangedPublisher  = orderChangedPublisher;
     DynamicPropertyService = dynamicPropertyService;
     ShippingMethodsService = shippingMethodsService;
     PaymentMethodsService  = paymentMethodsService;
     StoreService           = storeService;
     ChangeLogService       = changeLogService;
 }
Ejemplo n.º 17
0
 public CustomerOrderServiceImpl(Func <IOrderRepository> orderRepositoryFactory, IUniqueNumberGenerator uniqueNumberGenerator
                                 , IDynamicPropertyService dynamicPropertyService, IStoreService storeService, IChangeLogService changeLogService
                                 , IEventPublisher eventPublisher, ICustomerOrderTotalsCalculator totalsCalculator
                                 , IShippingMethodsRegistrar shippingMethodsRegistrar, IPaymentMethodsRegistrar paymentMethodsRegistrar, IPlatformMemoryCache platformMemoryCache)
 {
     _repositoryFactory        = orderRepositoryFactory;
     _eventPublisher           = eventPublisher;
     _dynamicPropertyService   = dynamicPropertyService;
     _storeService             = storeService;
     _changeLogService         = changeLogService;
     _totalsCalculator         = totalsCalculator;
     _shippingMethodsRegistrar = shippingMethodsRegistrar;
     _paymentMethodsRegistrar  = paymentMethodsRegistrar;
     _platformMemoryCache      = platformMemoryCache;
     _uniqueNumberGenerator    = uniqueNumberGenerator;
 }
Ejemplo n.º 18
0
        public CustomerOrderService(
            Func <IOrderRepository> orderRepositoryFactory, IUniqueNumberGenerator uniqueNumberGenerator
            , IStoreService storeService, IChangeLogService changeLogService
            , IEventPublisher eventPublisher, ICustomerOrderTotalsCalculator totalsCalculator
            , IShippingMethodsSearchService shippingMethodsSearchService, IPaymentMethodsSearchService paymentMethodSearchService,
            IPlatformMemoryCache platformMemoryCache)
        {
            _repositoryFactory            = orderRepositoryFactory;
            _eventPublisher               = eventPublisher;
            _storeService                 = storeService;
            _totalsCalculator             = totalsCalculator;
            _shippingMethodsSearchService = shippingMethodsSearchService;

            _paymentMethodSearchService = paymentMethodSearchService;
            _platformMemoryCache        = platformMemoryCache;
            _uniqueNumberGenerator      = uniqueNumberGenerator;
        }
Ejemplo n.º 19
0
 public ApplicationService(
     IApplicationStore appStore,
     IChangeLogService changeLogService,
     IApplicationPartDataLoader applicationPartByIdDataLoader,
     IApplicationPartComponentDataLoader applicationPartComponentByIdDataloader,
     IComponentStore compStore,
     IDataLoader <Guid, Component> componentById,
     ISchemaService schemaService)
 {
     _appStore         = appStore;
     _changeLogService = changeLogService;
     _applicationPartByIdDataLoader           = applicationPartByIdDataLoader;
     _applicationPartByIdDataloaderDataLoader = applicationPartComponentByIdDataloader;
     _compStore     = compStore;
     _schemaService = schemaService;
     _componentById = componentById;
 }
    public async ValueTask <string?> GetValuesAsync(
        [Service] IChangeLogService changeLogService,
        [Parent] ApplicationPartComponent parent,
        int?version,
        CancellationToken cancellationToken)
    {
        if (version is null)
        {
            return(parent.Values);
        }

        ChangeLog?changelog = await changeLogService
                              .GetByApplicationPartComponentIdAndVersion(parent.Id, version.Value, cancellationToken);

        return(changelog switch
        {
            { Change : ApplicationPartComponentValuesChange {
                  Values : { } v
              } } => v,
Ejemplo n.º 21
0
 public LogChangesUserChangedEventHandler(IChangeLogService changeLogService)
 {
     _changeLogService = changeLogService;
 }
 public CustomerOrderServiceExtImpl(Func <IOrderRepository> orderRepositoryFactory, IUniqueNumberGenerator uniqueNumberGenerator, IEventPublisher <OrderChangeEvent> eventPublisher,
                                    IDynamicPropertyService dynamicPropertyService, IShippingMethodsService shippingMethodsService, IPaymentMethodsService paymentMethodsService,
                                    IStoreService storeService, IChangeLogService changelogService, ICustomerOrderSearchService orderSearchService) : base(orderRepositoryFactory, uniqueNumberGenerator, eventPublisher, dynamicPropertyService, shippingMethodsService, paymentMethodsService, storeService, changelogService)
 {
     _orderSearchService = orderSearchService;
 }
Ejemplo n.º 23
0
 public ProductAvailabilityChangesProvider(IChangeLogService changeLogService, IInventoryService inventoryService)
 {
     _changeLogService = changeLogService;
     _inventoryService = inventoryService;
 }
 public LogChangesChangedEventHandler(IChangeLogService changeLogService, ILastModifiedDateTime lastModifiedDateTime, ISettingsManager settingsManager)
 {
     _changeLogService     = changeLogService;
     _lastModifiedDateTime = lastModifiedDateTime;
     _settingsManager      = settingsManager;
 }
Ejemplo n.º 25
0
 public ProductDocumentChangesProvider(Func <ICatalogRepository> catalogRepositoryFactory, IChangeLogService changeLogService)
 {
     _catalogRepositoryFactory = catalogRepositoryFactory;
     _changeLogService         = changeLogService;
 }
Ejemplo n.º 26
0
 public LogOrderChangesObserver(IChangeLogService changeLogService, IMemberService memberService)
 {
     _changeLogService = changeLogService;
     _memberService    = memberService;
 }
Ejemplo n.º 27
0
 public LogOrderChangesObserver(IChangeLogService changeLogService, IMemberService memberService, string[] observedProperties)
     : this(changeLogService, memberService)
 {
 }
Ejemplo n.º 28
0
 public LogChangesSubscriptionChangedEventHandler(IChangeLogService changeLogService)
 {
     _changeLogService = changeLogService;
 }
 public LogChangesOrderChangedEventHandler(IChangeLogService changeLogService, IMemberService memberService)
 {
     _changeLogService = changeLogService;
     _memberService    = memberService;
 }
 public async Task <IEnumerable <ChangeLog> > GetChangeLogAsync(
     [Service] IChangeLogService service,
     [Parent] ApplicationPart applicationPart,
     CancellationToken cancellationToken)
 => await service.GetByApplicationPartId(applicationPart.Id, cancellationToken);
Ejemplo n.º 31
0
 public ProductPriceDocumentChangesProvider(IChangeLogService changeLogService, IPricingService pricingService)
 {
     _changeLogService = changeLogService;
     _pricingService   = pricingService;
 }
Ejemplo n.º 32
0
 public ChangeLogController(IChangeLogService changeLog)
 {
     _changeLog = changeLog;
 }