Skip to content

naruto1227/Naruto.Subscribe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Naruto.Subscribe

介绍

发布订阅

软件架构

  1. 基于 net core 3.1
  2. Redis使用的是自己根据StackExchanges.Redis封装的仓储 https://gitee.com/haiboi/Naruto.Data

安装教程

  1. 安装 Naruto.Subscribe 核心包
  2. 安装 Naruto.Subscribe.Provider.Redis ,基于redis的发布订阅
  3. 安装 Naruto.Subscribe.Provider.RabbitMQ ,基于RabbitMQ的发布订阅,使用的是Direct 直连交换机

使用说明

  1. 当前框架 默认使用的redis的发布订阅,更多mq的订阅正在接入中
  2. 如果需要实现自己的订阅方式,需要实现接口 INarutoPublish发布接口,和ISubscribeEvent订阅接口
  3. 书写自己的订阅业务的时候,需要继承ISubscribe接口,继承此接口的对象自动会注入成单例对象,可以使用DI的功能
  4. subscribe
  5. 给需要订阅的方法标记Subscribe特性
  6. 使用NarutoMessageAopEvent,可以处理消息发送前后的aop事件
  7. 注入方法

    use

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published