C# Class Hangfire.SQLite.SQLiteStorage

Inheritance: JobStorage
ファイルを表示 Open project: vip32/Hangfire.SQLite Class Usage Examples

Public Properties

Property Type Description
ActiveConnections Hangfire.Dashboard.DashboardMetric
TotalConnections Hangfire.Dashboard.DashboardMetric

Public Methods

Method Description
GetComponents ( ) : IEnumerable
GetConnection ( ) : IStorageConnection
GetMonitoringApi ( ) : IMonitoringApi
SQLiteStorage ( [ existingConnection ) : System

Initializes a new instance of the SqlServerStorage class with explicit instance of the SqlConnection class that will be used to query the data.

SQLiteStorage ( string nameOrConnectionString ) : System
SQLiteStorage ( string nameOrConnectionString, SQLiteStorageOptions options ) : System

Initializes SqlServerStorage from the provided SQLiteStorageOptions and either the provided connection string or the connection string with provided name pulled from the application config file.

ToString ( ) : string

Private Methods

Method Description
CreateAndOpenConnection ( ) : IDbConnection
InitializeQueueProviders ( ) : void
IsConnectionString ( string nameOrConnectionString ) : bool
IsConnectionStringInConfiguration ( string connectionStringName ) : bool

Method Details

GetComponents() public method

public GetComponents ( ) : IEnumerable
return IEnumerable

GetConnection() public method

public GetConnection ( ) : IStorageConnection
return IStorageConnection

GetMonitoringApi() public method

public GetMonitoringApi ( ) : IMonitoringApi
return IMonitoringApi

SQLiteStorage() public method

Initializes a new instance of the SqlServerStorage class with explicit instance of the SqlConnection class that will be used to query the data.
public SQLiteStorage ( [ existingConnection ) : System
existingConnection [ Existing connection
return System

SQLiteStorage() public method

public SQLiteStorage ( string nameOrConnectionString ) : System
nameOrConnectionString string
return System

SQLiteStorage() public method

Initializes SqlServerStorage from the provided SQLiteStorageOptions and either the provided connection string or the connection string with provided name pulled from the application config file.
argument is null. argument is null. argument is neither /// a valid SQL Server connection string nor the name of a connection string in the application /// config file.
public SQLiteStorage ( string nameOrConnectionString, SQLiteStorageOptions options ) : System
nameOrConnectionString string Either a SQL Server connection string or the name of /// a SQL Server connection string located in the connectionStrings node in the application config
options SQLiteStorageOptions
return System

ToString() public method

public ToString ( ) : string
return string

Property Details

ActiveConnections public_oe static_oe property

public static DashboardMetric,Hangfire.Dashboard ActiveConnections
return Hangfire.Dashboard.DashboardMetric

TotalConnections public_oe static_oe property

public static DashboardMetric,Hangfire.Dashboard TotalConnections
return Hangfire.Dashboard.DashboardMetric