Пример #1
0
 public void DoOutput(OutputPossibilities oo)
 {
     if ((oo & OutputPossibilities.Environment) == OutputPossibilities.Environment)
     {
         SetEnvironmentWithValue();
     }
     if ((oo & OutputPossibilities.File) == OutputPossibilities.File)
     {
         SetFileValue();
     }
 }
Пример #2
0
        private void ParseOutputOptions()
        {
            if (string.IsNullOrEmpty(outOpts))
            {
                outcache = OutputPossibilities.None;
                return;
            }

            if (outOpts == "env")
            {
                outcache = OutputPossibilities.Environment;
                return;
            }


            if (outOpts == "file")
            {
                outcache = OutputPossibilities.File;
                return;
            }

            throw new ArgumentOutOfRangeException("OutputOptions", "The output options that were specified are invalid.");
        }