/// <summary>
        /// Gets a list of URLs for the separate services of an instance
        /// </summary>
        /// <param name="address">The address to query</param>
        /// <returns></returns>
        public static async Task <Result <ServerURLs> > GetServerURLs(string address)
        {
            // Instantiates temporary objects
            RequestsClient requestsClient = new RequestsClient();
            Endpoint       target         = new Endpoint("/Home/InstanceInfo", HttpMethod.Get);

            // Retrieves URL information and converts to stream
            HttpResponseMessage response = await requestsClient.SendRequest(address, target);

            return(await ResponseParser.ParseJsonResponse <ServerURLs>(response));
        }
 public SimpleForumClient(string fqdn, ITokenStorage tokenStorage = null)
 {
     TokenStorage    = tokenStorage ?? new TokenStorage();
     _requestsClient = new RequestsClient(fqdn, TokenStorage);
 }
Esempio n. 3
0
 public CrossConnectionClient()
 {
     _requestsClient = new RequestsClient();
 }