Ejemplo n.º 1
0
        public static async Task <T> Get <T>(ISafeHttpClient client, string getUri)
        {
            var response = await client.GetAsync(getUri);

            return(JsonConvert.DeserializeObject <T>(await response.Content.ReadAsStringAsync()));
        }
Ejemplo n.º 2
0
 public Unit(ISafeHttpClient client, Guid gatewayPaymentId)
 {
     Client           = client;
     GatewayPaymentId = gatewayPaymentId;
 }
 /// <summary>
 /// Instantiates a new instance of the <see cref="YouTubeService"/> class.
 /// </summary>
 /// <param name="client">Http Client</param>
 /// <param name="config">Configuration</param>
 public YouTubeService(ISafeHttpClient client, YouTubeConfiguration config)
 {
     _client = client;
     _apiKey = config.ApiKey;
 }
 /// <summary>
 /// Instantiates a new instance of the <see cref="GooglePlusService"/> class.
 /// </summary>
 /// <param name="client">Http Client</param>
 /// <param name="config">Configuration</param>
 public GooglePlusService(ISafeHttpClient client, GooglePlusConfiguration config)
 {
     _client = client;
     _apiKey = config.ApiKey;
 }
 /// <summary>
 /// Instantiates a new instance of the <see cref="FaceBookService"/> class.
 /// </summary>
 /// <param name="client">Http Client</param>
 /// <param name="config"></param>
 public FaceBookService(ISafeHttpClient client, FaceBookConfiguration config)
 {
     _client    = client;
     _appId     = config.AppId;
     _appSecret = config.AppSecret;
 }