Giter Site home page Giter Site logo

Comments (7)

VahidN avatar VahidN commented on June 2, 2024

You can add your custom ICaptchaStorageProvider using the UseCustomStorageProvider() method.

from dntcaptcha.core.

SSgumS avatar SSgumS commented on June 2, 2024

We can use SessionStorageProvider for distributed systems. But SerializationProvider has been used in all storage providers.

from dntcaptcha.core.

SSgumS avatar SSgumS commented on June 2, 2024

To be more accurate, StorageProvider is not related to SerializationProvider. You can see Refresh action method in DNTCaptchaImageController. It uses SerializationProvider.

from dntcaptcha.core.

VahidN avatar VahidN commented on June 2, 2024

SerializationProvider is replaceable. Everything here works through the dependency injection system:

services.TryAddSingleton<ISerializationProvider, SerializationProvider>();

When we have TryAddSingleton, it means if you add your own ISerializationProvider before the AddDNTCaptcha method, your version will be used automatically.

from dntcaptcha.core.

SSgumS avatar SSgumS commented on June 2, 2024

It's ok. Thanks.
I know that I could replace it. I just wanted to help to make the library better. Beside that, I didn't know exactly what other parts of the library is not appropriate for distributed systems (I'm not the coder of this library). So, I wanted to give you a signal that if you can add support for this feature, It's appreciated. I think it worth the effort and it seems that it's not much difficult (I'm not sure. This uncertainty is what that prevents me from just replacing the SerializationProvider. Maybe it won't be enough)

from dntcaptcha.core.

VahidN avatar VahidN commented on June 2, 2024

Added it via #b4e4d31

from dntcaptcha.core.

lock avatar lock commented on June 2, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related problems.

from dntcaptcha.core.

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.