摘要: 最近在nodejs使用了amqplib--rabbitmq的nodejs客户端。封装在了express中,先来代码。 其中StartConsumer 会在项目启动时启动,在整个生命周期中一直保持监听状态,在程序结束时mq的链接关闭。需要注意的是 noAck 这个参数,当为false是表示消息出队后不 阅读全文
posted @ 2016-11-04 14:41 Ryan chen 阅读(6344) 评论(0) 推荐(0) 编辑
摘要: 本框架的目的是建立一个标准化的.net core webapi 框架,利用.net core的性能和跨平台,提供高效的restful service(同时开发也会很高效)。 主要组层: 目前已经开发了一些,待框架比较完善时会在github上开源。在这过程中也会分享一些心得。(Ps:目前resharp 阅读全文
posted @ 2016-11-04 14:29 Ryan chen 阅读(278) 评论(0) 推荐(0) 编辑
摘要: Tag Helpers The EnvironmentTagHelper can be used to include different scripts in your views (for example, raw or minified) based on the runtime enviro 阅读全文
posted @ 2016-10-26 16:17 Ryan chen 阅读(200) 评论(0) 推荐(0) 编辑
摘要: startup startup asp.net core 的入口,在构造函数中完成环境参数的配置。 ConfigureServices 方法,参数是IServiceCollection,是配置依赖注入的。需要注意的是此方法是在configure之前运行的。 在startup中的几个类: middle 阅读全文
posted @ 2016-10-26 13:51 Ryan chen 阅读(608) 评论(0) 推荐(0) 编辑
摘要: asp.net core 是基于 .net core的,所以能够跨平台。 目前存在.NET Framework (CLR), .NET Core (CoreCLR) or Mono,可根据项目的具体情况选择。当然.net framwork 最成熟,不过仅限于windows。儿。net core 是由 阅读全文
posted @ 2016-10-24 15:52 Ryan chen 阅读(354) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2016-08-24 21:26 Ryan chen 阅读(5) 评论(0) 推荐(0) 编辑