小编sth*_*ura的帖子

浏览器多个选项卡中的不同连接

为什么 SignalR 在浏览器的多个选项卡中为同一登录用户建立不同的连接。有没有办法为在同一浏览器中打开的所有选项卡建立一个连接。从连接我的意思是 SignalR 中用户的 connectionID。

signalr signalr-hub signalr.client

7
推荐指数
1
解决办法
7139
查看次数

How to make this code more efficient?

As i am not very advanced in C# yet, I try to learn how to make my code more efficient. I stored a lot of strings in some of the properties.

At the start of the application, i load all the seperatie properties into the textboxes. I now ise this code to load them all:

private void LoadStoredStrings()
{
    txtT1S1.Text = Properties.Settings.Default.strT1L1;
    txtT1S2.Text = Properties.Settings.Default.strT1L2;
    txtT1S3.Text = Properties.Settings.Default.strT1L3;
    txtT1S4.Text = Properties.Settings.Default.strT1L4;
    txtT1S5.Text = Properties.Settings.Default.strT1L5;
    txtT1S6.Text = Properties.Settings.Default.strT1L6;
    txtT1S7.Text = Properties.Settings.Default.strT1L7; …
Run Code Online (Sandbox Code Playgroud)

c# wpf properties

4
推荐指数
1
解决办法
177
查看次数

标签 统计

c# ×1

properties ×1

signalr ×1

signalr-hub ×1

signalr.client ×1

wpf ×1