/// <summary> /// Initializes a new instance of the <see cref="CameraClient"/> class. /// </summary> /// <param name="ipEndPoint">The camera ip address and port.</param> /// <param name="createFile">Optional handler to override local file creation.</param> /// <param name="createClient">Optional handler to override http client creation.</param> public CameraClient(IPEndPoint ipEndPoint, CreateFileHandler createFile = null, HttpClientFactoryHandler createClient = null) : this(new Uri($"http://{ipEndPoint}"), createFile, createClient) { }
/// <summary> /// Initializes a new instance of the <see cref="CameraClient"/> class. /// </summary> /// <param name="endPoint">The camera http end point.</param> /// <param name="createFile">Optional handler to override local file creation.</param> /// <param name="createClient">Optional handler to override http client creation.</param> public CameraClient(Uri endPoint, CreateFileHandler createFile = null, HttpClientFactoryHandler createClient = null) { EndPoint = endPoint; CreateFile = createFile ?? DefaultCreateFile; CreateClient = createClient ?? DefaultCreateClient; }
/// <summary> /// Initializes a new instance of the <see cref="CameraClient"/> class using <see cref="DefaultIpEndPoint"/>. /// </summary> /// <param name="createFile">Optional handler to override local file creation.</param> /// <param name="createClient">Optional handler to override http client creation.</param> public CameraClient(CreateFileHandler createFile = null, HttpClientFactoryHandler createClient = null) : this(DefaultIpEndPoint, createFile, createClient) { }