示例#1
0
    private void SetupPipes()
    {
      switch (encCfg.inputMethod)
      {
        case TransportMethod.Filename:
          encoderInput = null;
          break;
        case TransportMethod.NamedPipe:
          encoderInput = new NamedPipe();
          break;
        case TransportMethod.StandardIn:
          encoderInput = new BasicStream();
          break;
        default:
          throw new ArgumentException("Invalid option.");
      }

      switch (encCfg.outputMethod)
      {
        case TransportMethod.NamedPipe:
          encoderOutput = new NamedPipe();
          break;
        case TransportMethod.StandardOut:
          encoderOutput = new BasicStream();
          break;
        case TransportMethod.None:
          break;
        default:
          throw new ArgumentException("Invalid option.");
      }
    }
示例#2
0
        private void SetupPipes()
        {
            Log.Info("iPiMPWeb - SetupPipes");
            switch (encCfg.inputMethod)
            {
            case TransportMethod.Filename:
                encoderInput = null;
                break;

            case TransportMethod.NamedPipe:
                encoderInput = new NamedPipe();
                break;

            case TransportMethod.StandardIn:
                encoderInput = new BasicStream();
                break;

            default:
                Log.Info("iPiMPWeb - Invalid inputMethod");
                break;
            }

            switch (encCfg.outputMethod)
            {
            case TransportMethod.NamedPipe:
                encoderOutput = new NamedPipe();
                break;

            case TransportMethod.StandardOut:
                encoderOutput = new BasicStream();
                break;

            case TransportMethod.None:
                break;

            default:
                Log.Info("iPiMPWeb - Invalid outputMethod");
                break;
            }
        }
示例#3
0
        private void SetupPipes()
        {
            switch (encCfg.inputMethod)
            {
            case TransportMethod.Filename:
                encoderInput = null;
                break;

            case TransportMethod.NamedPipe:
                encoderInput = new NamedPipe();
                break;

            case TransportMethod.StandardIn:
                encoderInput = new BasicStream();
                break;

            default:
                throw new ArgumentException("Invalid option.");
            }

            switch (encCfg.outputMethod)
            {
            case TransportMethod.NamedPipe:
                encoderOutput = new NamedPipe();
                break;

            case TransportMethod.StandardOut:
                encoderOutput = new BasicStream();
                break;

            case TransportMethod.None:
                break;

            default:
                throw new ArgumentException("Invalid option.");
            }
        }