Giter VIP home page Giter VIP logo

Comments (8)

hahmed avatar hahmed commented on May 18, 2024

This one is something that I need... as my dev and production db's are different with differing users/passwords too AFAIK. On my build script we use the appropriate string for my app.

from hangfire.

hahmed avatar hahmed commented on May 18, 2024

http://stackoverflow.com/a/17174533/475607

from hangfire.

odinserj avatar odinserj commented on May 18, 2024

Yep, thanks. I tried to write that code from my mobile phone, it was hard :) This issue intended only to simplify the initial setup.

from hangfire.

dlongest avatar dlongest commented on May 18, 2024

Do you need this change to be backward-compatible with the current version? SqlServerStorage has a constructor taking a single string so pretty simple to change that implementation to use the argument to fetch the matching connection string from the web.config, but that is going to suddenly break all clients in a way that will be hard for them to see (since same constructor is still in use, but semantics of its use have been altered). I'm happy to work on this as my first HangFire contribution and I know the HangFire version is less than 1.0, which typically means the API is subject to breaking changes at anytime, but want to know your thoughts. There's ways to work around the issue and leave the existing ctor as-is if that's desired.

from hangfire.

odinserj avatar odinserj commented on May 18, 2024

I think the ctor should take both connection string name and connection string itself, as in EntityFramework's DbContext.ctor.

from hangfire.

dlongest avatar dlongest commented on May 18, 2024

Ah I see, DbContext determines whether the argument is a name or a connection string and stands itself up appropriately, I didn't realize that. I'll implement it like here that and send you a PR unless someone else is already working on this.

from hangfire.

odinserj avatar odinserj commented on May 18, 2024

It will be great!

from hangfire.

odinserj avatar odinserj commented on May 18, 2024

PR #113 closes this feature.

from hangfire.

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.