Skip to content

Commit 1fe7650

Browse files
authored
rename net-client-questdb-tcp-auth to net-questdb-client-tcp-auth (#35)
update versions to 2.1.0
1 parent 635af5c commit 1fe7650

File tree

9 files changed

+298
-50
lines changed

9 files changed

+298
-50
lines changed

.gitignore

Lines changed: 263 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,265 @@
1+
## Ignore Visual Studio temporary files, build results, and
2+
## files generated by popular Visual Studio add-ons.
3+
4+
###################
5+
# compiled source #
6+
###################
7+
*.com
8+
*.class
9+
*.dll
10+
*.exe
11+
*.pdb
12+
*.dll.config
13+
*.cache
14+
*.suo
15+
# Include dlls if they’re in the NuGet packages directory
16+
!/packages/*/lib/*.dll
17+
# Include dlls if they're in the CommonReferences directory
18+
!*CommonReferences/*.dll
19+
####################
20+
# VS Upgrade stuff #
21+
####################
22+
_UpgradeReport_Files/
23+
###############
24+
# Directories #
25+
###############
26+
*/bin/
27+
*/obj/
28+
TestResults/
29+
###################
30+
# Web publish log #
31+
###################
32+
*.Publish.xml
33+
#############
34+
# Resharper #
35+
#############
36+
/_ReSharper.*
37+
*.ReSharper.*
38+
############
39+
# Packages #
40+
############
41+
# it’s better to unpack these files and commit the raw source
42+
# git has its own built in compression methods
43+
*.7z
44+
*.dmg
45+
*.gz
46+
*.iso
47+
*.jar
48+
*.rar
49+
*.tar
50+
*.zip
51+
######################
52+
# Logs and databases #
53+
######################
54+
*.log
55+
*.sqlite
56+
# OS generated files #
57+
######################
58+
.DS_Store?
59+
ehthumbs.db
60+
Icon?
61+
Thumbs.db
62+
63+
64+
# User-specific files
65+
*.user
66+
*.userosscache
67+
*.sln.docstates
68+
69+
# User-specific files (MonoDevelop/Xamarin Studio)
70+
*.userprefs
71+
72+
# Build results
73+
[Dd]ebug/
74+
[Dd]ebugPublic/
75+
[Rr]elease/
76+
[Rr]eleases/
77+
x64/
78+
x86/
79+
build/
80+
bld/
81+
[Bb]in/
82+
[Oo]bj/
83+
84+
# Visual Studo 2015 cache/options directory
185
.vs/
2-
Backup/
3-
src/tcp-client-test/bin/
4-
src/tcp-client-test/obj/
5-
src/example-auth-tls/bin/
6-
src/example-auth-tls/obj/
7-
src/example-basic/bin/
8-
src/example-basic/obj/
9-
src/net-questdb-client/bin/
10-
src/net-questdb-client/obj/
11-
UpgradeLog.htm
12-
src/net-questdb-client-tests/bin/
13-
src/net-questdb-client-tests/obj/
14-
src/net-questdb-client-benchmarks/bin/
15-
src/net-questdb-client-benchmarks/obj/
16-
src/net-questdb-client-benchmarks/bin
17-
src/net-questdb-client-benchmarks/obj
18-
src/dummy-http-server/bin/
19-
src/dummy-http-server/obj/
20-
src/example-streaming/bin/
21-
src/example-streaming/obj/
22-
src/net-questdb-client-benchmarks/BenchmarkDot*
23-
_site
24-
api
25-
src/example-auth-http-tls/obj/
26-
src/example-auth-http-tls/bin/
27-
src/example-auth-http-tls/obj
28-
src/example-auth-http-tls/bin
2986

87+
# MSTest test Results
88+
[Tt]est[Rr]esult*/
89+
[Bb]uild[Ll]og.*
90+
91+
# NUNIT
92+
*.VisualState.xml
93+
TestResult.xml
94+
95+
# Build Results of an ATL Project
96+
[Dd]ebugPS/
97+
[Rr]eleasePS/
98+
dlldata.c
99+
100+
# DNX
101+
project.lock.json
102+
artifacts/
103+
104+
*_i.c
105+
*_p.c
106+
*_i.h
107+
*.ilk
108+
*.meta
109+
*.obj
110+
*.pch
111+
*.pgc
112+
*.pgd
113+
*.rsp
114+
*.sbr
115+
*.tlb
116+
*.tli
117+
*.tlh
118+
*.tmp
119+
*.tmp_proj
120+
*.vspscc
121+
*.vssscc
122+
.builds
123+
*.pidb
124+
*.svclog
125+
*.scc
126+
127+
# Chutzpah Test files
128+
_Chutzpah*
129+
130+
# Visual C++ cache files
131+
ipch/
132+
*.aps
133+
*.ncb
134+
*.opensdf
135+
*.sdf
136+
*.cachefile
137+
138+
# Visual Studio profiler
139+
*.psess
140+
*.vsp
141+
*.vspx
142+
143+
# TFS 2012 Local Workspace
144+
$tf/
145+
146+
# Guidance Automation Toolkit
147+
*.gpState
148+
149+
# ReSharper is a .NET coding add-in
150+
_ReSharper*/
151+
*.[Rr]e[Ss]harper
152+
*.DotSettings.user
153+
154+
# JustCode is a .NET coding add-in
155+
.JustCode
156+
157+
# TeamCity is a build add-in
158+
_TeamCity*
159+
160+
# DotCover is a Code Coverage Tool
161+
*.dotCover
162+
163+
# NCrunch
164+
_NCrunch_*
165+
.*crunch*.local.xml
166+
167+
# MightyMoose
168+
*.mm.*
169+
AutoTest.Net/
170+
171+
# Web workbench (sass)
172+
.sass-cache/
173+
174+
# Installshield output folder
175+
[Ee]xpress/
176+
177+
# DocProject is a documentation generator add-in
178+
DocProject/buildhelp/
179+
DocProject/Help/*.HxT
180+
DocProject/Help/*.HxC
181+
DocProject/Help/*.hhc
182+
DocProject/Help/*.hhk
183+
DocProject/Help/*.hhp
184+
DocProject/Help/Html2
185+
DocProject/Help/html
186+
187+
# Click-Once directory
188+
publish/
189+
190+
# Publish Web Output
191+
*.[Pp]ublish.xml
192+
*.azurePubxml
193+
# TODO: Comment the next line if you want to checkin your web deploy settings
194+
# but database connection strings (with potential passwords) will be unencrypted
195+
*.pubxml
196+
*.publishproj
197+
198+
# NuGet Packages
199+
*.nupkg
200+
# The packages folder can be ignored because of Package Restore
201+
**/packages/*
202+
# except build/, which is used as an MSBuild target.
203+
!**/packages/build/
204+
# Uncomment if necessary however generally it will be regenerated when needed
205+
#!**/packages/repositories.config
206+
207+
# Windows Azure Build Output
208+
csx/
209+
*.build.csdef
210+
211+
# Windows Store app package directory
212+
AppPackages/
213+
.idea/
214+
215+
# Visual Studio cache files
216+
217+
# files ending in .cache can be ignored
218+
*.[Cc]ache
219+
# but keep track of directories ending in .cache
220+
!*.[Cc]ache/
221+
222+
# Others
223+
ClientBin/
224+
[Ss]tyle[Cc]op.*
225+
~$*
226+
*~
227+
*.dbmdl
228+
*.dbproj.schemaview
229+
*.pfx
230+
*.publishsettings
231+
node_modules/
232+
bower_components/
233+
orleans.codegen.cs
234+
235+
# RIA/Silverlight projects
236+
Generated_Code/
237+
238+
# Backup & report files from converting an old project file
239+
# to a newer Visual Studio version. Backup files are not needed,
240+
# because we have git ;-)
241+
_UpgradeReport_Files/
242+
Backup*/
243+
UpgradeLog*.XML
244+
UpgradeLog*.htm
245+
246+
# SQL Server files
247+
*.mdf
248+
*.ldf
249+
250+
# Business Intelligence projects
251+
*.rdl.data
252+
*.bim.layout
253+
*.bim_*.settings
254+
255+
# Microsoft Fakes
256+
FakesAssemblies/
257+
258+
# Node.js Tools for Visual Studio
259+
.ntvs_analysis.dat
260+
261+
# Visual Studio 6 build log
262+
*.plg
263+
264+
# Visual Studio 6 workspace options file
265+
*.opt

net-questdb-client.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "example-streaming", "src\ex
2121
EndProject
2222
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "example-auth-http-tls", "src\example-auth-http-tls\example-auth-http-tls.csproj", "{24D93DBB-3783-423F-81CC-6B9BFD33F6CD}"
2323
EndProject
24-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "net-client-questdb-tcp-auth", "src\net-client-questdb-tcp-auth\net-client-questdb-tcp-auth.csproj", "{EF86C5A3-71BE-4D9C-9647-B1A50751F244}"
24+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "net-questdb-client-tcp-auth", "src\net-questdb-client-tcp-auth\net-questdb-client-tcp-auth.csproj", "{EF86C5A3-71BE-4D9C-9647-B1A50751F244}"
2525
EndProject
2626
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "net-questdb-client-tcp-auth-test", "src\net-questdb-client-tcp-auth-tests\net-questdb-client-tcp-auth-tests.csproj", "{628A6AE1-C0D4-4A40-98DF-1F094BD60203}"
2727
EndProject

src/net-client-questdb-tcp-auth/net-client-questdb-tcp-auth.csproj

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<RootNamespace>QuestDB</RootNamespace>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
<LangVersion>10</LangVersion>
8+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
9+
<Title>QuestDB client TCP token authentication add-on</Title>
10+
<Description>QuestDB ILP protocol client additional TCP token authentication add-on. Required when used with TCP ILP with token authentication</Description>
11+
<Copyright>QuestDB</Copyright>
12+
<PackageProjectUrl>https://questdb.io</PackageProjectUrl>
13+
<PackageLicenseUrl>Apache 2.0</PackageLicenseUrl>
14+
<RepositoryUrl>https://github.com/questdb/net-questdb-client</RepositoryUrl>
15+
<PackageTags>QuestDB, ILP, TCP</PackageTags>
16+
<Company>QuestDB Limited</Company>
17+
<PackageVersion>2.1.0</PackageVersion>
18+
<GenerateDocumentationFile>false</GenerateDocumentationFile>
19+
<TargetFrameworks>net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
20+
</PropertyGroup>
21+
22+
<ItemGroup>
23+
<ProjectReference Include="..\net-questdb-client\net-questdb-client.csproj" />
24+
</ItemGroup>
25+
26+
<ItemGroup>
27+
<PackageReference Include="BouncyCastle.Cryptography" Version="2.5.0"/>
28+
</ItemGroup>
29+
</Project>

src/net-questdb-client/Senders/TcpSender.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ private async ValueTask AuthenticateAsync(CancellationToken ct = default)
133133
var privateKey =
134134
FromBase64String(Options.token!);
135135

136-
var signature = _signatureGenerator.GenerateSignature(privateKey, _buffer.SendBuffer, bufferLen);
136+
var signature = _signatureGenerator!.GenerateSignature(privateKey, _buffer.SendBuffer, bufferLen);
137137
Base64.EncodeToUtf8(signature, _buffer.SendBuffer, out _, out _buffer.Position);
138138
_buffer.Put('\n');
139139

src/net-questdb-client/Signatures.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ private static ISignatureGenerator CreateSignatureGenerator0()
1111
Exception? ex = null;
1212
try
1313
{
14-
var assembly = Assembly.LoadFrom("net-client-questdb-tcp-auth.dll");
14+
var assembly = Assembly.LoadFrom("net-questdb-client-tcp-auth.dll");
1515
Type? type = assembly.GetType("QuestDB.Secp256r1SignatureGenerator");
1616
if (type != null)
1717
{
@@ -28,7 +28,7 @@ private static ISignatureGenerator CreateSignatureGenerator0()
2828
}
2929

3030
throw new TypeLoadException(
31-
"Could not load QuestDB.Secp256r1SignatureGenerator, please add a reference to assembly \"net-client-questdb-tcp-auth\"" +
31+
"Could not load QuestDB.Secp256r1SignatureGenerator, please add a reference to assembly \"net-questdb-client-tcp-auth\"" +
3232
(ex == null ? ": cannot load the type, return value is null": ""), ex);
3333
}
3434

src/net-questdb-client/net-questdb-client.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<RepositoryUrl>https://github.com/questdb/net-questdb-client</RepositoryUrl>
1515
<PackageTags>QuestDB, ILP</PackageTags>
1616
<Company>QuestDB Limited</Company>
17-
<PackageVersion>2.0.0</PackageVersion>
17+
<PackageVersion>2.1.0</PackageVersion>
1818
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1919
<TargetFrameworks>net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
2020
</PropertyGroup>

src/tcp-client-test/tcp-client-test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</ItemGroup>
1818

1919
<ItemGroup>
20-
<ProjectReference Include="..\net-client-questdb-tcp-auth\net-client-questdb-tcp-auth.csproj" />
20+
<ProjectReference Include="..\net-questdb-client-tcp-auth\net-questdb-client-tcp-auth.csproj" />
2121
<ProjectReference Include="..\net-questdb-client\net-questdb-client.csproj"/>
2222
</ItemGroup>
2323

0 commit comments

Comments
 (0)