Свойство | Type | Description | |
---|---|---|---|
Dispose | void |
Méthode | Description | |
---|---|---|
HangfireDbContext ( IMongoDatabase database ) : System |
Constructs context with existing Mongo database connection
|
|
HangfireDbContext ( |
Constructs context with Mongo client settings and database name
|
|
HangfireDbContext ( string connectionString, string databaseName, string prefix = "hangfire" ) : System |
Constructs context with connection string and database name
|
|
Init ( ) : void |
Initializes intial collections schema for Hangfire
|
Méthode | Description | |
---|---|---|
Dispose ( ) : void |
public HangfireDbContext ( IMongoDatabase database ) : System | ||
database | IMongoDatabase | Database connection |
Résultat | System |
public HangfireDbContext ( |
||
mongoClientSettings | Client settings for MongoDB | |
databaseName | string | Database name |
prefix | string | Collections prefix |
Résultat | System |
public HangfireDbContext ( string connectionString, string databaseName, string prefix = "hangfire" ) : System | ||
connectionString | string | Connection string for Mongo database |
databaseName | string | Database name |
prefix | string | Collections prefix |
Résultat | System |