Ejemplo n.º 1
0
        public Client()
        {

            //_initParams.Add("prop", "StartPage");
            //_initParams.Add("client", "sm");
            //_initParams.Add("stime", DateTime.Now.TimeIntervalSince1970().TotalSeconds.ToString("0"));
            //_initParams.Add("nav", "true");
            _initParams.Add("prop", "aChromeExtension");
            _initParams.Add("fid", "gtn-roster-iframe-id");
            _initParams.Add("ec", "[\"ci:ec\",true,true,false]");
            _initParams.Add("pvt", "");

            
            _channel = new Channel();

            _channel.OnDataReceived += _channel_OnDataReceived;

            _client = new HttpClient(new SigningMessageHandler());            
            _client.Timeout = new TimeSpan(0, 0, 30);
            
            // initializing shared static             
            CurrentSynchronizationContext = SynchronizationContext.Current;


        }
Ejemplo n.º 2
0
        public Client()
        {

            //_initParams.Add("prop", "StartPage");
            _initParams.Add("client", "sm");
            _initParams.Add("stime", DateTime.Now.TimeIntervalSince1970().TotalSeconds.ToString("0"));
            _initParams.Add("nav", "true");
            _initParams.Add("prop", "ChromeApp");
            _initParams.Add("fid", "gtn-roster-iframe-id");
            _initParams.Add("ec", "[\"ci:ec\",true,true,false]");
            _initParams.Add("pvt", "");

            
            _channel = new Channel();

            _channel.OnDataReceived += _channel_OnDataReceived;

            _client = new HttpClient(new SigningMessageHandler());            
            _client.Timeout = new TimeSpan(0, 0, 30);
            
        }