Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FIT-Connect-SDK - .NET
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FIT-Connect
FIT-Connect-SDK - .NET
Commits
5682c098
Commit
5682c098
authored
2 years ago
by
Klaus Fischer
Browse files
Options
Downloads
Patches
Plain Diff
Update commitId persistance
parent
399e1e0d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!29
830 Version Header
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
FitConnect/Encryption/JsonHelper.cs
+1
-1
1 addition, 1 deletion
FitConnect/Encryption/JsonHelper.cs
FitConnect/FitConnect.csproj
+3
-2
3 additions, 2 deletions
FitConnect/FitConnect.csproj
FitConnect/ProjectSpecification.cs
+2
-4
2 additions, 4 deletions
FitConnect/ProjectSpecification.cs
with
6 additions
and
7 deletions
FitConnect/Encryption/JsonHelper.cs
+
1
−
1
View file @
5682c098
...
...
@@ -39,7 +39,7 @@ public static class JsonHelper {
}
private
static
string
LoadContentOfResource
(
string
resourceName
)
{
internal
static
string
LoadContentOfResource
(
string
resourceName
)
{
var
assembly
=
Assembly
.
GetExecutingAssembly
();
var
fullQualifiedName
=
$"
{
assembly
.
GetName
().
Name
}
.
{
resourceName
}
"
;
var
resourceStream
=
assembly
.
GetManifestResourceStream
(
fullQualifiedName
);
...
...
This diff is collapsed.
Click to expand it.
FitConnect/FitConnect.csproj
+
3
−
2
View file @
5682c098
...
...
@@ -49,9 +49,10 @@
<EmbeddedResource Include="TrustedRootCertificates\PCA-1-Verwaltung-17.pem" />
<None Remove="Certificates\PCA-1-Verwaltung-20.pem" />
<EmbeddedResource Include="TrustedRootCertificates\PCA-1-Verwaltung-20.pem" />
<None Update="commitId.tmp">
<None Remove="commitId.tmp" />
<EmbeddedResource Include="commitId.tmp">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</
Non
e>
</
EmbeddedResourc
e>
</ItemGroup>
<ItemGroup>
...
...
This diff is collapsed.
Click to expand it.
FitConnect/ProjectSpecification.cs
+
2
−
4
View file @
5682c098
using
System.Security.Cryptography
;
using
System.Text
;
using
FitConnect.Encryption
;
namespace
FitConnect
;
...
...
@@ -17,10 +18,7 @@ internal static class ProjectSpecification {
private
static
string
?
GetCommitId
()
{
const
string
commitFileName
=
"commitId.tmp"
;
return
File
.
Exists
(
commitFileName
)
?
File
.
ReadAllLines
(
commitFileName
).
First
()
:
"development"
;
return
JsonHelper
.
LoadContentOfResource
(
"commitId.tmp"
).
Trim
();
}
public
static
byte
[]
CalculateCallbackHmac
(
string
callbackSecret
,
long
timestamp
,
string
body
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment