コード例 #1
0
 /// <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);
 }
コード例 #2
0
 /// <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));
 }
コード例 #3
0
 /// <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);
 }
コード例 #4
0
 /// <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));
 }
コード例 #5
0
 /// <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);
 }
コード例 #6
0
 /// <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));
 }
コード例 #7
0
        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);
コード例 #8
0
 /// <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));
 }
コード例 #9
0
 /// <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);
 }
コード例 #10
0
 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);
コード例 #11
0
 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);
 }