Exemple #1
0
 internal AblyRealtime(ClientOptions options, IMobileDevice mobileDevice)
     : this(options, CreateRestFunc, mobileDevice)
 {
 }
Exemple #2
0
 /// <summary>
 /// Initialize the library with a custom set of options
 /// </summary>
 /// <param name="clientOptions"></param>
 public AblyRest(ClientOptions clientOptions)
 {
     Options = clientOptions;
     InitializeAbly();
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AblyRealtime"/> class with the given options.
 /// </summary>
 /// <param name="options"><see cref="ClientOptions"/>.</param>
 public AblyRealtime(ClientOptions options)
     : this(options, CreateRestFunc, IoC.MobileDevice)
 {
 }
Exemple #4
0
 /// <summary>
 /// Convenience method for initializing the RestClient by passing a Action{ClientOptions}
 /// <example>
 /// var rest = new AblyRest(opt => {
 ///  opt.Key = "fake.key:value";
 ///  opt.ClientId = "123";
 /// });
 /// </example>
 /// </summary>
 /// <param name="init">Action delegate which receives a empty options object.</param>
 public AblyRest(Action <ClientOptions> init)
 {
     Options = new ClientOptions();
     init(Options);
     InitializeAbly();
 }