示例#1
0
 public ConnectionOwly(dynamic options)
 {
     _options = options ?? new { };
     _retry   = new Retry(dyn.getProp(_options, "retry", new { }));
 }
示例#2
0
 public Connection(dynamic options)
 {
     _options   = options ?? new { };
     _tokenData = dyn.hasProp(_options, "accessToken") ? dyn.ToJObject(new { access_token = dyn.getProp <string>(_options, "accessToken") }) : null;
     _retry     = new Retry(dyn.getProp(_options, "retry", new { }));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ConnectionOwly"/> class.
 /// </summary>
 /// <param name="options">The options.</param>
 public ConnectionOwly(dynamic options)
 {
     _options = options ?? new { };
     _apiKey  = dyn.getProp <string>(_options, "owlyApiKey", null);
     _retry   = new Retry(dyn.getProp(_options, "retry", new { }));
 }