internal void Start() { if (DataInMemory) { FileStore = new FileStoreMemory(); PackageCollection = new JSONMemoryStore<Package>(); } else { //TODO: allow different types of stores (e.g.: mongodb) FileStore = new FileStoreFilesystem(ConfigurationStore); PackageCollection = new JSONStore<Package>(ConfigurationStore.DatabaseFile.Value); } PackageDAO = new PackageDAO(PackageCollection, FileStore); }
internal void Start() { if (DataInMemory) { FileStore = new FileStoreMemory(); PackageCollection = new JSONMemoryStore <Package>(); } else { //TODO: allow different types of stores (e.g.: mongodb) FileStore = new FileStoreFilesystem(ConfigurationStore); PackageCollection = new JSONStore <Package>(ConfigurationStore.DatabaseFile.Value); } PackageDAO = new PackageDAO(PackageCollection, FileStore); }