Skip to content

Commit

Permalink
Merge branch 'dev' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
flo7842 committed Jun 21, 2023
2 parents f8345f2 + 67744df commit 7895647
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# edc-client-dotnet
The edc client is the dotnet connector to get edc context documentation in HTML5 format.

This client read informations from defined url. The developer will be able to get contextual documentation content according to the keys and get the help url to display the documentation in the help client.

## edc Version

Current release is compatible with edc v3.0+

## How can I get the latest release?

You can pull it from Nuget.org


## License

MIT [TECH'advantage](mailto:contact@tech-advantage.com)
6 changes: 6 additions & 0 deletions edc-client-dotnet-test/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# edc-client-dotnet-test
Edc client dotnet test is a test application for implementing edc-client-dotnet solution

## License

MIT [TECH'advantage](mailto:contact@tech-advantage.com)
5 changes: 2 additions & 3 deletions edc-client-dotnet/Injection/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using edcClientDotnet.factory;
using edcClientDotnet.factory;
using edcClientDotnet.internalImpl;
using edcClientDotnet.internalImpl.factory;
using edcClientDotnet.internalImpl.http;
Expand All @@ -15,10 +15,9 @@ namespace edcClientDotnet.Injection
public static class Startup
{
public static IServiceProvider? serviceProvider;
public static IServiceCollection services = new ServiceCollection();
public static void ConfigureServices()
{
var services = new ServiceCollection();

services.AddSingleton<HttpClient>();
services.AddSingleton<HttpClientDotnet>().AddSingleton<HttpClient, HttpClientDotnet>(s => s.GetService<HttpClientDotnet>());
services.AddSingleton<IEdcClient, EdcClientImpl>();
Expand Down
2 changes: 1 addition & 1 deletion edc-client-dotnet/internalImpl/DocumentationManagerImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void LoadContext()
if (_contexts == null)
{
_logger.Debug("No contexts defined, read it");
_contexts = _reader.GetContext();
_contexts = _reader.ReadContext();
}
}

Expand Down

0 comments on commit 7895647

Please sign in to comment.