From cfc12aa99c1d877c8f4b9a20ac6d21e00a724105 Mon Sep 17 00:00:00 2001 From: AlexLEWIS Date: Mon, 10 Jul 2017 00:53:31 +0800 Subject: [PATCH] Update README.zh-cn.md --- README.zh-cn.md | 48 ++++++++++++++++++++++++++---------------------- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/README.zh-cn.md b/README.zh-cn.md index e65a78e..f04265d 100644 --- a/README.zh-cn.md +++ b/README.zh-cn.md @@ -1,44 +1,48 @@ -# CAP                       [English](https://github.com/dotnetcore/CAP/blob/master/README.md) +

+English +

+ +# CAP [![Travis branch](https://img.shields.io/travis/dotnetcore/CAP/master.svg?label=travis-ci)](https://travis-ci.org/dotnetcore/CAP) [![AppVeyor](https://ci.appveyor.com/api/projects/status/4mpe0tbu7n126vyw?svg=true)](https://ci.appveyor.com/project/yuleyule66/cap) [![NuGet](https://img.shields.io/nuget/vpre/DotNetCore.CAP.svg)](https://www.nuget.org/packages/DotNetCore.CAP/) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/dotnetcore/CAP/master/LICENSE.txt) -CAP 頁匯倖壓蛍下塀狼由SOA、MicroService嶄糞嶐釀孀志対垉朕癸万醤嗤煤楚雫、叟聞喘、互來嬬吉蒙泣。 +CAP 筝筝絽綣靗紫鐚SOAMicroService鐚筝絎ー膸筝贋х綺鐚絎傑莉脂靮с篏睡蕭ц順合鴻 -## 圓誓OverView +## 蘂茹鐚OverView鐚 -CAP 頁壓匯倖 ASP.NET Core 酊訊佇荒探朕癸輝隼麿辛參喘噐 ASP.NET Core On .NET Framework 嶄。 +CAP 筝筝 ASP.NET Core 蕁合筝篏睡綺鐚綵銀篁ョ篋 ASP.NET Core On .NET Framework 筝 -低辛參委 CAP 心撹頁匯倖 EventBus咀葎万醤嗤 EventBus 議侭嗤孔嬬旺拝 CAP 戻工阻厚紗酒晒議圭塀栖侃尖 EventBus 嶄議窟下才匡堋。 +篏篁ユ CAP 筝筝 EventBus鐚筝阪傑 EventBus 緒綛銀 CAP 箴篋翫膊劫ュ EventBus 筝絽莅∫ -CAP 醤嗤連隔消晒議孔嬬輝低議捲暦序佩嶷尼賜宀經字扮万辛參隠屬連議辛真來。CAP戻工阻児噐Microsoft DI 議 Publisher Service 捲暦万辛參才低議匍暦捲暦序佩涙血潤栽旺拝屶隔膿匯崑來議並暦。 +CAP 傑羔箙緒綵篏∴茵絎堺九篁ヤ莚羔сCAP箴篋坂Microsoft DI Publisher Service ¥絎篁ュ篏筝≧∴茵膽膸鐚綛銀綣坂贋х篋< -宸頁CAP鹿壓ASP.NET Core 裏捲暦尺更嶄議匯倖幣吭夕 +菴CAPASP.NET Core 緇≧倶筝筝筝腓堺常 ![](http://images2015.cnblogs.com/blog/250417/201707/250417-20170705175827128-1203291469.png) -> 夕嶄糞濂新峇燕喘薩旗鷹倡濂新峇燕CAP坪何糞屐 +> 鞘賢絎膾翠篁h;隙撮鐚膾翠篁h;CAP絎ー ## Getting Started ### NuGet -低辛參塰佩參和和凋綜壓低議酊訊舒苛 CAP。 +篏篁ヨ茵篁ヤ筝巡擦篏蕁合筝絎茖 CAP -泌惚低議連錦双聞喘議頁 Kafka 議三低辛參 +絋篏羔篏睡 Kafka 莚鐚篏篁ワ ``` PM> Install-Package DotNetCore.CAP.Kafka -Pre ``` -泌惚低議連錦双聞喘議頁 RabbitMQ 議三低辛參 +絋篏羔篏睡 RabbitMQ 莚鐚篏篁ワ ``` PM> Install-Package DotNetCore.CAP.RabbitMQ -Pre ``` -CAP 潮範戻工阻 Entity Framwork 恬葎方象垂贋刈 +CAP 藥莅ゆ箴篋 Entity Framwork 篏筝堺井綺絖鐚 ``` PM> Install-Package DotNetCore.CAP.EntityFrameworkCore -Pre @@ -46,7 +50,7 @@ PM> Install-Package DotNetCore.CAP.EntityFrameworkCore -Pre ### Configuration -遍枠塘崔CAP欺 Startup.cs 猟周嶄泌和 +薤臀CAP Startup.cs 篁銀賢鐚絋筝鐚 ```cs public void ConfigureServices(IServiceCollection services) @@ -69,9 +73,9 @@ public void Configure(IApplicationBuilder app) ``` -### 窟下 +### 絽 -壓 Controller 嶄廣秘 `ICapPublisher` 隼朔聞喘 `ICapPublisher` 序佩連窟僕 + Controller 筝羈 `ICapPublisher` 九篏睡 `ICapPublisher` 菴茵羔 ```cs public class PublishController : Controller @@ -87,7 +91,7 @@ public class PublishController : Controller [Route("~/checkAccount")] public async Task PublishMessage() { - //峺協窟僕議連遊才坪否 + //絎羔紊翫絎 await _publisher.PublishAsync("xxx.services.account.check", new Person { Name = "Foo", Age = 11 }); return Ok(); @@ -96,11 +100,11 @@ public class PublishController : Controller ``` -### 匡堋 +### 莅∫ **Action Method** -壓 Action 貧耶紗 CapSubscribeAttribute 栖匡堋犢慙連。 + Action 筝羞糸 CapSubscribeAttribute ヨ∫後恰 ```cs public class PublishController : Controller @@ -127,7 +131,7 @@ public class PublishController : Controller **Service Method** -泌惚低議匡堋圭隈短嗤了噐 Controller 嶄夸低匡堋議窃俶勣写覚 `ICapSubscribe` +絋篏莅∫号羃≧篏篋 Controller 筝鐚篏莅∫膠脂荀膸ф `ICapSubscribe`鐚 ```cs @@ -151,7 +155,7 @@ namespace xxx.Service ``` -隼朔壓 Startup.cs 嶄議 `ConfigureServices()` 嶄廣秘低議 `ISubscriberService` 窃 +九 Startup.cs 筝 `ConfigureServices()` 筝羈ヤ `ISubscriberService` 膠 ```cs public void ConfigureServices(IServiceCollection services) @@ -160,9 +164,9 @@ public void ConfigureServices(IServiceCollection services) } ``` -## 恒 +## 茣∞ -恒弋鍔郤魑サ跳酬岻匯祥頁頁歌嚥網胎才網胎諒籾issue。低匆辛參宥狛戻住議 Pull Request 旗鷹延厚恬竃恒廖 +茣∞膊号箙筝絨掩筝莅莅阪莅莅咲蘂鐚issue鐚篏箙篁ラ菴篋ょ Pull Request 篁g岩肴粥 ### License