public HydraliskSystemController(Bootstrap bootstrap, IHostedMachine hostedMachine)
            : base(bootstrap)
        {
            IMessageEntrance messageEntrance = new MessageEntrance(bootstrap.GetMessageQueueFromVariableSet("Entrance"));

            WorkingProcessor = new SourceIntergation(bootstrap.Provisioning.Caches["default-cache"],
                                                     new ExtractorManager(bootstrap.InjectionProvider));
            MetricCollections.Default.AddMetricCollector("idle", new IncreasedMetricCollector("HydraliskIdle"));
            MetricCollections.Default.AddMetricCollector("busy", new IncreasedMetricCollector("HydraliskBusy"));
            IMessageTermination messageTermination = new MessageTermination(bootstrap, this);

            messagePipline     = new MessagePipline(messageEntrance, messageTermination);
            messageOut         = bootstrap.GetMessageQueueFromVariableSet("Termination");
            this.hostedMachine = hostedMachine;
            //TODO : Cache should comes from the variable.
        }
Ejemplo n.º 2
0
 public async Task ProcessTest()
 {
     SourceIntergation sourceIntergation = new SourceIntergation(cache, extractorManager);
     await sourceIntergation.Process(Encoding.UTF8.GetBytes(httpSourceDemoString), platformExit);
 }