File tree Expand file tree Collapse file tree 4 files changed +9
-19
lines changed Expand file tree Collapse file tree 4 files changed +9
-19
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,7 @@ public class BucketInfo
19
19
/// <summary>
20
20
/// 是否https访问方式
21
21
/// </summary>
22
- public bool IsHttps { get ; private set ; }
23
-
24
-
22
+ public bool IsHttps { get ; private set ; }
25
23
26
24
/// <summary>
27
25
/// Bucket名称
@@ -36,13 +34,10 @@ public class BucketInfo
36
34
/// <summary>
37
35
/// 带有bucket网址的uri
38
36
/// </summary>
39
- public Uri BucketUri { get ; private set ; }
40
-
41
-
37
+ public Uri BucketUri { get ; private set ; }
42
38
43
39
private BucketInfo ( )
44
- {
45
- }
40
+ { }
46
41
47
42
/// <summary>
48
43
/// 使用自定义域名创建地址信息
Original file line number Diff line number Diff line change @@ -15,9 +15,7 @@ namespace Cuiliang.AliyunOssSdk.Entites
15
15
public class ClientConfiguration
16
16
{
17
17
private const string UserAgentPrefix = "aliyun-sdk-dotnet/" ;
18
- private static readonly string _userAgent = GetDefaultUserAgent ( ) ;
19
-
20
-
18
+ private static readonly string _userAgent = GetDefaultUserAgent ( ) ;
21
19
22
20
/// <summary>
23
21
/// HttpWebRequest最大的并发连接数目。
@@ -67,9 +65,7 @@ public string UserAgent
67
65
/// <summary>
68
66
/// 获取或设置请求发生错误时最大的重试次数。
69
67
/// </summary>
70
- public int MaxErrorRetry { get ; set ; } = 3 ;
71
-
72
-
68
+ public int MaxErrorRetry { get ; set ; } = 3 ;
73
69
74
70
/// <summary>
75
71
/// <para>设置自定义基准时间。</para>
@@ -93,7 +89,6 @@ public void SetCustomEpochTicks(long epochTicks)
93
89
/// </summary>
94
90
public long TickOffset { get ; internal set ; }
95
91
96
-
97
92
/// <summary>
98
93
/// 默认配置
99
94
/// </summary>
@@ -103,7 +98,6 @@ public static ClientConfiguration Default {
103
98
return new ClientConfiguration ( ) ;
104
99
}
105
100
}
106
-
107
101
108
102
/// <summary>
109
103
/// 获取User-Agent信息。
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ public class OssRegions
24
24
public const string HuHeHaoTe = "oss-cn-huhehaote" ;
25
25
26
26
27
-
28
27
// 华南 1
29
28
public const string ShenZhen = "oss-cn-shenzhen" ;
30
29
Original file line number Diff line number Diff line change @@ -10,8 +10,10 @@ namespace Cuiliang.AliyunOssSdk
10
10
{
11
11
public static class OssClientExtensions
12
12
{
13
- public static IServiceCollection AddOssClient ( this IServiceCollection services ,
14
- IConfigurationSection ossClientConf , ClientConfiguration config = null )
13
+ public static IServiceCollection AddOssClient (
14
+ this IServiceCollection services ,
15
+ IConfigurationSection ossClientConf ,
16
+ ClientConfiguration config = null )
15
17
{
16
18
var credential = new OssCredential ( ) ;
17
19
ossClientConf . Bind ( credential ) ;
You can’t perform that action at this time.
0 commit comments