public UtralisksSystemController(Bootstrap bootstrap, IHostedMachine hostedMachine)
            : base(bootstrap)
        {
            messageEntrance = new MessageEntrance(bootstrap.GetMessageQueueFromVariableSet("Entrance"));
            MetricCollections.Default.AddMetricCollector("idle", new IncreasedMetricCollector("UtraliskIdle"));
            MetricCollections.Default.AddMetricCollector("busy", new IncreasedMetricCollector("UtraliskBusy"));
            WorkingProcessor = new TransformIntegration(
                bootstrap.GetCachedFromVariableSet("CoreCache"),
                bootstrap.GetStorageFromVariableSet("CoreStorage")
                );
            IMessageTermination messageTermination = new MessageTermination(bootstrap, this);

            messagePipline     = new MessagePipline(messageEntrance, messageTermination);
            messageOut         = bootstrap.GetMessageQueueFromVariableSet("Termination");
            this.hostedMachine = hostedMachine;
        }
예제 #2
0
 public async Task ProcessTest()
 {
     byte[] byteKernelMessage = Encoding.UTF8.GetBytes(kernelMessage);
     TransformIntegration transformIntegration = new TransformIntegration(coreCache, coreStorage);
     await transformIntegration.Process(byteKernelMessage, platformExit);
 }