protected BaseTransportManager(PSRemotingCryptoHelper cryptoHelper)
 {
     this.cryptoHelper            = cryptoHelper;
     this.fragmentor              = new System.Management.Automation.Remoting.Fragmentor(0x8000, cryptoHelper);
     this.recvdData               = new PriorityReceiveDataCollection(this.fragmentor, this is BaseClientTransportManager);
     this.onDataAvailableCallback = new System.Management.Automation.Remoting.ReceiveDataCollection.OnDataAvailableCallback(this.OnDataAvailableCallback);
 }
 protected BaseTransportManager(PSRemotingCryptoHelper cryptoHelper)
 {
     this.cryptoHelper = cryptoHelper;
     this.fragmentor = new System.Management.Automation.Remoting.Fragmentor(0x8000, cryptoHelper);
     this.recvdData = new PriorityReceiveDataCollection(this.fragmentor, this is BaseClientTransportManager);
     this.onDataAvailableCallback = new System.Management.Automation.Remoting.ReceiveDataCollection.OnDataAvailableCallback(this.OnDataAvailableCallback);
 }
        internal void ProcessRawData(byte[] data, string stream, System.Management.Automation.Remoting.ReceiveDataCollection.OnDataAvailableCallback dataAvailableCallback)
        {
            baseTracer.WriteLine("Processing incoming data for stream {0}.", new object[] { stream });
            bool             flag         = false;
            DataPriorityType priorityType = DataPriorityType.Default;

            if (stream.Equals("stdin", StringComparison.OrdinalIgnoreCase) || stream.Equals("stdout", StringComparison.OrdinalIgnoreCase))
            {
                flag = true;
            }
            else if (stream.Equals("pr", StringComparison.OrdinalIgnoreCase))
            {
                priorityType = DataPriorityType.PromptResponse;
                flag         = true;
            }
            if (!flag)
            {
                baseTracer.WriteLine("{0} is not a valid stream", new object[] { stream });
            }
            this.recvdData.ProcessRawData(data, priorityType, dataAvailableCallback);
        }