Exemple #1
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="configuration">Configuration used to construct REST provider.</param>
 /// <param name="logger">Logger for logging events and errors.</param>
 public RestSender(RestConfiguration configuration, Logger logger)
 {
     Provider = new RestProvider(configuration.Encoding, configuration.UserName, configuration.Password, configuration.SslCertificateLocation);
     BaseUrl  = configuration.BaseUrl;
     Logger   = logger;
 }
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="configuration">Configuration used to construct REST provider.</param>
 /// <param name="logger">Logger for logging events and errors.</param>
 public RestSender(RestConfiguration configuration, Logger logger)
 {
     Provider = new RestProvider(configuration.Encoding, configuration.UserName, configuration.Password, configuration.SslCertificateLocation);
     BaseUrl = configuration.BaseUrl;
     Logger = logger;
 }