Пример #1
0
        public OAuthClient(ReactivixURI uri, string endpoint = ENDPOINT)
        {
            URI      = uri.Copy();
            URI.Path = endpoint;

            Client            = new ReactivixHTTPClient();
            Request           = ReactivixHTTPPacket.ForPOST(null);
            Request.Processor = new ReactivixFormIOProcessor();
            Response          = new ReactivixHTTPPacket(new ReactivixJSONIOProcessor());
        }
Пример #2
0
        public QuarkClient(string uriHTTP, string uriStream, IReactivixNetworkTransport transport)
        {
            BaseHTTPURI   = ReactivixURI.FromURI(uriHTTP);
            BaseStreamURI = ReactivixURI.FromURI(uriStream);

            ClientHTTP     = new ReactivixHTTPClient();
            ResponsePacket = new ReactivixHTTPPacket(new ReactivixJSONIOProcessor());

            ClientStream = new QuarkNetworkClient(transport, BaseStreamURI.Host, BaseStreamURI.Port);

            OAuth = new OAuthClient(BaseHTTPURI.Copy());
        }