// Construction public CPackageInputState( CPackageInputEntry config ) { ID = ++m_IDTracker; Config = config; State = EInputPackageState.Start; DownloadedFile = ""; }
// Construction public CDownloadWorker( CPackageInputEntry package ) { m_Package = package; }
// Methods // Public interface public static void Make_Sample_Config() { CPackageInputEntry package1 = new CPackageInputEntry( "TestPackage" ); CPackageLocation location = new CPackageLocation( "ftp://www.testurl.com/files", EOperatingSystem.Windows ); package1.Mirrors.Add( location ); location = new CPackageLocation( "ftp://www.testy.com/something/files", EOperatingSystem.Linux ); package1.Mirrors.Add( location ); m_Instance.Inputs.Add( package1 ); CPackageOutputEntry output1 = new CPackageOutputEntry( "Tag1", "TestPackage", "src/", "./TestPackage/" ); m_Instance.Outputs.Add( output1 ); CPackageOutputEntry output2 = new CPackageOutputEntry( "Tag2", "TestPackage", "lib/test_package32.dll", "./External_DLL_32/" ); m_Instance.Outputs.Add( output2 ); }