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