摘要: using System; using System.Collections.Generic; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Htt 阅读全文
posted @ 2020-12-01 14:12 老王子 阅读(109) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt; using System.Linq; using System.Security.Claims; using System.Security.Cryptography; using System.Text; using Sy... 阅读全文
posted @ 2019-11-03 10:02 老王子 阅读(397) 评论(0) 推荐(0) 编辑
摘要: using RabbitMQ.Client; using System; using System.Text; using System.Threading; namespace SampleStack.RabbitMQ.Producer { class Program { static void Main(string[] args) { ... 阅读全文
posted @ 2019-09-03 05:11 老王子 阅读(188) 评论(0) 推荐(0) 编辑
摘要: using Quartz; using Quartz.Impl; using System; using System.Threading.Tasks; namespace WorkSample.Quartz { class Program { static void Main(string[] args) { ScheduleJobs().GetAwaiter().GetResult(); } 阅读全文
posted @ 2019-09-01 09:15 老王子 阅读(137) 评论(0) 推荐(0) 编辑
摘要: using Newtonsoft.Json; using StackExchange.Redis; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Lin... 阅读全文
posted @ 2019-08-25 21:58 老王子 阅读(170) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2019-06-30 01:35 老王子 阅读(6) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; namespace Validation // include rules in the domain that may vary from instance to instance { class Program { stati... 阅读全文
posted @ 2019-05-25 18:52 老王子 阅读(227) 评论(0) 推荐(0) 编辑
摘要: public class MyException : Exception { public MyException(string message) : base(message) { } public MyException(string message, Exception innerException) : b... 阅读全文
posted @ 2019-05-11 11:49 老王子 阅读(115) 评论(0) 推荐(0) 编辑
摘要: [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)] public class SortableAttribute : Attribute { public string EntityName { get; set; } public bool Default { get; set; } } p... 阅读全文
posted @ 2019-04-19 21:30 老王子 阅读(204) 评论(0) 推荐(0) 编辑
摘要: using Microsoft.AspNetCore; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Builder;... 阅读全文
posted @ 2019-03-12 04:14 老王子 阅读(783) 评论(0) 推荐(0) 编辑