コード例 #1
0
        static void Main(string[] args)
        {
            imongointerface = new MongoInterfaceClass <DB_repository.Tag>();
            Thread thMain = new Thread(new ThreadStart(menu));

            thMain.Start();
            thMain.Join();
        }
コード例 #2
0
        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();
        }