/// <inheritdoc/> public virtual async Task <IStreamDemuxer> MuxedStreamNamespacedPodExecAsync(string name, string @namespace = "default", IEnumerable <string> command = null, string container = null, bool stderr = true, bool stdin = true, bool stdout = true, bool tty = true, string webSocketSubProtol = WebSocketProtocol.V4BinaryWebsocketProtocol, Dictionary <string, List <string> > customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { WebSocket webSocket = await this.WebSocketNamespacedPodExecAsync(name : name, @namespace : @namespace, command : command, container : container, tty : tty, cancellationToken : cancellationToken).ConfigureAwait(false); StreamDemuxer muxer = new StreamDemuxer(webSocket); return(muxer); }
public MuxedStream(StreamDemuxer muxer, ByteBuffer inputBuffer, byte?outputIndex) { this.inputBuffer = inputBuffer; this.outputIndex = outputIndex; if (this.inputBuffer == null && outputIndex == null) { throw new ArgumentException("You must specify at least inputBuffer or outputIndex"); } this.muxer = muxer ?? throw new ArgumentNullException(nameof(muxer)); }