摘要: public sealed class SHA1withRSA { /// <summary> /// pem SHA1withRSA签名 /// </summary> /// <param name="content">待签名字符串</param> /// <param name="private 阅读全文
posted @ 2016-12-28 23:07 都市浪子 阅读(4862) 评论(0) 推荐(1) 编辑
摘要: 首先在主目录下建立:Iyibank.Web.json文件 里边的内容如下: { "ConnectionStrings": { "RedisCache": "127.0.0.1:6379" }} 在其他需要调用RedisCache的地方调用如下: var builder = new Configura 阅读全文
posted @ 2016-12-08 00:33 都市浪子 阅读(1478) 评论(0) 推荐(0) 编辑
摘要: 建立类: 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 都市浪子 阅读(7864) 评论(1) 推荐(0) 编辑
摘要: 最近在后台处理订单统计等相关功能用到了大力的mqs,由于官方没有实现asp.net core的sdk,这里简单实现了发送信息的功能,有兴趣的可以参考实现其他相关功能 using System;using System.Collections.Generic;using System.Linq;usi 阅读全文
posted @ 2016-12-08 00:24 都市浪子 阅读(1221) 评论(2) 推荐(0) 编辑
摘要: 一、去nginx官网下载nginx相应的版本二、打开nginx下的conf目录下的nginx.conf文件,并备份此文件一份三、把nginx.conf的内容修改如下:#user nobody;worker_processes 1;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;#pid logs/nginx.pid;events { worker_connections 1024;}http { include mime.types; default_type.. 阅读全文
posted @ 2011-08-22 16:21 都市浪子 阅读(333) 评论(1) 推荐(0) 编辑
摘要: ///<summary>///添加到购物车///</summary>///<paramname="Primarykey">主键,内部以','形式分开</param>///<paramname="Quantity">索引</param>publicstaticvoidAddCart(stringPrimarykey,intQuantity){if(string.IsNullOrEmpty(GetCookie()))//如果cookies为空{Hashtableht=ne 阅读全文
posted @ 2011-07-18 13:43 都市浪子 阅读(521) 评论(0) 推荐(0) 编辑
摘要: 很多人都在使用.netform认证,但我们使用System.Web.Security.FormsAuthentication.SetAuthCookie(stringuserName,boolcreatePersistentCookie)时,发现很多时候我们需要保存一些object对象到cookie里边;这时候就需要修改方法来达到我们的需求。.net3.5及以后版本提供把对象转化为JSON的方法。///<summary>///序列化操作///</summary>///<typeparamname="T">泛型</typeparam& 阅读全文
posted @ 2011-07-15 17:23 都市浪子 阅读(408) 评论(1) 推荐(0) 编辑