小编Atl*_*oka的帖子

TCP/IP客户端循环.NET

我实际上在一个Web应用程序(ASP.NET MVC)上工作,它在TCP/IP的本地网络上向胖客户端应用程序(我无法修改)发送命令.我需要胖客户端应用程序响应我的命令或给我信息,所以连接需要一直打开.我创建一个循环来检查服务器响应,如下所示:

public static async void getMessage()
        {
            while(true)
            {
                // Buffer to store the response bytes.
                Byte[] data = new Byte[100000];

                // String to store the response ASCII representation.
                String responseData = String.Empty;

                // Read the first batch of the TcpServer response bytes.
                Int32 bytes = await stream.ReadAsync(data, 0, data.Length);
                if (bytes == 0) continue; 
                responseData = System.Text.Encoding.ASCII.GetString(data, 0, bytes);
                Debug.Write(responseData);

                await stream.ReadAsync(data, 0, data.Length);
            }
        }
Run Code Online (Sandbox Code Playgroud)

这实际上是有效的,我收到了来自服务器的响应,但是浏览器一直在"等待localhost",那么有没有更好的方法来做到这一点,没有浏览器上的循环?

非常感谢 !

.net asp.net tcp-ip

6
推荐指数
1
解决办法
153
查看次数

Swashbuckle Swagger UI 不显示参数描述

软件包版本6.0.0-beta902

例子 :

public class TestModel
{
    /// <summary>
    /// This is description of Name
    /// </summary>
    public string Name { get; set; }
}

public IActionResult HelloWorld(TestModel model)
{
    return Content("hello " + model.Name);
}
Run Code Online (Sandbox Code Playgroud)

为什么 Swagger UI 不显示 Name 参数说明?

asp.net swagger swashbuckle

6
推荐指数
1
解决办法
7509
查看次数

Azure机器学习结果解释

我尝试在Azure机器学习中进行“决策森林回归”算法来预测天气的实验。 在此处输入图片说明

我使用AML Studio建议的天气数据集(在机场有40万行Wheater)。 在此处输入图片说明

我想预测“ DryBulbCelsus”列(其值在20到23之间),因此我选择了“火车模型”中的列。我运行它一切顺利。但是问题是我不了解我的分数模型。我还有另外2列结果“得分标签平均值”和“得分标签标准偏差”,其中包含我无法理解的数据。 在此处输入图片说明

如果有人使用AML并且可以向我解释我如何解释结果数据。谢谢 !

regression azure azure-machine-learning-studio

5
推荐指数
1
解决办法
1203
查看次数