Exemple #1
0
 public void SetupCommonConfiguration()
 {
     _configuration = RestConfiguration.JsonDefault();
     _configuration.WithHeader("User-Agent", "RestFluencing Sample");
     _configuration.WithBaseUrl("https://api.github.com/");
     _configuration.WithBasicAuthorization("<username>", "<password>");
 }
        public void SetupCommonConfiguration()
        {
            _configuration = RestConfiguration.JsonDefault();
            _configuration.WithHeader("User-Agent", "RestFluencing Sample");
            _configuration.WithBaseUrl("https://api.github.com/");

            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
        }
Exemple #3
0
 public void SetupCommonConfiguration()
 {
     _configuration = RestConfiguration.JsonDefault();
     _configuration.WithHeader("User-Agent", "RestFluencing Sample");
     _configuration.WithBaseUrl("https://api.github.com/");
 }