Exemple #1
0
        public void RpcPost()
        {
            string result = RpcHelper.PostAsync("https://www.baidu.com", new LoginDto {
                LoginName = "hqmcq", LoginPwd = "123456"
            }).Result;

            Assert.IsNotNull(result);
        }
Exemple #2
0
        static async void RpcPostTest()
        {
            ApiResponseBase <User> response = await RpcHelper.PostAsync <LoginDto, ApiResponseBase <User> >("http://192.168.6.191:8086/api/Login/Login ", new LoginDto { LoginName = "hqmcq", LoginPwd = "123456" });

            Console.WriteLine(response.ToJson());
        }