Exemplo n.º 1
0
        /// <summary>
        /// Constructs RSignAPI with credentials and options.
        /// </summary>
        /// <param name="credentials">Your RSign API credentials.</param>
        /// <param name="options">Your custom RSign API options.</param>
        public RSignAPI(RSignAPICredentials credentials, RSignAPIOptions options)
        {
            _credentials = credentials;
            _options     = options;

            _httpClient = new RSignHttpClient(ProductionApiUrl);

            _ipAddress = GetComputerIPAddress();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Constructs RSignAPI with credentials and default options.
 /// </summary>
 /// <param name="credentials">Your RSign API credentials.</param>
 public RSignAPI(RSignAPICredentials credentials)
     : this(credentials, new RSignAPIOptions())
 {
 }