C# Class Hangfire.SQLite.SQLiteConnection

Inheritance: Hangfire.Storage.JobStorageConnection
Datei anzeigen Open project: vip32/Hangfire.SQLite

Public Methods

Method Description
AcquireDistributedLock ( string resource, System.TimeSpan timeout ) : IDisposable
AnnounceServer ( string serverId, Hangfire.Server.ServerContext context ) : void
CreateExpiredJob ( Hangfire.Common.Job job, string>.IDictionary parameters, System.DateTime createdAt, System.TimeSpan expireIn ) : string
CreateWriteTransaction ( ) : IWriteOnlyTransaction
Dispose ( ) : void
FetchNextJob ( string queues, CancellationToken cancellationToken ) : IFetchedJob
GetAllEntriesFromHash ( string key ) : string>.Dictionary
GetAllItemsFromList ( string key ) : List
GetAllItemsFromSet ( string key ) : HashSet
GetCounter ( string key ) : long
GetFirstByLowestScoreFromSet ( string key, double fromScore, double toScore ) : string
GetHashCount ( string key ) : long
GetHashTtl ( string key ) : System.TimeSpan
GetJobData ( string id ) : Hangfire.Storage.JobData
GetJobParameter ( string jobId, string name ) : string
GetListCount ( string key ) : long
GetListTtl ( string key ) : System.TimeSpan
GetRangeFromList ( string key, int startingFrom, int endingAt ) : List
GetRangeFromSet ( string key, int startingFrom, int endingAt ) : List
GetSetCount ( string key ) : long
GetSetTtl ( string key ) : System.TimeSpan
GetStateData ( string jobId ) : Hangfire.Storage.StateData
GetValueFromHash ( string key, string name ) : string
Heartbeat ( string serverId ) : void
RemoveServer ( string serverId ) : void
RemoveTimedOutServers ( System.TimeSpan timeOut ) : int
SQLiteConnection ( IDbConnection connection, System.Transactions.IsolationLevel isolationLevel, PersistentJobQueueProviderCollection queueProviders ) : System
SQLiteConnection ( IDbConnection connection, System.Transactions.IsolationLevel isolationLevel, PersistentJobQueueProviderCollection queueProviders, bool ownsConnection ) : System
SetJobParameter ( string jobId, string name, string value ) : void
SetRangeInHash ( string key, string>.IEnumerable keyValuePairs ) : void

Method Details

AcquireDistributedLock() public method

public AcquireDistributedLock ( string resource, System.TimeSpan timeout ) : IDisposable
resource string
timeout System.TimeSpan
return IDisposable

AnnounceServer() public method

public AnnounceServer ( string serverId, Hangfire.Server.ServerContext context ) : void
serverId string
context Hangfire.Server.ServerContext
return void

CreateExpiredJob() public method

public CreateExpiredJob ( Hangfire.Common.Job job, string>.IDictionary parameters, System.DateTime createdAt, System.TimeSpan expireIn ) : string
job Hangfire.Common.Job
parameters string>.IDictionary
createdAt System.DateTime
expireIn System.TimeSpan
return string

CreateWriteTransaction() public method

public CreateWriteTransaction ( ) : IWriteOnlyTransaction
return IWriteOnlyTransaction

Dispose() public method

public Dispose ( ) : void
return void

FetchNextJob() public method

public FetchNextJob ( string queues, CancellationToken cancellationToken ) : IFetchedJob
queues string
cancellationToken System.Threading.CancellationToken
return IFetchedJob

GetAllEntriesFromHash() public method

public GetAllEntriesFromHash ( string key ) : string>.Dictionary
key string
return string>.Dictionary

GetAllItemsFromList() public method

public GetAllItemsFromList ( string key ) : List
key string
return List

GetAllItemsFromSet() public method

public GetAllItemsFromSet ( string key ) : HashSet
key string
return HashSet

GetCounter() public method

public GetCounter ( string key ) : long
key string
return long

GetFirstByLowestScoreFromSet() public method

public GetFirstByLowestScoreFromSet ( string key, double fromScore, double toScore ) : string
key string
fromScore double
toScore double
return string

GetHashCount() public method

public GetHashCount ( string key ) : long
key string
return long

GetHashTtl() public method

public GetHashTtl ( string key ) : System.TimeSpan
key string
return System.TimeSpan

GetJobData() public method

public GetJobData ( string id ) : Hangfire.Storage.JobData
id string
return Hangfire.Storage.JobData

GetJobParameter() public method

public GetJobParameter ( string jobId, string name ) : string
jobId string
name string
return string

GetListCount() public method

public GetListCount ( string key ) : long
key string
return long

GetListTtl() public method

public GetListTtl ( string key ) : System.TimeSpan
key string
return System.TimeSpan

GetRangeFromList() public method

public GetRangeFromList ( string key, int startingFrom, int endingAt ) : List
key string
startingFrom int
endingAt int
return List

GetRangeFromSet() public method

public GetRangeFromSet ( string key, int startingFrom, int endingAt ) : List
key string
startingFrom int
endingAt int
return List

GetSetCount() public method

public GetSetCount ( string key ) : long
key string
return long

GetSetTtl() public method

public GetSetTtl ( string key ) : System.TimeSpan
key string
return System.TimeSpan

GetStateData() public method

public GetStateData ( string jobId ) : Hangfire.Storage.StateData
jobId string
return Hangfire.Storage.StateData

GetValueFromHash() public method

public GetValueFromHash ( string key, string name ) : string
key string
name string
return string

Heartbeat() public method

public Heartbeat ( string serverId ) : void
serverId string
return void

RemoveServer() public method

public RemoveServer ( string serverId ) : void
serverId string
return void

RemoveTimedOutServers() public method

public RemoveTimedOutServers ( System.TimeSpan timeOut ) : int
timeOut System.TimeSpan
return int

SQLiteConnection() public method

public SQLiteConnection ( IDbConnection connection, System.Transactions.IsolationLevel isolationLevel, PersistentJobQueueProviderCollection queueProviders ) : System
connection IDbConnection
isolationLevel System.Transactions.IsolationLevel
queueProviders PersistentJobQueueProviderCollection
return System

SQLiteConnection() public method

public SQLiteConnection ( IDbConnection connection, System.Transactions.IsolationLevel isolationLevel, PersistentJobQueueProviderCollection queueProviders, bool ownsConnection ) : System
connection IDbConnection
isolationLevel System.Transactions.IsolationLevel
queueProviders PersistentJobQueueProviderCollection
ownsConnection bool
return System

SetJobParameter() public method

public SetJobParameter ( string jobId, string name, string value ) : void
jobId string
name string
value string
return void

SetRangeInHash() public method

public SetRangeInHash ( string key, string>.IEnumerable keyValuePairs ) : void
key string
keyValuePairs string>.IEnumerable
return void