From bb695c9af2ecb6c5729fbb91e5db3897f24166b4 Mon Sep 17 00:00:00 2001 From: Savorboard Date: Sat, 16 Feb 2019 21:23:40 +0800 Subject: [PATCH] Update readme to add azure service bus description. --- README.md | 14 +++++++------- README.zh-cn.md | 20 +++++++++++--------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index bfd3dbf..5c70e2c 100644 --- a/README.md +++ b/README.md @@ -30,11 +30,12 @@ You can run the following command to install the CAP in your project. PM> Install-Package DotNetCore.CAP ``` -CAP supports RabbitMQ and Kafka as message queue, select the packages you need to install: +CAP supports RabbitMQ,Kafka and AzureService as message queue, select the packages you need to install: ``` PM> Install-Package DotNetCore.CAP.Kafka PM> Install-Package DotNetCore.CAP.RabbitMQ +PM> Install-Package DotNetCore.CAP.AzureServiceBus ``` CAP supports SqlServer, MySql, PostgreSql,MongoDB as event log storage. @@ -65,7 +66,7 @@ public void ConfigureServices(IServiceCollection services) // If you are using EF, you need to add the configuration: x.UseEntityFramework(); //Options, Notice: You don't need to config x.UseSqlServer(""") again! CAP can autodiscovery. - // If you are using Dapper, you need to add the configuration: + // If you are using ADO.NET, choose to add configuration you needed: x.UseSqlServer("Your ConnectionStrings"); x.UseMySql("Your ConnectionStrings"); x.UsePostgreSql("Your ConnectionStrings"); @@ -73,11 +74,10 @@ public void ConfigureServices(IServiceCollection services) // If you are using MongoDB, you need to add the configuration: x.UseMongoDB("Your ConnectionStrings"); //MongoDB 4.0+ cluster - // If you are using RabbitMQ, you need to add the configuration: - x.UseRabbitMQ("localhost"); - - // If you are using Kafka, you need to add the configuration: - x.UseKafka("localhost"); + // CAP support RabbitMQ,Kafka,AzureService as the MQ, choose to add configuration you needed: + x.UseRabbitMQ("ConnectionString"); + x.UseKafka("ConnectionString"); + x.UseAzureServiceBus("ConnectionString"); }); } diff --git a/README.zh-cn.md b/README.zh-cn.md index f4f4917..fad14b7 100644 --- a/README.zh-cn.md +++ b/README.zh-cn.md @@ -35,11 +35,12 @@ CAP 采用的是和当前数据库集成的本地消息表的方案来解决在 PM> Install-Package DotNetCore.CAP ``` -CAP 支持 Kafka 或者 RabbitMQ 消息队列,你可以选择下面的包进行安装: +CAP 支持 Kafka、RabbitMQ、AzureServiceBus 等消息队列,你可以按需选择下面的包进行安装: ``` PM> Install-Package DotNetCore.CAP.Kafka PM> Install-Package DotNetCore.CAP.RabbitMQ +PM> Install-Package DotNetCore.CAP.AzureServiceBus ``` CAP 提供了 Sql Server, MySql, PostgreSQL,MongoDB 的扩展作为数据库存储: @@ -66,19 +67,20 @@ public void ConfigureServices(IServiceCollection services) services.AddCap(x => { //如果你使用的 EF 进行数据操作,你需要添加如下配置: - x.UseEntityFramework(); //可选项,你不需要再次配置 x.UseSqlServer 了 + x.UseEntityFramework(); //可选项,你不需要再次配置 x.UseSqlServer 了 - //如果你使用的Ado.Net,根据数据库选择进行配置: + //如果你使用的ADO.NET,根据数据库选择进行配置: x.UseSqlServer("数据库连接字符串"); - x.UseMySql("Your ConnectionStrings"); - x.UsePostgreSql("Your ConnectionStrings"); + x.UseMySql("数据库连接字符串"); + x.UsePostgreSql("数据库连接字符串"); //如果你使用的 MongoDB,你可以添加如下配置: - x.UseMongoDB("Your ConnectionStrings"); //注意,仅支持MongoDB 4.0+集群 + x.UseMongoDB("ConnectionStrings"); //注意,仅支持MongoDB 4.0+集群 - //如果你使用的 RabbitMQ 或者 Kafka 作为MQ,根据使用选择配置: - x.UseRabbitMQ("localhost"); - x.UseKafka("localhost"); + //CAP支持 RabbitMQ、Kafka、AzureServiceBus 等作为MQ,根据使用选择配置: + x.UseRabbitMQ("ConnectionStrings"); + x.UseKafka("ConnectionStrings"); + x.UseAzureServiceBus("ConnectionStrings"); }); }