摘要: 静态单例的几种使用创建方法 代码: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace 静态单例{ publ 阅读全文
posted @ 2020-08-24 16:08 黑鹰99 阅读(402) 评论(0) 推荐(0)
摘要: 1.计时器,应用场景,定时指定程序执行某个任务或者动作 演示代码: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;using Syste 阅读全文
posted @ 2020-08-24 15:29 黑鹰99 阅读(405) 评论(0) 推荐(0)
摘要: 1.创建一个队列消费者类QueueConsumer.cs using RabbitMQ.Client;using RabbitMQ.Client.Events;using System;using System.Collections.Concurrent;using System.Collecti 阅读全文
posted @ 2020-08-24 14:53 黑鹰99 阅读(289) 评论(0) 推荐(0)
摘要: 1. XML序列化实例演示 using System;using System.Collections.Generic;using System.Diagnostics;using System.IO;using System.Linq;using System.Text;using System. 阅读全文
posted @ 2020-08-24 13:51 黑鹰99 阅读(221) 评论(0) 推荐(0)
摘要: 在使用队列前,我们了解队列的特点是先进先出 1 . 新建一个线程操作类Process.cs using System;using System.Collections.Concurrent;using System.Collections.Generic;using System.Linq;usin 阅读全文
posted @ 2020-08-24 13:21 黑鹰99 阅读(3130) 评论(0) 推荐(0)
摘要: 1 . 创建Protobuf序列化 工具类ProtobufExchang.cs, 需要添加应用protobuf-net.dll 组件 using ProtoBuf;using System;using System.Collections.Generic;using System.IO;using 阅读全文
posted @ 2020-08-24 10:16 黑鹰99 阅读(2890) 评论(0) 推荐(0)