Skip to content

Commit

Permalink
rename net-client-questdb-tcp-auth to net-questdb-client-tcp-auth (#35)
Browse files Browse the repository at this point in the history
update versions to 2.1.0
  • Loading branch information
ideoma authored Dec 17, 2024
1 parent 635af5c commit 1fe7650
Show file tree
Hide file tree
Showing 9 changed files with 298 additions and 50 deletions.
290 changes: 263 additions & 27 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,29 +1,265 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

###################
# compiled source #
###################
*.com
*.class
*.dll
*.exe
*.pdb
*.dll.config
*.cache
*.suo
# Include dlls if they’re in the NuGet packages directory
!/packages/*/lib/*.dll
# Include dlls if they're in the CommonReferences directory
!*CommonReferences/*.dll
####################
# VS Upgrade stuff #
####################
_UpgradeReport_Files/
###############
# Directories #
###############
*/bin/
*/obj/
TestResults/
###################
# Web publish log #
###################
*.Publish.xml
#############
# Resharper #
#############
/_ReSharper.*
*.ReSharper.*
############
# Packages #
############
# it’s better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
######################
# Logs and databases #
######################
*.log
*.sqlite
# OS generated files #
######################
.DS_Store?
ehthumbs.db
Icon?
Thumbs.db


# User-specific files
*.user
*.userosscache
*.sln.docstates

# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
build/
bld/
[Bb]in/
[Oo]bj/

# Visual Studo 2015 cache/options directory
.vs/
Backup/
src/tcp-client-test/bin/
src/tcp-client-test/obj/
src/example-auth-tls/bin/
src/example-auth-tls/obj/
src/example-basic/bin/
src/example-basic/obj/
src/net-questdb-client/bin/
src/net-questdb-client/obj/
UpgradeLog.htm
src/net-questdb-client-tests/bin/
src/net-questdb-client-tests/obj/
src/net-questdb-client-benchmarks/bin/
src/net-questdb-client-benchmarks/obj/
src/net-questdb-client-benchmarks/bin
src/net-questdb-client-benchmarks/obj
src/dummy-http-server/bin/
src/dummy-http-server/obj/
src/example-streaming/bin/
src/example-streaming/obj/
src/net-questdb-client-benchmarks/BenchmarkDot*
_site
api
src/example-auth-http-tls/obj/
src/example-auth-http-tls/bin/
src/example-auth-http-tls/obj
src/example-auth-http-tls/bin

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

# NUNIT
*.VisualState.xml
TestResult.xml

# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c

# DNX
project.lock.json
artifacts/

*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc

# Chutzpah Test files
_Chutzpah*

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile

# Visual Studio profiler
*.psess
*.vsp
*.vspx

# TFS 2012 Local Workspace
$tf/

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user

# JustCode is a .NET coding add-in
.JustCode

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# NCrunch
_NCrunch_*
.*crunch*.local.xml

# MightyMoose
*.mm.*
AutoTest.Net/

# Web workbench (sass)
.sass-cache/

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# TODO: Comment the next line if you want to checkin your web deploy settings
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj

# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/packages/*
# except build/, which is used as an MSBuild target.
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/packages/repositories.config

# Windows Azure Build Output
csx/
*.build.csdef

# Windows Store app package directory
AppPackages/
.idea/

# Visual Studio cache files

# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!*.[Cc]ache/

# Others
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.pfx
*.publishsettings
node_modules/
bower_components/
orleans.codegen.cs

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
*.mdf
*.ldf

# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings

# Microsoft Fakes
FakesAssemblies/

# Node.js Tools for Visual Studio
.ntvs_analysis.dat

# Visual Studio 6 build log
*.plg

# Visual Studio 6 workspace options file
*.opt
2 changes: 1 addition & 1 deletion net-questdb-client.sln
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "example-streaming", "src\ex
EndProject
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}"
EndProject
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}"
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}"
EndProject
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}"
EndProject
Expand Down
17 changes: 0 additions & 17 deletions src/net-client-questdb-tcp-auth/net-client-questdb-tcp-auth.csproj

This file was deleted.

29 changes: 29 additions & 0 deletions src/net-questdb-client-tcp-auth/net-questdb-client-tcp-auth.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<RootNamespace>QuestDB</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>10</LangVersion>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Title>QuestDB client TCP token authentication add-on</Title>
<Description>QuestDB ILP protocol client additional TCP token authentication add-on. Required when used with TCP ILP with token authentication</Description>
<Copyright>QuestDB</Copyright>
<PackageProjectUrl>https://questdb.io</PackageProjectUrl>
<PackageLicenseUrl>Apache 2.0</PackageLicenseUrl>
<RepositoryUrl>https://github.com/questdb/net-questdb-client</RepositoryUrl>
<PackageTags>QuestDB, ILP, TCP</PackageTags>
<Company>QuestDB Limited</Company>
<PackageVersion>2.1.0</PackageVersion>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<TargetFrameworks>net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\net-questdb-client\net-questdb-client.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="BouncyCastle.Cryptography" Version="2.5.0"/>
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion src/net-questdb-client/Senders/TcpSender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ private async ValueTask AuthenticateAsync(CancellationToken ct = default)
var privateKey =
FromBase64String(Options.token!);

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

Expand Down
4 changes: 2 additions & 2 deletions src/net-questdb-client/Signatures.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ private static ISignatureGenerator CreateSignatureGenerator0()
Exception? ex = null;
try
{
var assembly = Assembly.LoadFrom("net-client-questdb-tcp-auth.dll");
var assembly = Assembly.LoadFrom("net-questdb-client-tcp-auth.dll");
Type? type = assembly.GetType("QuestDB.Secp256r1SignatureGenerator");
if (type != null)
{
Expand All @@ -28,7 +28,7 @@ private static ISignatureGenerator CreateSignatureGenerator0()
}

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

Expand Down
2 changes: 1 addition & 1 deletion src/net-questdb-client/net-questdb-client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<RepositoryUrl>https://github.com/questdb/net-questdb-client</RepositoryUrl>
<PackageTags>QuestDB, ILP</PackageTags>
<Company>QuestDB Limited</Company>
<PackageVersion>2.0.0</PackageVersion>
<PackageVersion>2.1.0</PackageVersion>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TargetFrameworks>net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/tcp-client-test/tcp-client-test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\net-client-questdb-tcp-auth\net-client-questdb-tcp-auth.csproj" />
<ProjectReference Include="..\net-questdb-client-tcp-auth\net-questdb-client-tcp-auth.csproj" />
<ProjectReference Include="..\net-questdb-client\net-questdb-client.csproj"/>
</ItemGroup>

Expand Down

0 comments on commit 1fe7650

Please sign in to comment.