C# Class Hangfire.Mongo.Database.HangfireDbContext

Inheritance: IDisposable
Mostrar archivo Open project: Trov/Hangfire.Mongo Class Usage Examples

Private Properties

Property Type Description
Dispose void

Public Methods

Method 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

Method Description
Dispose ( ) : void

Method Details

HangfireDbContext() public method

Constructs context with existing Mongo database connection
public HangfireDbContext ( IMongoDatabase database ) : System
database IMongoDatabase Database connection
return System

HangfireDbContext() public method

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
return System

HangfireDbContext() public method

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
return System

Init() public method

Initializes intial collections schema for Hangfire
public Init ( ) : void
return void