C# 클래스 Hangfire.Mongo.Database.HangfireDbContext

상속: IDisposable
파일 보기 프로젝트 열기: Trov/Hangfire.Mongo 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Dispose void

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
Dispose ( ) : void

메소드 상세

HangfireDbContext() 공개 메소드

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

HangfireDbContext() 공개 메소드

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
리턴 System

HangfireDbContext() 공개 메소드

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
리턴 System

Init() 공개 메소드

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