コード例 #1
0
ファイル: Program.cs プロジェクト: EdiFabric/NCPDP.NET
        static void Main(string[] args)
        {
            SerialKey.Set(Common.SerialKey.Get());

            //  Read NCPDP file to the end
            ReadNCPDPFileToEnd.Run();
            ReadNCPDPFileToEndAsync.Run();

            //  Read one item at a time
            ReadNCPDPFileStreaming.Run();
            ReadNCPDPFileStreamingAsync.Run();

            //  Read using partner-specific template (inherited)
            ReadNCPDPFileWithInheritedTemplate.Run();

            //  Read using dynamic template resolution
            ReadNCPDPFileWithTemplateResolution.RunWithAssemblyFactory();
            ReadNCPDPFileWithTemplateResolution.RunWithTypeFactory();

            //  Read NCPDP file with corrupt transmission header
            ReadNCPDPFileCorrupt.Run();

            //  Read NCPDP file with corrupt G1
            ReadNCPDPFileCorrupt.Run2();

            //  Split transactions to repeating loops
            ReadNCPDPFileSplitting.Run();

            //  Read NCPDP file with batches of B1 and RESPONSE
            ReadNCPDPFileToEndWithResponse.Run();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: EdiFabric/SCRIPT.NET
        static void Main(string[] args)
        {
            SerialKey.Set(Common.SerialKey.Get());

            //  Read NCPDP file to the end
            ReadNCPDPFileToEnd.Run();
            ReadNCPDPFileToEndAsync.Run();

            //  Read one item at a time
            ReadNCPDPFileStreaming.Run();
            ReadNCPDPFileStreamingAsync.Run();

            //  Read batches of transactions
            ReadNCPDPFileBatch.Run();

            //  Read using partner-specific template (inherited)
            ReadNCPDPFileWithInheritedTemplate.Run();

            //  Read using dynamic template resolution
            ReadNCPDPFileWithTemplateResolution.RunWithAssemblyFactory();
            ReadNCPDPFileWithTemplateResolution.RunWithTypeFactory();

            //  Read NCPDP file with issues
            ReadNCPDPFileCorrupt.Run();
            ReadNCPDPFileCorrupt.Run2();

            //  Split transactions to repeating loops
            ReadNCPDPFileSplitting.Run();
            ReadNCPDPFileSplitting.RunWithCopy();

            //  Read transaction only
            ReadNCPDPFileTransactionOnly.Run();

            //  Read with custom UIB
            ReadNCPDPFileWithCustomUIB.Run();
        }