Commit Graph

9 Commits

Author SHA1 Message Date
Michael Johnson 1002c28ddd Added Hangfire.Raven.Tests project
- Refactored Repository and RavenStorage to allow injection of a TestRepository (using an in-memory database for unit tests)
- Made several fixes to comply with unit tests (notably RavenDistributedLock and RavenJobQueue)
- Merged fixes from xinix00 pull request #11 (https://github.com/RefreshingIO/hangfire-ravendb/pull/11)
2017-03-07 18:38:18 +11:00
Austin Winstanley 9ff2e53301 fixed several issues including fire and forget and dashboard and updated some dependencies, more cleanup 2016-12-08 19:23:52 -06:00
Austin Winstanley c65b8b1314 code cleanup, migrated to dotnet core, builds for dnx46, dnx451, net45, net451, net452, net46, net461, netcoreapp1.0, netstandard1.6 2016-09-12 20:03:18 -05:00
Derek e5e8c76bee + Assemblies (more reliable in combination with RavenDB $type helper (used by Newtonsoft.Json))
+ JobWrapper instead of JSON text as Job parameter, is better in finding types (for example interfaces)
+ Method/Property JsonConverters for RavenDB, needed for the InvocationData replacement
~ Namespace fix (HangFire vs Hangfire (capital F)
- InvocationData, RavenDB is already a JSON database, so had no purpose to Serialize and Deserialize job data
.. Updated Hangfire.Core to latest 1.6.3 dependency
.. Downgraded Newtonsoft.Json to version matching RavenDB. Will be upgraded in RavenDB 3.5.
2016-08-21 23:27:10 +02:00
Derek ccf356279f Latest fixes 2016-08-19 10:27:51 +02:00
Derek 6f501e8303 Changed some bits and pieces 2016-08-17 07:17:36 +02:00
Derek 5d27d05ac0 + Added dashboard support
+ Better use of RavenDB
-- Naming of entities (removed baseEntity)
-- Added job history
-- Removing of Poll for Jobs (using RavenDB changes observer pattern)
+ Removed static Repository, now passed through via RavenStorage class
+ Updated to target latest Hangfire.Core and RavenDB.Client
+ Added Hangfire/RavenJobs index
2016-07-28 09:41:21 +02:00
Andrej Krivulčík e277a7366b Fix distributed locks
- Static members and methods caused the locking to work incorrectly:
- Lock heartbeat was updated only for the last acquired lock.
- Incorrect resource was locked in certain situations.
- Incorrect resource lock was released (latest resource instead of
the resource that was actually locked).
- Incorrect condition for checking if lock is already acquired by
someone else fixed.
- Dead lock detection fixed.
2015-11-02 15:26:49 +01:00
Andrew Markley 6ab42f3966 cleanup 2015-10-16 16:26:28 -05:00