随笔分类 - C#
摘要:cwc/web-page-screensaver: Display a web page as your screensaver (github.com)
阅读全文
摘要://获取第一个数据源DataTable DataTable _dtSource = DBHelper.GetDataTable("select top 10 ksdid,user_id,user_pwd from ksd_user_info"); IEnumerable<DataRow> query
阅读全文
摘要:question: i develop a class to write logs. it writes with "StreamWriter.WriteLine()" function. logStream.WriteLine(msgWrite); logStream.Flush(); some
阅读全文
摘要:Getting started Step 1 - In this example, we are going to create a package programmatically and copy a file from a source to a destination folder. To
阅读全文
摘要:public System.Data.Objects.ObjectQuery<T> CreateQuery<T> (string queryString, params System.Data.Objects.ObjectParameter[] parameters); Examples This
阅读全文
摘要:运算符描述实例 & 按位与运算符:参与运算的两个值,如果两个相应位都为1,则该位的结果为1,否则为0 (a & b) 输出结果 12 ,二进制解释: 0000 1100 | 按位或运算符:只要对应的二个二进位有一个为1时,结果位就为1。 (a | b) 输出结果 61 ,二进制解释: 0011 11
阅读全文
摘要:Format specifierNameDescriptionExamples "C" or "c" Currency Result: A currency value.Supported by: All numeric types.Precision specifier: Number of de
阅读全文
摘要:double value; value = 123; Console.WriteLine(value.ToString("00000")); Console.WriteLine(String.Format("{0:00000}", value)); // Displays 00123 value =
阅读全文
摘要:将 gRPC 服务添加到 ASP.NET Core 应用 gRPC 需要gRPC包。 配置 gRPC 在 Startup.cs 中: gRPC 是通过AddGrpc方法启用的。 每个 gRPC 服务通过MapGrpcService方法添加到路由管道。 C#复制 ASP.NET Core 中间件和功能
阅读全文
摘要:前些天gRPC 发布1.0 版本,代表着gRPC 已经正式进入稳定阶段。 今天我们就来学习gRPC C# 。而且目前也已经支持.NET Core 可以实现完美跨平台。 传统的.NET 可以通过Mono 来实现跨平台调用。 GitHub: https://github.com/grpc/grpc gR
阅读全文
摘要:Overloads Join(String, String[], Int32, Int32) Concatenates the specified elements of a string array, using the specified separator between each eleme
阅读全文
摘要:Using C# with Azure Functions Two important prerequisites need to be met to build Azure Functions applications with C#: As a C# developer, you are alr
阅读全文
摘要:严格来说,MQTT跟WebSocket关系不大。他们不是在一个层级的。 MQTT和TCP、WebSocket的关系可以用下图一目了然: 参考资料: http://www.zhihu.com/question/21816631 WebSocket的优势 以前,很多网站使用轮询实现推送技术。轮询是在特定
阅读全文
摘要:1.新建Netcore Web项目 2.创建简易通讯协议 SenderID发送者ID ReceiverID 接受者ID MessageType 消息类型 Text Voice 等等 Content 消息内容 3.添加中间件ChatWebSocketMiddleware 4.在Startup.cs中使
阅读全文
摘要:即时通信常用手段 1.第三方平台 谷歌、腾讯 环信等多如牛毛,其中谷歌即时通信是免费的,但免费就是免费的并不好用。其他的一些第三方一般收费的,使用要则限流(1s/限制x条消息)要么则限制用户数。 但稳定性什么都还不错,又能将服务压力甩出 2.System.Net.Sockets.Socket,也能写
阅读全文
摘要:Today, we are excited to announce the public preview of Azure Dev Spaces, a cloud-native development experience for Azure Kubernetes Service (AKS), wh
阅读全文
摘要:The Microsoft Research Outreach team has worked extensively with the external research community to enable adoption of cloud-based research infrastruc
阅读全文
摘要:SNS (Amazon Simple Notification Services) Amazon SNS (Amazon Simple Notification Services) is a notification service used to send the notifications to
阅读全文
摘要:Parsing PDF files in .NET using PDFBox and IKVM.NET (managed code). Parsing PDF files in .NET using PDFBox and IKVM.NET (managed code). Download sourc
阅读全文
摘要:I have found two primary libraries for programmatically manipulating PDF files; PdfBox and iText. These are both Java libraries, but I needed somethin
阅读全文

浙公网安备 33010602011771号