12 2016 档案
asp.net core实现SHA1withRSA
摘要:public sealed class SHA1withRSA { /// <summary> /// pem SHA1withRSA签名 /// </summary> /// <param name="content">待签名字符串</param> /// <param name="private 阅读全文
posted @ 2016-12-28 23:07 都市浪子 阅读(4968) 评论(0) 推荐(1)
asp.net core获取自定义json的配置内容
摘要:首先在主目录下建立:Iyibank.Web.json文件 里边的内容如下: { "ConnectionStrings": { "RedisCache": "127.0.0.1:6379" }} 在其他需要调用RedisCache的地方调用如下: var builder = new Configura 阅读全文
posted @ 2016-12-08 00:33 都市浪子 阅读(1519) 评论(0) 推荐(0)
asp.net core获取HttpContext相关操作
摘要:建立类: using System;using System.Collections.Generic;using System.Linq;using System.Threading.Tasks;using Microsoft.AspNetCore.Http; namespace Iyibank.C 阅读全文
posted @ 2016-12-08 00:29 都市浪子 阅读(7926) 评论(1) 推荐(0)
asp.net core 阿里云消息服务(Message Service,原MQS)发送接口的实现
摘要:最近在后台处理订单统计等相关功能用到了大力的mqs,由于官方没有实现asp.net core的sdk,这里简单实现了发送信息的功能,有兴趣的可以参考实现其他相关功能 using System;using System.Collections.Generic;using System.Linq;usi 阅读全文
posted @ 2016-12-08 00:24 都市浪子 阅读(1289) 评论(2) 推荐(0)