/// <summary> /// Initializes a new instance of the <see cref="MobileImageMounterClient"/> class. /// </summary> /// <param name="stream"> /// A <see cref="Stream"/> which represents a connection to the mobile image mounter services running on the device. /// </param> /// <param name="logger"> /// A logger which can be used when logging. /// </param> public MobileImageMounterClient(Stream stream, ILogger logger) { this.protocol = new PropertyListProtocol(stream, ownsStream: true, logger); }
/// <summary> /// Initializes a new instance of the <see cref="MobileImageMounterClient"/> class. /// </summary> /// <param name="protocol"> /// A <see cref="PropertyListProtocol"/> which represents a connection to the mobile image mounter services running on the device. /// </param> public MobileImageMounterClient(PropertyListProtocol protocol) { this.protocol = protocol ?? throw new ArgumentNullException(nameof(protocol)); }
/// <summary> /// Initializes a new instance of the <see cref="DiagnosticsRelayClient"/> class. /// </summary> /// <param name="stream"> /// A <see cref="Stream"/> which represents a connection to the diagnostics relay service running on the device. /// </param> /// <param name="logger"> /// A logger which can be used when logging. /// </param> public DiagnosticsRelayClient(Stream stream, ILogger <DiagnosticsRelayClient> logger) { this.protocol = new PropertyListProtocol(stream, ownsStream: true, logger: logger); }
/// <summary> /// Initializes a new instance of the <see cref="DiagnosticsRelayClient"/> class. /// </summary> /// <param name="protocol"> /// A <see cref="PropertyListProtocol"/> which represents a connection to the diagnostics relay service running on the device. /// </param> public DiagnosticsRelayClient(PropertyListProtocol protocol) { this.protocol = protocol ?? throw new ArgumentNullException(nameof(protocol)); }
/// <summary> /// Initializes a new instance of the <see cref="NotificationProxyClient"/> class. /// </summary> /// <param name="stream"> /// A <see cref="Stream"/> which represents a connection to the notification proxy running on the device. /// </param> /// <param name="logger"> /// A <see cref="ILogger"/> which can be used when logging. /// </param> public NotificationProxyClient(Stream stream, ILogger <NotificationProxyClient> logger) { this.protocol = new PropertyListProtocol(stream, ownsStream: true, logger: logger); }
/// <summary> /// Initializes a new instance of the <see cref="NotificationProxyClient"/> class. /// </summary> /// <param name="protocol"> /// A <see cref="PropertyListProtocol"/> which represents a connection to the notification proxy running on the device. /// </param> public NotificationProxyClient(PropertyListProtocol protocol) { this.protocol = protocol ?? throw new ArgumentNullException(nameof(protocol)); }
public async Task Write_ValidatesArguments_Async() { var protocol = new PropertyListProtocol(Stream.Null, false, NullLogger <PropertyListProtocol> .Instance); await Assert.ThrowsAsync <ArgumentNullException>(() => protocol.WriteMessageAsync((NSDictionary)null, default)).ConfigureAwait(false);
/// <summary> /// Initializes a new instance of the <see cref="SpringBoardClient"/> class. /// </summary> /// <param name="protocol"> /// A <see cref="PropertyListProtocol"/> which represents a connection to the springboard services running on the device. /// </param> public SpringBoardClient(PropertyListProtocol protocol) { this.protocol = protocol ?? throw new ArgumentNullException(nameof(protocol)); }
/// <summary> /// Initializes a new instance of the <see cref="SpringBoardClient"/> class. /// </summary> /// <param name="stream"> /// A <see cref="Stream"/> which represents a connection to the springboard services running on the device. /// </param> /// <param name="logger"> /// A logger which can be used when logging. /// </param> public SpringBoardClient(Stream stream, ILogger logger) { this.protocol = new PropertyListProtocol(stream, ownsStream: true, logger); }
public async Task DisableSslAsync_NotSsl_Throws_Async() { var protocol = new PropertyListProtocol(Stream.Null, ownsStream: false, NullLogger.Instance); await Assert.ThrowsAsync <InvalidOperationException>(() => protocol.DisableSslAsync(default)).ConfigureAwait(false);
public async Task EnableSslAsync_NullValues_Throws_Async() { var protocol = new PropertyListProtocol(Stream.Null, ownsStream: false, NullLogger.Instance); await Assert.ThrowsAsync <ArgumentNullException>(() => protocol.EnableSslAsync(null, default)).ConfigureAwait(false); }