Ejemplo n.º 1
0
        public PipelineModule(IPipelineModuleConfiguration pipelineModuleConfiguration, IPEMBus pemBus, IPipelineModuleRuntime moduleHost)
        {
            _pemBus = pemBus;
            _pipelineModuleConfiguration = pipelineModuleConfiguration;
            ModuleHost = moduleHost;

            _pipelineMetrics = new UsageMetrics(pemBus.Instance.PrimaryHost.Id, pemBus.Instance.Id, Id);
            _pipelineMetrics.Reset();
        }
Ejemplo n.º 2
0
        public ListenerModule(ListenerConfiguration listenerConfiguration, IPEMBus pemBus) : base(listenerConfiguration, pemBus)
        {
            _listenerConfiguration = listenerConfiguration;

            _outgoingMessageQueue = pemBus.Queues.Where(queue => queue.PipelineModuleId == listenerConfiguration.Id).FirstOrDefault();
            if (_outgoingMessageQueue == null)
            {
                throw new Exception($"Incoming queue for listener module {_listenerConfiguration.Id} - {_listenerConfiguration.Name} could not be found.");
            }
        }
Ejemplo n.º 3
0
        public PipelineModule(IPipelineModuleConfiguration pipelineModuleConfiguration, IPEMBus pemBus, IPipelineModuleRuntime moduleHost, IPEMQueue listenerQueue, List <IPEMQueue> secondaryOutputQueues)
        {
            _listenerQueue = listenerQueue;
            _pemBus        = pemBus;
            _pipelineModuleConfiguration = pipelineModuleConfiguration;
            _secondaryOutputQueues       = secondaryOutputQueues;
            ModuleHost = moduleHost;

            _pipelineMetrics = new UsageMetrics(pemBus.Instance.PrimaryHost.Id, pemBus.Instance.Id, Id);
            _pipelineMetrics.Reset();
        }
Ejemplo n.º 4
0
        public PipelineModule(IPipelineModuleConfiguration pipelineModuleConfiguration, string routeModuleId, IPEMBus pemBus)
        {
            _inputMessageQueue = pemBus.Queues.Where(queue => queue.PipelineModuleId == routeModuleId).FirstOrDefault();
            if (_inputMessageQueue == null)
            {
                throw new Exception($"Incoming queue for module {pipelineModuleConfiguration.Id} - {pipelineModuleConfiguration.Name} could not be found.");
            }

            ModuleType = _inputMessageQueue.ForModuleType;

            _pemBus = pemBus;
            _pipelineModuleConfiguration = pipelineModuleConfiguration;

            _pipelineMetrics = new UsageMetrics(pemBus.Instance.PrimaryHost.Id, pemBus.Instance.Id, pipelineModuleConfiguration.Id);
            _pipelineMetrics.Reset();
        }
Ejemplo n.º 5
0
        public TestPipelineModule(IPipelineModuleConfiguration pipelineModuleConfiguration, IPEMBus pemBus)
            : base(pipelineModuleConfiguration, pemBus)
        {
            Id             = "mypipelinemoduleid";
            ResultToReturn = new ProcessResult()
            {
            };

            ProcessHandler = null;
        }
Ejemplo n.º 6
0
        public TestPipelineModule(IPipelineModuleConfiguration pipelineModuleConfiguration, IPEMBus pemBus, IPipelineModuleRuntime moduleHost,
                                  IPEMQueue listenerQueue, IPEMQueue outputQueue, List <IPEMQueue> secondaryOutputQueues) : base(pipelineModuleConfiguration, pemBus, moduleHost, listenerQueue, outputQueue, secondaryOutputQueues)
        {
            Id             = "mypipelinemoduleid";
            ResultToReturn = new ProcessResult()
            {
            };

            ProcessHandler = null;
        }
Ejemplo n.º 7
0
 public GenericListener(ListenerConfiguration listenerConfiguration, IPEMBus pemBus) : base(listenerConfiguration, pemBus)
 {
 }
Ejemplo n.º 8
0
 public ListenerModule(ListenerConfiguration listenerConfiguration, IPEMBus pemBus, IPipelineModuleRuntime moduleHost, IPEMQueue plannerQueue) : base(listenerConfiguration, pemBus, moduleHost)
 {
     _listenerConfiguration = listenerConfiguration;
     _plannerQueue          = plannerQueue;
 }