C# Class Hangfire.Mongo.Database.HangfireDbContext

Inheritance: IDisposable
Afficher le fichier Open project: Trov/Hangfire.Mongo Class Usage Examples

Private Properties

Свойство Type Description
Dispose void

Méthodes publiques

Méthode Description
HangfireDbContext ( IMongoDatabase database ) : System

Constructs context with existing Mongo database connection

HangfireDbContext ( MongoClientSettings mongoClientSettings, string databaseName, string prefix = "hangfire" ) : System

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

Private Methods

Méthode Description
Dispose ( ) : void

Method Details

HangfireDbContext() public méthode

Constructs context with existing Mongo database connection
public HangfireDbContext ( IMongoDatabase database ) : System
database IMongoDatabase Database connection
Résultat System

HangfireDbContext() public méthode

Constructs context with Mongo client settings and database name
public HangfireDbContext ( MongoClientSettings mongoClientSettings, string databaseName, string prefix = "hangfire" ) : System
mongoClientSettings MongoDB.Driver.MongoClientSettings Client settings for MongoDB
databaseName string Database name
prefix string Collections prefix
Résultat System

HangfireDbContext() public méthode

Constructs context with connection string and database name
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

Init() public méthode

Initializes intial collections schema for Hangfire
public Init ( ) : void
Résultat void