Comments (8)
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.
http://stackoverflow.com/a/17174533/475607
from hangfire.
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.
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.
I think the ctor should take both connection string name and connection string itself, as in EntityFramework's DbContext.ctor
.
from hangfire.
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.
It will be great!
from hangfire.
PR #113 closes this feature.
from hangfire.
Related Issues (20)
- UseDashboardStylesheet does not load custom CSS HOT 3
- Deadlock In multiple server HOT 1
- Hangfire custom dark mode css doesnt repect custom style
- Recurring jobs do not finish after upgrading from 1.8.6 to 1.8.11 (in combination with DynamicJobs)
- Job supposed to be re-queued on worker shutdown but it never is
- How to set CustomData / Items HOT 1
- Job runs/enqueued multiple times if server restarts while job is being processed
- Recurring Job triggers on Update HOT 2
- AsyncAuthorization causes issues with Dashboard UI
- BackgroundJobClient.Enqueue Appears To Be Ignoring Queue Parameter HOT 1
- HTTP 401 Response Status after upgrading to 1.8
- Ship AspNetCoreJobActivator as a separate NuGet HOT 2
- Hangfire jobs are enqueued but stuck in queue HOT 1
- Change storage at runtime
- Time Zone East UTC-3 - Error in Servers Page
- ServiceLocator.Current.GetInstance<T> return null
- InsertToList() performance HOT 2
- Background job unable to be queued
- Problem with IReccuringJob implementation
- Hangfire Dashboard authorization is not working in .NET Core HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hangfire.