Coder Social home page Coder Social logo

Comments (5)

auxdevelopment avatar auxdevelopment commented on August 20, 2024

Hi!

Currently the .NET SDK is not intended for use in a multi-threaded environment.

from fiskaly-sdk-dotnet.

HeadOnBenni avatar HeadOnBenni commented on August 20, 2024

Hi @auxdevelopment ,

thanks for the feedback. Does this mean that if I create a separate instance for each thread, no problems will occur? Or is the fiskaly-client.dll not thread safe and I have to make sure that this dll is never accessed simultaneously?

Thanks for your support!

from fiskaly-sdk-dotnet.

auxdevelopment avatar auxdevelopment commented on August 20, 2024

Hi!

Regarding the SDK this wouldn't be an issue.

The real issue would be a different one though because you cannot (to my knowledge at least) load a static library (the DLL) into a process more often than once. Because the SDK implicitly tries to load the client library, your approach would lead to an error.

from fiskaly-sdk-dotnet.

HeadOnBenni avatar HeadOnBenni commented on August 20, 2024

Hi @auxdevelopment ,

thanks for the feedback. Since the Windows client does the import via a static instance variable, the DLL is loaded only once, as far as I know. Therefore several instances would access the "same" DLL. Can the DLL handle multiple threads accessing it at the same time? Or exactly is the code inside the "com.fiskaly.client-windows-amd64-v1.2.000.dll" thread safe?

from fiskaly-sdk-dotnet.

auxdevelopment avatar auxdevelopment commented on August 20, 2024

Hello,

in that case accessing the library from multiple threads shouldn't be an issue.

from fiskaly-sdk-dotnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.