Skip to content

Commit fda0eb5

Browse files
authored
feat: major update, use HttpClient as a underlaying Http Service (#283)
1 parent 1da102b commit fda0eb5

File tree

506 files changed

+98883
-46873
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

506 files changed

+98883
-46873
lines changed

.circleci/config.yml

+43-16
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
parameters:
6262
dotnet-image:
6363
type: string
64-
default: &default-dotnet-image "mcr.microsoft.com/dotnet/core/sdk:3.1"
64+
default: &default-dotnet-image "mcr.microsoft.com/dotnet/sdk:6.0"
6565
dotnet-target-version:
6666
type: string
6767
default: "netstandard2.1"
@@ -117,16 +117,47 @@ jobs:
117117
command: /c/influxdata/influxdb-1.8.0-1/influxd.exe -config "Scripts/influxdb.conf"
118118
background: true
119119
- run: |
120-
sed -i '/<TargetFrameworks>netcoreapp2.2;netcoreapp3.1;netcoreapp5.0;netcoreapp6.0<\/TargetFrameworks>/c\<TargetFramework>'netcoreapp5.0'<\/TargetFramework>' Client.Core.Test/Client.Core.Test.csproj
121-
sed -i '/<TargetFrameworks>netcoreapp2.2;netcoreapp3.1;netcoreapp5.0;netcoreapp6.0<\/TargetFrameworks>/c\<TargetFramework>'netcoreapp5.0'<\/TargetFramework>' Client.Test/Client.Test.csproj
122-
sed -i '/<TargetFrameworks>netcoreapp2.2;netcoreapp3.1;netcoreapp5.0;netcoreapp6.0<\/TargetFrameworks>/c\<TargetFramework>'netcoreapp5.0'<\/TargetFramework>' Client.Legacy.Test/Client.Legacy.Test.csproj
123-
sed -i '/<TargetFrameworks>netcoreapp2.2;netcoreapp3.1;netcoreapp5.0;netcoreapp6.0<\/TargetFrameworks>/c\<TargetFramework>'netcoreapp5.0'<\/TargetFramework>' Client.Linq.Test/Client.Linq.Test.csproj
124-
sed -i '/<TargetFrameworks>netcoreapp2.2;netcoreapp3.1;netcoreapp5.0;netcoreapp6.0<\/TargetFrameworks>/c\<TargetFramework>'netcoreapp5.0'<\/TargetFramework>' Examples/Examples.csproj
120+
sed -i '/<TargetFrameworks>netcoreapp3.1;netcoreapp5.0;netcoreapp6.0<\/TargetFrameworks>/c\<TargetFramework>'netcoreapp5.0'<\/TargetFramework>' Client.Core.Test/Client.Core.Test.csproj
121+
sed -i '/<TargetFrameworks>netcoreapp3.1;netcoreapp5.0;netcoreapp6.0<\/TargetFrameworks>/c\<TargetFramework>'netcoreapp5.0'<\/TargetFramework>' Client.Test/Client.Test.csproj
122+
sed -i '/<TargetFrameworks>netcoreapp3.1;netcoreapp5.0;netcoreapp6.0<\/TargetFrameworks>/c\<TargetFramework>'netcoreapp5.0'<\/TargetFramework>' Client.Legacy.Test/Client.Legacy.Test.csproj
123+
sed -i '/<TargetFrameworks>netcoreapp3.1;netcoreapp5.0;netcoreapp6.0<\/TargetFrameworks>/c\<TargetFramework>'netcoreapp5.0'<\/TargetFramework>' Client.Linq.Test/Client.Linq.Test.csproj
124+
sed -i '/<TargetFrameworks>netcoreapp3.1;netcoreapp5.0;netcoreapp6.0<\/TargetFrameworks>/c\<TargetFramework>'netcoreapp5.0'<\/TargetFramework>' Examples/Examples.csproj
125125
- run: dotnet nuget locals --clear all
126126
- run: dotnet restore --no-cache --force -s https://api.nuget.org/v3/index.json
127127
- run: dotnet build
128128
- run: dotnet test Client.Legacy.Test/Client.Legacy.Test.csproj --no-build
129129

130+
check-compilation-warnings:
131+
docker:
132+
- image: *default-dotnet-image
133+
steps:
134+
- checkout
135+
- run:
136+
name: Check compilation warnings
137+
command: |
138+
dotnet clean --configuration Release
139+
dotnet build --configuration Release -warnAsError -warnAsMessage:CS0618
140+
141+
check-code-formatting:
142+
docker:
143+
- image: *default-dotnet-image
144+
steps:
145+
- checkout
146+
- restore_cache:
147+
name: Restoring reSharper Cache
148+
keys:
149+
- &cache-key reSharper-cache-2021_3_3
150+
- run:
151+
name: Check code formatting
152+
command: |
153+
./Scripts/reformat-code.sh
154+
git diff --exit-code
155+
- save_cache:
156+
name: Saving reSharper Cache
157+
key: *cache-key
158+
paths:
159+
- ./reSharperCLI
160+
130161
deploy-preview:
131162
parameters:
132163
influxdb-image:
@@ -151,32 +182,28 @@ workflows:
151182
version: 2
152183
build:
153184
jobs:
154-
- tests-dotnet:
155-
name: dotnet-2.2
156-
dotnet-image: "mcr.microsoft.com/dotnet/core/sdk:2.2"
157-
dotnet-target-version: "netstandard2.0"
185+
- check-compilation-warnings
186+
- check-code-formatting
158187
- tests-dotnet:
159188
name: dotnet-3.1-nightly
160189
influxdb-image: "quay.io/influxdb/influxdb:nightly"
161-
- tests-dotnet:
162-
name: dotnet-3.0
163-
dotnet-image: "mcr.microsoft.com/dotnet/core/sdk:3.0"
190+
dotnet-image: "mcr.microsoft.com/dotnet/core/sdk:3.1"
164191
- tests-dotnet:
165192
name: dotnet-3.1
193+
dotnet-image: "mcr.microsoft.com/dotnet/core/sdk:3.1"
166194
- tests-dotnet:
167195
name: dotnet-5.0
168196
code-coverage-report: true
169197
dotnet-image: "mcr.microsoft.com/dotnet/sdk:5.0"
170198
- tests-dotnet:
171199
name: dotnet-6.0
172-
dotnet-image: "mcr.microsoft.com/dotnet/sdk:6.0"
173200
- tests-windows:
174201
name: dotnet-windows
175202
- deploy-preview:
176203
requires:
177-
- dotnet-2.2
204+
- check-compilation-warnings
205+
- check-code-formatting
178206
- dotnet-3.1-nightly
179-
- dotnet-3.0
180207
- dotnet-3.1
181208
- dotnet-5.0
182209
- dotnet-6.0

.editorconfig

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
2+
[*]
3+
charset = utf-8
4+
end_of_line = lf
5+
trim_trailing_whitespace = false
6+
insert_final_newline = false
7+
indent_style = space
8+
indent_size = 4
9+
10+
# Microsoft .NET properties
11+
csharp_new_line_before_members_in_object_initializers = false
12+
csharp_preferred_modifier_order = public, private, protected, internal, new, static, abstract, virtual, sealed, readonly, override, extern, unsafe, volatile, async:suggestion
13+
csharp_style_var_elsewhere = true
14+
csharp_style_var_for_built_in_types = true
15+
csharp_style_var_when_type_is_apparent = true
16+
csharp_for_built_in_types=use_var
17+
csharp_for_simple_types=use_var
18+
csharp_for_other_types=use_var
19+
dotnet_naming_rule.constants_rule.import_to_resharper = as_predefined
20+
dotnet_naming_rule.constants_rule.resharper_style = AaBb, Default + AaBb
21+
dotnet_naming_rule.constants_rule.severity = warning
22+
dotnet_naming_rule.constants_rule.style = upper_camel_case_style
23+
dotnet_naming_rule.constants_rule.symbols = constants_symbols
24+
dotnet_naming_rule.unity_serialized_field_rule.import_to_resharper = True
25+
dotnet_naming_rule.unity_serialized_field_rule.resharper_description = Unity serialized field
26+
dotnet_naming_rule.unity_serialized_field_rule.resharper_guid = 5f0fdb63-c892-4d2c-9324-15c80b22a7ef
27+
dotnet_naming_rule.unity_serialized_field_rule.severity = warning
28+
dotnet_naming_rule.unity_serialized_field_rule.style = lower_camel_case_style
29+
dotnet_naming_rule.unity_serialized_field_rule.symbols = unity_serialized_field_symbols
30+
dotnet_naming_style.lower_camel_case_style.capitalization = camel_case
31+
dotnet_naming_style.upper_camel_case_style.capitalization = pascal_case
32+
dotnet_naming_symbols.constants_symbols.applicable_accessibilities = public,internal,protected,protected_internal,private_protected
33+
dotnet_naming_symbols.constants_symbols.applicable_kinds = field
34+
dotnet_naming_symbols.constants_symbols.required_modifiers = const
35+
dotnet_naming_symbols.unity_serialized_field_symbols.applicable_accessibilities = *
36+
dotnet_naming_symbols.unity_serialized_field_symbols.applicable_kinds =
37+
dotnet_naming_symbols.unity_serialized_field_symbols.resharper_applicable_kinds = unity_serialised_field
38+
dotnet_naming_symbols.unity_serialized_field_symbols.resharper_required_modifiers = instance
39+
dotnet_style_parentheses_in_arithmetic_binary_operators = never_if_unnecessary:none
40+
dotnet_style_parentheses_in_other_binary_operators = never_if_unnecessary:none
41+
dotnet_style_parentheses_in_relational_binary_operators = never_if_unnecessary:none
42+
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
43+
dotnet_style_predefined_type_for_member_access = true:suggestion
44+
dotnet_style_qualification_for_event = false:suggestion
45+
dotnet_style_qualification_for_field = false:suggestion
46+
dotnet_style_qualification_for_method = false:suggestion
47+
dotnet_style_qualification_for_property = false:suggestion
48+
dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion
49+
50+
# ReSharper properties
51+
resharper_autodetect_indent_settings = true
52+
resharper_enforce_line_ending_style = true
53+
resharper_use_indent_from_vs = false
54+
55+
# ReSharper inspection severities
56+
resharper_arrange_redundant_parentheses_highlighting = hint
57+
resharper_arrange_this_qualifier_highlighting = hint
58+
resharper_arrange_type_member_modifiers_highlighting = hint
59+
resharper_arrange_type_modifiers_highlighting = hint
60+
resharper_built_in_type_reference_style_for_member_access_highlighting = hint
61+
resharper_built_in_type_reference_style_highlighting = hint
62+
resharper_redundant_base_qualifier_highlighting = warning
63+
resharper_suggest_var_or_type_built_in_types_highlighting = hint
64+
resharper_suggest_var_or_type_elsewhere_highlighting = hint
65+
resharper_suggest_var_or_type_simple_types_highlighting = hint
66+
resharper_web_config_module_not_resolved_highlighting = warning
67+
resharper_web_config_type_not_resolved_highlighting = warning
68+
resharper_web_config_wrong_module_highlighting = warning
69+
csharp_use_roslyn_logic_for_evident_types=true
70+
csharp_prefer_explicit_discard_declaration=true
71+
csharp_max_line_length=120
72+
csharp_braces_for_ifelse=required
73+
74+
[*.{appxmanifest,asax,ascx,aspx,axaml,build,cg,cginc,compute,cs,cshtml,dtd,fs,fsi,fsscript,fsx,hlsl,hlsli,hlslinc,master,ml,mli,nuspec,paml,razor,resw,resx,shader,skin,usf,ush,vb,xaml,xamlx,xoml,xsd}]
75+
indent_style = space
76+
indent_size = 4
77+
tab_width = 4

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ coverage.opencover.xml
1717
coverlet/
1818
coveralls/
1919
trx2junit/
20+
reSharperCLI/
2021
TestResults/
2122
DotnetVersion/
2223

0 commit comments

Comments
 (0)