Giter Site home page Giter Site logo

Comments (4)

ejsmith avatar ejsmith commented on June 12, 2024 1

There isn’t really a great solution to this. It’s really a named instance DI issue which is a feature getting built into .NET 8. If you have other ideas, feel free to discuss or create a PR.

from foundatio.

ejsmith avatar ejsmith commented on June 12, 2024

If you are wanting multiple variations of IFileStorage, you'd need to handle that yourself. What we've typically done is create a derived interface like IMyFileStorage that inherited IFileStorage and then you'll have to derived from the implementation class and implement that interface as well.

from foundatio.

U52284 avatar U52284 commented on June 12, 2024

Thought about that. But also I was sure I'm not the first one encountering that one or maybe I havent seen a build in mechanism that is already prepared for that. It seems this would be a very good thing beeing available out of the box.

from foundatio.

U52284 avatar U52284 commented on June 12, 2024

I will check if I can setup something in the next week or so. For now thats enough input for me thank you.

from foundatio.

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.