zhenlei520
zhenlei520
> lack `RequireAuthorization` method like `MapControllers().RequireAuthorization()` @MayueCif like this? ``` C# App.MapGet("/ping/healthy", () => { return "success"; }).RequireAuthorization("user"); ``` Currently, only a single method specification is supported. Specifying policies by...
> @zhenlei520 PTAL, maybe it can add to 0.6? @doddgu Try to support in 0.6.0
> > 2. IRepository adds an AnyAsync method > > This is not the responsibility of IRepository Understand, IRepository only provides basic functions of warehousing, others are extended by users...
此处为`Route.Prefix = "api";` ``` C# public class CatalogService: ServiceBase { public CatalogService() { // 可有可无,设置后优先级将覆盖全局配置 Route.Prefix = "api"; Route.Version = "v2"; Route.PluralizeServiceName = true; } } ```
按照默认Route规则进行注册:api/v1/{controller}/{id?}/{method} 这里如果参数有id,默认注册为`api/v1/{controller}/{id}`或`api/v1/{controller}/{id?}` 路由的规则多种多样,无法满足所有情况,如果需要的路由地址为`api/v1/{controller}/{id?}/{method}`,则可以重写`string GetMethodName(MethodInfo methodInfo)`方法
> Add docs to it. I will continue to improve
``` C# AlibabaCloudCredentialsProvider provider = new AccessKeyCredentialProvider("", ""); IClientProfile profile = DefaultProfile.GetProfile("cn-hangzhou"); DefaultAcsClient client = new DefaultAcsClient(profile, provider); var request = new AssumeRoleRequest { RoleArn = "", RoleSessionName = "",...
@qinxh This issue was mentioned in previous issues, but it has been rejected https://github.com/masastack/MASA.BuildingBlocks/issues/7#issuecomment-1046472267
This is a new feature, rc is mainly to fix bugs,It will be supported in 2.0
本地消息表支持使用构造器设置主键,它将在 `1.0.0-rc.3` 进行支持,本地消息表增加应用id的功能将安排到 `1.0` 之后再添加支持