Beispiel #1
0
        public MainWnd()
        {
            InitializeComponent();

            var instanceName = !string.IsNullOrEmpty(InstanceName) ? InstanceName : StreamInsightSetupInfo.EnumerateInstances()[0];
            Server server;

            try
            {
                server = Server.Create(instanceName);
            }
            catch
            {
                Console.WriteLine("Could not create StreamInsight instance. Please open MainWnd.cs and check InstanceName.");
                return;
            }
            application = server.CreateApplication("StockInsightGraphical");

            InputAdapter inputAdapter = application.CreateInputAdapter<StockQuoteInputFactory>("StockQuoteInput", "Description...");
            OutputAdapter outputAdapter = application.CreateOutputAdapter<StockSignalOutputFactory>("StockSignalOutput", "Description...");

            // Initialize drop down lists and properties for queries and sources
            InitQueries();
            InitSources();

            stockGraph1.EnableWCF();
        }
Beispiel #2
0
        public MainWindow()
        {
            InitializeComponent();

            _server = Server.Create("Default");
            Closing += (s, e) =>
            {
                _results.Clear();
                _server.Dispose();
            };
            _application = _server.CreateApplication("Hitchhiker's Guide");
            _queriesListView.DataContext = DemoQuery.FindQueries(typeof(Queries));
        }
Beispiel #3
0
        public MainWindow()
        {
            InitializeComponent();

            _server  = Server.Create("Default");
            Closing += (s, e) =>
            {
                _results.Clear();
                _server.Dispose();
            };
            _application = _server.CreateApplication("Hitchhiker's Guide");
            _queriesListView.DataContext = DemoQuery.FindQueries(typeof(Queries));
        }
        public MainWindow()
        {
            InitializeComponent();

            _configuration = GetConfiguration();

            _server  = Server.Create("Default");
            Closing += (s, e) =>
            {
                _processor.Clear();
                _threshold.Clear();
                _server.Dispose();
            };
            _application = _server.CreateApplication("Performance Counters");

            var configurationSource = CreateConfigurationObservable();

            _processor.SetSource(Queries.ProcessorUtilizationPerCore(_application));
            _threshold.SetSource(Queries.ProcessorUtilizationSustainedThreshold(_application, configurationSource));
        }
Beispiel #5
0
        public MainWindow()
        {
            InitializeComponent();

            _configuration = GetConfiguration();

            _server = Server.Create("Default");
            Closing += (s, e) =>
            {
                _processor.Clear();
                _threshold.Clear();
                _server.Dispose();
            };
            _application = _server.CreateApplication("Performance Counters");

            var configurationSource = CreateConfigurationObservable();

            _processor.SetSource(Queries.ProcessorUtilizationPerCore(_application));
            _threshold.SetSource(Queries.ProcessorUtilizationSustainedThreshold(_application, configurationSource));
        }