Skip to content

Commit

Permalink
使用说明
Browse files Browse the repository at this point in the history
  • Loading branch information
欧俊 committed Aug 17, 2021
1 parent f8b3787 commit df6ba78
Showing 1 changed file with 40 additions and 2 deletions.
42 changes: 40 additions & 2 deletions content/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,42 @@
dotnet new --install DotNetCore.ApiTemplate.CSharp::1.0.0
# 安装

`dotnet new --install DotNetCore.ApiTemplate.CSharp::1.0.1`

dotnet new dncat -n Core.New.Templete -ha true -r true -re true -e true -p false
# 卸载

`dotnet new -u DotNetCore.ApiTemplate.CSharp`
# 帮助

`dotnet new dncat --help`

```shell
DotNetCoreApiTemplate (C#)
作者: 欧俊
选项:
-ha|--hangfire 是否使用hangfire
bool - Required

-r|--rabbitmq 是否使用RabbitMQ,使用 RabbitMQ.EventBus.AspNetCore包
bool - Required

-re|--redis 是否使用DistributedRedisCache
bool - Required

-p|--pg 是否使用Postgresql
bool - Optional
默认: true

-e|--es 是否使用ElasticSearch
bool - Required
```

#

## 使用pg,rabbitmq,redis
`dotnet new dncat -n Core.New.Service -ha false -r true -re true -e false -p true`
## 使用pg,rabbitmq,redis,hangfire
`dotnet new dncat -n Core.New.Service -ha true -r true -re true -e false -p true`
## 使用pg,rabbitmq,redis,es
`dotnet new dncat -n Core.New.Service -ha false -r true -re true -e true -p true`
## 使用rabbitmq,es
`dotnet new dncat -n Core.New.Service -ha false -r true -re false -e true -p false`

0 comments on commit df6ba78

Please sign in to comment.