consuldotnet | ConsulNET is a NET client library for the Consul HTTP API | Configuration Management library
kandi X-RAY | consuldotnet Summary
kandi X-RAY | consuldotnet Summary
Consul.NET is a .NET client library for the Consul HTTP API
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of consuldotnet
consuldotnet Key Features
consuldotnet Examples and Code Snippets
Community Discussions
Trending Discussions on consuldotnet
QUESTION
I am looking at using the Consul library for .NET which supports NETSTANDARD1.3. As I was adding the package I saw it depends on System.Net.Http.WinHttpHandler, which in turns adds the win32 primitives package.
I can't find any documentation to say how these packages work on Linux. I would assume they won't work, but it is possible they provide a shim-layer.
Does anyone have any experience with these packages?
EDIT:
Deploying to Ubuntu as a Self Contained Deployment results in the following.
Unhandled Exception: System.TypeInitializationException: The type initializer for 'System.Net.Http.CurlHandler' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Http' threw an exception. ---> System.TypeInitializationException: The type initializer for 'HttpInitializer' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'System.Net.Http.Native': The specified module could not be found.
(Exception from HRESULT: 0x8007007E)
at Interop.HttpInitializer.EnsureCurlIsInitialized()
at Interop.HttpInitializer..cctor()
--- End of inner exception stack trace ---
at Interop.HttpInitializer.Initialize()
at Interop.Http..cctor()
--- End of inner exception stack trace ---
at Interop.Http.GetSupportedFeatures()
at System.Net.Http.CurlHandler..cctor()
--- End of inner exception stack trace ---
at System.Net.Http.CurlHandler..ctor()
at Consul.ConsulClient.ConsulClientConfigurationContainer..ctor()
at Consul.ConsulClient..ctor(Action`1 configOverride, Action`1 clientOverride, Action`1 handlerOverride)
at REstateScratchPad.Program.Main(String[] args)
Aborted (core dumped)
ANSWER
Answered 2017-Feb-26 at 19:32Linux does in fact support that dependency as it is part of the .NETStandard and has shims in place for a CURL handler.
Deploying the application did result in errors as seen in the original post, but installing the SDK solved those.
Sidenote: Didn't think I would need the SDK to run a Self contained deployment.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install consuldotnet
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page