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."); } }
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; } }