Beispiel #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;
            }
        }
Beispiel #2
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();
        }