Пример #1
0
 internal AblyRealtime(ClientOptions options, IMobileDevice mobileDevice)
     : this(options, CreateRestFunc, mobileDevice)
 {
 }
Пример #2
0
 /// <summary>
 /// Initialize the library with a custom set of options
 /// </summary>
 /// <param name="clientOptions"></param>
 public AblyRest(ClientOptions clientOptions)
 {
     Options = clientOptions;
     InitializeAbly();
 }
Пример #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)
 {
 }
Пример #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();
 }