Ejemplo n.º 1
0
        private static void SummerizeFile(SqlInt32 fileId, Byte[] contents, char format)
        {
            ArgosFile argos;

            switch (format)
            {
            case 'E':
                argos = new ArgosEmailFile(contents);
                break;

            case 'F':
                argos = new ArgosAwsFile(contents);
                break;

            case 'G':
                argos = new DebevekFile(contents);
                break;

            default:
                throw new InvalidOperationException("Unsupported File Format: " + format);
            }
            SummarizeArgosFile(fileId, argos);
        }
Ejemplo n.º 2
0
 private static void SummerizeFile(SqlInt32 fileId, Byte[] contents, char format)
 {
     ArgosFile argos;
     switch (format)
     {
         case 'E':
             argos = new ArgosEmailFile(contents);
             break;
         case 'F':
             argos = new ArgosAwsFile(contents);
             break;
         case 'G':
             argos = new DebevekFile(contents);
             break;
         default:
             throw new InvalidOperationException("Unsupported File Format: " + format);
     }
     SummarizeArgosFile(fileId, argos);
 }