static void Main(string[] args) { imongointerface = new MongoInterfaceClass <DB_repository.Tag>(); Thread thMain = new Thread(new ThreadStart(menu)); thMain.Start(); thMain.Join(); }
public void threadAdd(object tag) { IMongo_List ilistDB = new MongoDB_List(); IConnectMongoClient imongoCon = new ConnectMongoClient(); imongointerface = new MongoInterfaceClass <DB_repository.Tag>(); itag = new Tag_services(); itag.addData((DB_repository.Tag)tag); imongointerface.InsertOne(itag.getData()); addingTag = itag.getData(); }