Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the VerifyService class with a supplied credential and URI.
 /// </summary>
 /// <param name="configuration">The configuration information for the service.</param>
 /// <param name="senderID">The alpha numeric sender ID to be used when sending the verification SMS</param>
 public VerifyService(TeleSignServiceConfiguration configuration, string senderID = null)
     : this(
                 configuration, 
                 null, 
                 new JsonDotNetVerifyResponseParser(), senderID)
 {
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the VerifyService class with a supplied credential and URI.
 /// </summary>
 /// <param name="configuration">The configuration information for the service.</param>
 public VerifyService(TeleSignServiceConfiguration configuration)
     : this(
         configuration,
         null,
         new JsonDotNetVerifyResponseParser())
 {
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the VerifyService class with a supplied credential and uri and
 /// a web requester. In general you do not need to use this constructor unless you want to intercept
 /// the web requests for logging/debugging/testing purposes.
 /// </summary>
 /// <param name="configuration">The configuration information for the service.</param>
 /// <param name="webRequester">The web requester to use.</param>
 /// <param name="responseParser">The parse to use for parsing JSON responses.</param>
 public VerifyService(
     TeleSignServiceConfiguration configuration,
     IWebRequester webRequester,
     IVerifyResponseParser responseParser)
     : base(configuration, webRequester)
 {
     this.parser = responseParser;
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the VerifyService class with a supplied credential and uri and
 /// a web requester. In general you do not need to use this constructor unless you want to intercept
 /// the web requests for logging/debugging/testing purposes.
 /// </summary>
 /// <param name="configuration">The configuration information for the service.</param>
 /// <param name="webRequester">The web requester to use.</param>
 /// <param name="responseParser">The parse to use for parsing JSON responses.</param>
 public VerifyService(
             TeleSignServiceConfiguration configuration, 
             IWebRequester webRequester,
             IVerifyResponseParser responseParser)
     : base(configuration, webRequester)
 {
     this.parser = responseParser;
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the PhoneIdService class with
 /// a configuration and a custom web requester and response parser. 
 /// You generally don't need to use this constructor.
 /// </summary>
 /// <param name="configuration">The configuration information for the service.</param>
 /// <param name="webRequester">The web requester to use.</param>
 /// <param name="responseParser">The response parser to use.</param>
 public PhoneIdService(
             TeleSignServiceConfiguration configuration, 
             IWebRequester webRequester,
             IPhoneIdResponseParser responseParser)
     : base(configuration, webRequester)
 {
     // TODO: null check and possible ifdef for JSON.Net
     this.responseParser = responseParser;
 }
Esempio n. 6
0
 /// <summary>
 /// Initializes a new instance of the VerifyService class with a supplied credential and uri and
 /// a web requester. In general you do not need to use this constructor unless you want to intercept
 /// the web requests for logging/debugging/testing purposes.
 /// </summary>
 /// <param name="configuration">The configuration information for the service.</param>
 /// <param name="webRequester">The web requester to use.</param>
 /// <param name="responseParser">The parse to use for parsing JSON responses.</param>
 public VerifyService(
             TeleSignServiceConfiguration configuration, 
             IWebRequester webRequester,
             IVerifyResponseParser responseParser, string senderID = null)
     : base(configuration, webRequester)
 {
     this.parser = responseParser;
     this.senderID = senderID;
 }
Esempio n. 7
0
 /// <summary>
 /// Initializes a new instance of the PhoneIdService class with
 /// a configuration and a custom web requester and response parser.
 /// You generally don't need to use this constructor.
 /// </summary>
 /// <param name="configuration">The configuration information for the service.</param>
 /// <param name="webRequester">The web requester to use.</param>
 /// <param name="responseParser">The response parser to use.</param>
 public PhoneIdService(
     TeleSignServiceConfiguration configuration,
     IWebRequester webRequester,
     IPhoneIdResponseParser responseParser)
     : base(configuration, webRequester)
 {
     // TODO: null check and possible ifdef for JSON.Net
     this.responseParser = responseParser;
 }
Esempio n. 8
0
 /// <summary>
 /// Initializes a new instance of the RawVerifyService class with a supplied credential and uri and
 /// a web requester. In general you do not need to use this constructor unless you want to intercept
 /// the web requests for logging/debugging/testing purposes.
 /// </summary>
 /// <param name="configuration">The configuration information for the service.</param>
 /// <param name="webRequester">The web requester to use.</param>
 public RawVerifyService(
     TeleSignServiceConfiguration configuration,
     IWebRequester webRequester)
     : base(configuration, webRequester)
 {
 }
Esempio n. 9
0
 /// <summary>
 /// Initializes a new instance of the RawVerifyService class supplying the
 /// credential and uri to be used.
 /// </summary>
 /// <param name="configuration">The configuration information for the service.</param>
 public RawVerifyService(TeleSignServiceConfiguration configuration)
     : base(configuration, null)
 {
 }
Esempio n. 10
0
 /// <summary>
 /// Initializes a new instance of the PhoneIdService class with
 /// configuration.
 /// </summary>
 /// <param name="configuration">The configuration information for the service.</param>
 public PhoneIdService(TeleSignServiceConfiguration configuration)
     : this(configuration, null, new JsonDotNetPhoneIdResponseParser())
 {
 }
Esempio n. 11
0
 /// <summary>
 /// Initializes a new instance of the RawPhoneIdService class with a supplied credential and uri and
 /// a web requester. In general you do not need to use this constructor unless you want to intercept
 /// the web requests for logging/debugging/testing purposes.
 /// </summary>
 /// <param name="configuration">The configuration information for the service.</param>
 /// <param name="webRequester">The web requester to use.</param>
 public RawPhoneIdService(
             TeleSignServiceConfiguration configuration, 
             IWebRequester webRequester)
     : base(configuration, webRequester)
 {
 }
Esempio n. 12
0
 /// <summary>
 /// Initializes a new instance of the RawPhoneIdService class with a supplied credential and uri.
 /// </summary>
 /// <param name="configuration">The configuration information for the service.</param>
 public RawPhoneIdService(TeleSignServiceConfiguration configuration)
     : this(configuration, null)
 {
 }
Esempio n. 13
0
 /// <summary>
 /// Initializes a new instance of the RawVerifyService class supplying the 
 /// credential and uri to be used.
 /// </summary>
 /// <param name="configuration">The configuration information for the service.</param>
 public RawVerifyService(TeleSignServiceConfiguration configuration)
     : base(configuration, null)
 {
 }
 /// <summary>
 /// Initializes a new instance of the RawPhoneIdService class with a supplied credential and uri.
 /// </summary>
 /// <param name="configuration">The configuration information for the service.</param>
 public RawPhoneIdService(TeleSignServiceConfiguration configuration)
     : this(configuration, null)
 {
 }
Esempio n. 15
0
 /// <summary>
 /// Initializes a new instance of the PhoneIdService class with
 /// configuration.
 /// </summary>
 /// <param name="configuration">The configuration information for the service.</param>
 public PhoneIdService(TeleSignServiceConfiguration configuration)
     : this(configuration, null, new JsonDotNetPhoneIdResponseParser())
 {
 }
Esempio n. 16
0
 /// <summary>
 /// Initializes a new instance of the VerifyService class with a supplied credential and URI.
 /// </summary>
 /// <param name="configuration">The configuration information for the service.</param>
 public VerifyService(TeleSignServiceConfiguration configuration)
     : this(configuration, 
                 null, 
                 new JsonDotNetVerifyResponseParser())
 {
 }