摘要:
几天写一个小程序的时候用到了SignalR,发现现在SingalR Server 支持强类型了,也就是说,我们可以定义一个客户端的通知契约: public interface IClient { void SayHello(string message); } 然后Hub就可以这么写了: publi 阅读全文
posted @ 2023-08-17 17:31 WebEnh 阅读(62) 评论(0) 推荐(0)
|
|||
|
摘要:
几天写一个小程序的时候用到了SignalR,发现现在SingalR Server 支持强类型了,也就是说,我们可以定义一个客户端的通知契约: public interface IClient { void SayHello(string message); } 然后Hub就可以这么写了: publi 阅读全文
posted @ 2023-08-17 17:31 WebEnh 阅读(62) 评论(0) 推荐(0)
摘要:
一段时间后关机:shutdown -s -t 秒数效果是倒计时到该秒数后关机,例如shutdown -s -t 3600就是3600秒后关机,也就是一小时后关机 立即关机命令:shutdown -p关闭本地计算机,效果是马上关机,而不进行倒计时也可以使用shutdown -s -t 0设置0秒后关机 阅读全文
posted @ 2023-08-17 13:09 WebEnh 阅读(5491) 评论(0) 推荐(1) |
|||