Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InspireClient"/> class.
 /// </summary>
 /// <param name="config">Contains an instance of the <see cref="InspireClientConfiguration"/> class that contains client configuration settings.</param>
 /// <example>
 ///     <code>
 ///         InspireClientConfiguration config = new InspireClientConfiguration
 ///         {
 ///           ... set your configuration properties
 ///         };
 ///
 ///         InspireClient client = new InspireClient(config);
 ///     </code>
 /// </example>
 public InspireClient(InspireClientConfiguration config)
 {
     this.Config = config;
     this.defaultTokenEndpoint = new Uri(this.Config.AuthorityUri, "/connect/token").ToString();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="InspireClientException"/> class.
 /// </summary>
 /// <param name="config">Contains the optional inspire client configuration settings.</param>
 /// <param name="message">Contains a message.</param>
 /// <param name="innerException">Contains an optional inner exception.</param>
 public InspireClientException(InspireClientConfiguration config, string message = "", Exception innerException = null)
     : base(message, innerException)
 {
     this.ClientConfiguration = config;
 }