Ejemplo n.º 1
0
 public override void Initialize(IServiceProvider serviceProvider, MinionPolicy policy, CommerceContext globalContext)
 {
     base.Initialize(serviceProvider, policy, globalContext);
     _synchronizeProductPipeline = this.ResolvePipeline <ISynchronizeProductPipeline>();
     _removeListEntitiesPipeline = this.ResolvePipeline <IRemoveListEntitiesPipeline>();
     _getListsEntityIdsPipeline  = this.ResolvePipeline <IGetListsEntityIdsPipeline>();
 }
 public override void Initialize(IServiceProvider serviceProvider,
                                 MinionPolicy policy,
                                 CommerceContext globalContext)
 {
     base.Initialize(serviceProvider, policy, globalContext);
     ExportOrderPipeline = serviceProvider.GetService <IExportOrderMinionPipeline>();
 }
Ejemplo n.º 3
0
 public override void Initialize(
     IServiceProvider serviceProvider,
     MinionPolicy policy,
     CommerceContext globalContext)
 {
     base.Initialize(serviceProvider, policy, globalContext);
     _serviceProvider = serviceProvider;
 }
Ejemplo n.º 4
0
 public override void Initialize(IServiceProvider serviceProvider,
                                 ILogger logger,
                                 MinionPolicy policy,
                                 CommerceEnvironment environment,
                                 CommerceContext globalContext)
 {
     base.Initialize(serviceProvider, logger, policy, environment, globalContext);
     ReconcilePointsMinionPipeline = serviceProvider.GetService <IReconcilePointsMinionPipeline>();
 }
        public override void Initialize(IServiceProvider serviceProvider,
                                        ILogger logger,
                                        MinionPolicy policy,
                                        CommerceEnvironment environment,
                                        CommerceContext globalContext)
        {
            base.Initialize(serviceProvider, logger, policy, environment, globalContext);

            this.exportOrderPipeline = serviceProvider.GetService <IExportOrderPipeline>();
        }
Ejemplo n.º 6
0
        private void LogInitialization(ILogger logger, MinionPolicy policy)
        {
            var log = new StringBuilder();

            log.Append($"CartsCleanupMinion settings:{System.Environment.NewLine}");
            log.AppendLine($"\t WakeupInterval = {policy.WakeupInterval}");
            log.AppendLine($"\t ListToWatch = {policy.ListToWatch}");
            log.AppendLine($"\t ItemsPerBatch {policy.ItemsPerBatch}");
            log.AppendLine($"\t SleepBetweenBatches {policy.SleepBetweenBatches}");
            log.AppendLine($"\t DaysToRetainCarts = {maintenancePolicy.DaysToRetainCarts}");
            log.AppendLine($"\t StopOverrun = {maintenancePolicy.StopOverrun}");
            log.AppendLine($"\t AllowedSchedules:");

            for (int i = 0; i < maintenancePolicy.AllowedSchedules.Count(); i++)
            {
                log.AppendLine($"\t\t StartTime = {maintenancePolicy.AllowedSchedules[i].StartTime}, EndTime = {maintenancePolicy.AllowedSchedules[i].StartTime}");
            }

            logger.LogInformation(log.ToString());
        }
Ejemplo n.º 7
0
 public override void Initialize(IServiceProvider serviceProvider, ILogger logger, MinionPolicy policy, CommerceEnvironment environment, CommerceContext globalContext)
 {
     base.Initialize(serviceProvider, logger, policy, environment, globalContext);
     CommerceCommander = serviceProvider.GetService <CommerceCommander>();
     LogInitialization();
 }
Ejemplo n.º 8
0
 public override void Initialize(IServiceProvider serviceProvider, ILogger logger, MinionPolicy policy, CommerceEnvironment environment,
                                 CommerceContext globalContext)
 {
     base.Initialize(serviceProvider, logger, policy, environment, globalContext);
     this.MinionPipeline  = serviceProvider.GetService <IProcessCustomerPipeline>();
     this.CommerceCommand = new CommerceCommand(serviceProvider);
 }
Ejemplo n.º 9
0
        public override void Initialize(IServiceProvider serviceProvider, MinionPolicy policy, CommerceContext globalContext)
        {
            base.Initialize(serviceProvider, policy, globalContext);

            Pipeline = serviceProvider.GetService <SendOrderToServiceBusPipeline>();
        }
Ejemplo n.º 10
0
        public override void Initialize(IServiceProvider serviceProvider, MinionPolicy policy, CommerceContext commerceContext)
        {
            base.Initialize(serviceProvider, policy, commerceContext);

            waitingForPaymentOrdersMinionPipeline = serviceProvider.GetService <IWaitingForPaymentOrdersMinionPipeline>();
        }
Ejemplo n.º 11
0
 public override void Initialize(IServiceProvider serviceProvider, MinionPolicy policy, CommerceContext commerceContext)
 {
     base.Initialize(serviceProvider, policy, commerceContext);
     Pipeline = serviceProvider.GetService <ISynchronizeCatalogMinionPipeline>();
 }