예제 #1
0
        public StocklistClient(
            string pushServerUrl,
            string forceT,
            DemoForm form,
            LightstreamerUpdateDelegate lsUpdateDelegate,
            LightstreamerStatusChangedDelegate lsStatusChangeDelegate)
        {
            demoForm             = form;
            updateDelegate       = lsUpdateDelegate;
            statusChangeDelegate = lsStatusChangeDelegate;

            LightstreamerClient.setLoggerProvider(new Log4NetLoggerProviderWrapper());

            client = new LightstreamerClient(pushServerUrl, "DEMO");

            client.connectionOptions.RetryDelay = 3500;
            switch (forceT)
            {
            case "websocket":
                client.connectionOptions.ForcedTransport = "WS";
                break;

            case "http":
                client.connectionOptions.ForcedTransport = "HTTP";
                break;

            case "polling":
                client.connectionOptions.ForcedTransport = "HTTP-POLLING";
                break;

            default:
                break;
            }
        }
예제 #2
0
        static void Main(string[] args)
        {
            string pushServerHost = "https://push.lightstreamer.com";
            int    pushServerPort = 0;
            string forceTransport = "no";

            if (args.Length >= 1)
            {
                pushServerHost = args[0];
            }
            if (args.Length >= 2)
            {
                pushServerPort = Int32.Parse(args[1]);
            }
            if (args.Length >= 3)
            {
                forceTransport = args[2];
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            DemoForm form = new DemoForm(pushServerHost, pushServerPort, forceTransport);

            Application.AddMessageFilter(form);
            Application.Run(form);
        }
예제 #3
0
        public StocklistClient(
            string pushServerUrl,
            DemoForm form,
            LightstreamerUpdateDelegate lsUpdateDelegate,
            LightstreamerStatusChangedDelegate lsStatusChangeDelegate)
        {
            demoForm             = form;
            updateDelegate       = lsUpdateDelegate;
            statusChangeDelegate = lsStatusChangeDelegate;

            cInfo = new ConnectionInfo();
            cInfo.PushServerUrl = pushServerUrl;
            cInfo.Adapter       = "DEMO";

            client = new LSClient();
        }
        public StocklistClient(
                string pushServerUrl,
                DemoForm form,
                LightstreamerUpdateDelegate lsUpdateDelegate,
                LightstreamerStatusChangedDelegate lsStatusChangeDelegate)
        {
            
            demoForm = form;
            updateDelegate = lsUpdateDelegate;
            statusChangeDelegate = lsStatusChangeDelegate;

            cInfo = new ConnectionInfo();
            cInfo.PushServerUrl = pushServerUrl;
            cInfo.Adapter = "DEMO";

            client = new LSClient();
        }
예제 #5
0
        static void Main(string[] args) {
            string pushServerHost = "localhost";
            int pushServerPort = 80;
            if (args.Length >= 1) {
                pushServerHost = args[0];
            }
            if (args.Length >= 2) {
                pushServerPort = Int32.Parse(args[1]);
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            DemoForm form = new DemoForm(pushServerHost, pushServerPort);
            Application.AddMessageFilter(form);
            Application.Run(form);
        }
예제 #6
0
        static void Main(string[] args)
        {
            string pushServerHost = "localhost";
            int    pushServerPort = 80;

            if (args.Length >= 1)
            {
                pushServerHost = args[0];
            }
            if (args.Length >= 2)
            {
                pushServerPort = Int32.Parse(args[1]);
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            DemoForm form = new DemoForm(pushServerHost, pushServerPort);

            Application.AddMessageFilter(form);
            Application.Run(form);
        }