File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
WebApiClientCore.Extensions.OAuths/Attributes Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -18,15 +18,31 @@ namespace WebApiClientCore.Attributes
18
18
public class OAuthTokenAttribute : ApiFilterAttribute
19
19
{
20
20
/// <summary>
21
- /// 获取或设置指定TokenProvider别名的方法参数名
21
+ /// 获取指定TokenProvider别名的方法参数名
22
22
/// </summary>
23
- public string ? AliasParameterName { get ; set ; }
23
+ public string ? AliasParameterName { get ; }
24
24
25
25
/// <summary>
26
26
/// 获取或设置token提供者的查找模式
27
27
/// </summary>
28
28
public TypeMatchMode TokenProviderSearchMode { get ; set ; } = TypeMatchMode . TypeOrBaseTypes ;
29
29
30
+ /// <summary>
31
+ /// token应用特性
32
+ /// </summary>
33
+ public OAuthTokenAttribute ( )
34
+ {
35
+ }
36
+
37
+ /// <summary>
38
+ /// token应用特性
39
+ /// </summary>
40
+ /// <param name="aliasParameterName">指定TokenProvider别名的方法参数名</param>
41
+ public OAuthTokenAttribute ( string ? aliasParameterName )
42
+ {
43
+ this . AliasParameterName = aliasParameterName ;
44
+ }
45
+
30
46
/// <summary>
31
47
/// 请求之前
32
48
/// </summary>
You can’t perform that action at this time.
0 commit comments