Ejemplo n.º 1
0
        public DefaultResult <int> mongodbSet()
        {
            WCFMongoClient <Logs> client = new WCFMongoClient <Logs>(Startup.MongodbUrl);
            var log = new Logs
            {
                Project     = "misapi2018",
                HostId      = "192.168.4.144:8008",
                LogName     = "FormDeubgeLog",
                Level       = "debug",
                UserId      = 58988,
                Url         = "http://misapi2018ali.517api.cn:8110/api/House/GetHouse_List_V1",
                RawUrl      = "/api/House/GetHouse_List_V1",
                UrlReferrer = "",
                IP          = "175.161.71.161, 111.202.96.71",
                OtherMsg    = new Dictionary <string, string>()
                {
                    { "method", "post" },
                },
                Msg = "压力测试"
            };
            var result = client.Add(log);


            return(result);
        }
Ejemplo n.º 2
0
        public DefaultResult <int> Mongodb_House_Set()
        {
            WCFMongoClient <Log_Info_House> client = new WCFMongoClient <Log_Info_House>(Startup.MongodbUrl);
            var log = new Log_Info_House
            {
                LogMemo       = "(Attachment_Sync_PicCount审核附件触发)修改了房源图片数量由[5]修改为[6](此条日志仅供研发部参考使用)",
                LogTypeId     = 32,
                LogClassID    = 2,
                userid        = 58989,
                cityid        = 1,
                orgid         = 22,
                DBSource      = 5,
                AddFromMethod = "MIS2014",
                mapid         = 3257279
            };
            var result = client.Add(log);


            return(result);
        }