新文章 网摘 文章 随笔 日记

10 2020 档案

摘要:http://192653.site.jgz.la/manage/index.php 阅读全文
posted @ 2020-10-29 22:22 岭南春 阅读(41) 评论(0) 推荐(0)
摘要://反射得到消息体的类型 var bodyType = resolveMessageBody.GetType(); //反射得到消息体实际值类型 var bodyValueType = bodyType.GetGenericArguments(); //创建一个完整的消息实例 Type t = ty 阅读全文
posted @ 2020-10-29 10:47 岭南春 阅读(201) 评论(0) 推荐(0)
摘要:public virtual bool IsInstanceOfInterface(object message) { bool result = message.GetType().GetInterfaces().Any(x => x.IsGenericType && x.GetGenericTy 阅读全文
posted @ 2020-10-28 15:59 岭南春 阅读(170) 评论(0) 推荐(0)
摘要:namespace BinaryProtocol.Models.Constants { public enum Protocol001MessageType : byte { /// <summary> /// 震动事件 /// </summary> ShockEvent = 3, /// <sum 阅读全文
posted @ 2020-10-27 17:11 岭南春 阅读(86) 评论(0) 推荐(0)
摘要:using System; using System.Windows.Forms; using BinaryProtocol.Core.Handles; using BinaryProtocol.Core.Models; using BinaryProtocol.Core.Tcp; using Bi 阅读全文
posted @ 2020-10-27 17:09 岭南春 阅读(185) 评论(0) 推荐(0)
摘要:using System; using System.Windows.Forms; using BinaryProtocol.Core.Handles; using BinaryProtocol.Core.Models; using BinaryProtocol.Core.Tcp; using Bi 阅读全文
posted @ 2020-10-27 17:07 岭南春 阅读(153) 评论(0) 推荐(0)
摘要:using System.Threading.Tasks; using BinaryProtocol.Core.Tcp; namespace BinaryProtocol.Core.Handles { public interface IMessageHandle { /// <summary> / 阅读全文
posted @ 2020-10-27 17:06 岭南春 阅读(75) 评论(0) 推荐(0)
摘要:namespace BinaryProtocol.Core.Constants { public enum Command : int { /// <summary> /// 连接 /// </summary> Connect = 0, /// <summary> /// 连接回复 /// </su 阅读全文
posted @ 2020-10-27 17:02 岭南春 阅读(59) 评论(0) 推荐(0)
摘要:namespace BinaryProtocol.Core.Models { public interface IMessage<T> { /// <summary> /// 消息头 /// </summary> MessageHead Head { get; } /// <summary> /// 阅读全文
posted @ 2020-10-27 17:01 岭南春 阅读(119) 评论(0) 推荐(0)
摘要:using System; using System.IO; using System.Net.Sockets; namespace BinaryProtocol.Core.Tcp { public class ConnectContext { public MessageServer TcpSer 阅读全文
posted @ 2020-10-27 16:57 岭南春 阅读(187) 评论(0) 推荐(0)
摘要:static async Task StartTcpClientAsync(TcpClient tcpClient) { Console.WriteLine($"Connection from: [{tcpClient.Client.RemoteEndPoint}]"); var stream = 阅读全文
posted @ 2020-10-26 09:42 岭南春 阅读(260) 评论(0) 推荐(0)
摘要:using System; using System.Linq; using System.Reflection; using BinaryProtocol.Core.Attributes; namespace BinaryProtocol.Core.Coder { public class Bit 阅读全文
posted @ 2020-10-21 15:55 岭南春 阅读(196) 评论(0) 推荐(0)
摘要:参考文章: https://www.cnblogs.com/aoyeyuyan/p/5383042.html https://my.oschina.net/u/1859679/blog/842513 https://zhuanlan.zhihu.com/p/21999964 https://www. 阅读全文
posted @ 2020-10-16 11:42 岭南春 阅读(126) 评论(0) 推荐(0)
摘要:1,生成证书: 需要密码》 openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 3650 或者 不需要密码 openssl req -x509 -newkey rsa:2048 -keyout key.pem 阅读全文
posted @ 2020-10-14 16:03 岭南春 阅读(380) 评论(0) 推荐(0)
摘要:英文原文:https://blog.csdn.net/blue0bird/article/details/78656536 https://jamielinux.com/docs/openssl-certificate-authority/index.html 本文源于两篇英文文档,将其合二为一,翻 阅读全文
posted @ 2020-10-14 15:33 岭南春 阅读(8489) 评论(0) 推荐(0)
摘要://可选可搜也可输入的单选下拉列表 //使用方法: /* var employees = [ { 'Value': '111111', 'Text': 'AAAAAA' }, { 'Value': '122222', 'Text': 'BBBBBB' } ]; var selectedItem = 阅读全文
posted @ 2020-10-14 08:48 岭南春 阅读(148) 评论(0) 推荐(0)
摘要:(function ($) { //jQuery1.8.1以上版本使用 // a case insensitive jQuery :contains selector /*$.expr[":"].searchableSelectContains = $.expr.createPseudo(funct 阅读全文
posted @ 2020-10-14 08:42 岭南春 阅读(112) 评论(0) 推荐(0)
摘要://使用iframe加载页面并以子窗体方式显示 var SubWindow = function (width, height, onClosedCallBack) { var that = this; this.width = width; this.height = height; this.s 阅读全文
posted @ 2020-10-09 13:58 岭南春 阅读(235) 评论(0) 推荐(0)
摘要:Silo: using Microsoft.Extensions.Logging; using Orleans.Configuration; using Orleans.Hosting; using System; using System.Threading.Tasks; using Fabric 阅读全文
posted @ 2020-10-08 15:55 岭南春 阅读(157) 评论(0) 推荐(0)
摘要:public class NLogLogger : ILogger { private static readonly Queue<Task> ErrQueue = new Queue<Task>(); private readonly Logger _logger = LogManager.Get 阅读全文
posted @ 2020-10-07 17:33 岭南春 阅读(64) 评论(0) 推荐(0)