Skip to content

Commit 361a97f

Browse files
authored
Merge pull request #14 from raisedapp/develop
Version 0.2.0
2 parents ebfd0ad + 93985b1 commit 361a97f

File tree

17 files changed

+108
-20
lines changed

17 files changed

+108
-20
lines changed

src/main/Hangfire.Storage.SQLite/CountersAggregator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public void Execute(CancellationToken cancellationToken)
9494

9595
foreach (var counter in aggregatedCounters)
9696
{
97-
counter.Value = counter.Value + item.Value;
97+
counter.Value += item.Value;
9898
counter.ExpireAt = item.ExpireAt > aggregatedItem.ExpireAt
9999
? (item.ExpireAt > DateTime.MinValue ? item.ExpireAt : DateTime.MinValue)
100100
: (aggregatedItem.ExpireAt > DateTime.MinValue ?

src/main/Hangfire.Storage.SQLite/Entities/AggregatedCounter.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
namespace Hangfire.Storage.SQLite.Entities
77
{
8+
[Table("AggregatedCounter")]
89
public class AggregatedCounter
910
{
1011
[PrimaryKey]

src/main/Hangfire.Storage.SQLite/Entities/Counter.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
namespace Hangfire.Storage.SQLite.Entities
77
{
8+
[Table(DefaultValues.CounterTblName)]
89
public class Counter
910
{
1011
[PrimaryKey]

src/main/Hangfire.Storage.SQLite/Entities/DefaultValues.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,25 @@ internal static class DefaultValues
2323
public const int MaxLengthReasonColumn = 100;
2424

2525
public const int MaxLengthVarCharColumn = 16000;
26+
27+
public const string AggregatedCounterTblName = "AggregatedCounter";
28+
29+
public const string CounterTblName = "Counter";
30+
31+
public const string DistributedLockTblName = "DistributedLock";
32+
33+
public const string HangfireJobTblName = "Job";
34+
35+
public const string HangfireListTblName = "List";
36+
37+
public const string HangfireServerTblName = "Server";
38+
39+
public const string HashTblName = "Hash";
40+
41+
public const string JobParameterTblName = "JobParameter";
42+
43+
public const string SetTblName = "Set";
44+
45+
public const string StateTblName = "State";
2646
}
2747
}

src/main/Hangfire.Storage.SQLite/Entities/DistributedLock.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ namespace Hangfire.Storage.SQLite.Entities
88
/// <summary>
99
/// Document used for holding a distributed lock in SQLite.
1010
/// </summary>
11+
[Table(DefaultValues.DistributedLockTblName)]
1112
public class DistributedLock
1213
{
1314
/// <summary>

src/main/Hangfire.Storage.SQLite/Entities/HangfireJob.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace Hangfire.Storage.SQLite.Entities
77
{
8-
[Table("Job")]
8+
[Table(DefaultValues.HangfireJobTblName)]
99
public class HangfireJob
1010
{
1111
[PrimaryKey, AutoIncrement]

src/main/Hangfire.Storage.SQLite/Entities/HangfireList.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace Hangfire.Storage.SQLite.Entities
77
{
8-
[Table("List")]
8+
[Table(DefaultValues.HangfireListTblName)]
99
public class HangfireList
1010
{
1111
[PrimaryKey, AutoIncrement]

src/main/Hangfire.Storage.SQLite/Entities/HangfireServer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace Hangfire.Storage.SQLite.Entities
77
{
8-
[Table("Server")]
8+
[Table(DefaultValues.HangfireServerTblName)]
99
public class HangfireServer
1010
{
1111
[PrimaryKey]

src/main/Hangfire.Storage.SQLite/Entities/Hash.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
namespace Hangfire.Storage.SQLite.Entities
77
{
8+
[Table(DefaultValues.HashTblName)]
89
public class Hash
910
{
1011
[PrimaryKey, AutoIncrement]

src/main/Hangfire.Storage.SQLite/Entities/JobParameter.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
namespace Hangfire.Storage.SQLite.Entities
77
{
8+
[Table(DefaultValues.JobParameterTblName)]
89
public class JobParameter
910
{
1011
[PrimaryKey, AutoIncrement]

0 commit comments

Comments
 (0)