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