C# 클래스 Glipho.OAuth.Providers.Database.Mongo.Consumers

MongoDB implementation of the IConsumers database.
상속: MongoDbClient, IConsumers
파일 보기 프로젝트 열기: Glipho/oauth-providers

공개 메소드들

메소드 설명
Consumers ( ) : System

Initialises a new instance of the Consumers class.

Consumers ( string connectionString ) : System

Initialises a new instance of the Consumers class.

Create ( Database newConsumer ) : Database.Consumer

Create a new consumer.

Get ( string id ) : Database.Consumer

Retrieve a consumer from the database.

List ( int offset, int limit ) : IList

List all consumers by name.

If there are no results with the given range, an empty list should be returned.

비공개 메소드들

메소드 설명
EnsureIndexesExist ( ) : void

Ensure the relevant indexes exist.

InitialiseClass ( ) : void

Initialise the class.

메소드 상세

Consumers() 공개 메소드

Initialises a new instance of the Consumers class.
public Consumers ( ) : System
리턴 System

Consumers() 공개 메소드

Initialises a new instance of the Consumers class.
public Consumers ( string connectionString ) : System
connectionString string The connection string.
리턴 System

Create() 공개 메소드

Create a new consumer.
Thrown if a parameter is not valid. Thrown if an error occurs while executing the requested command.
public Create ( Database newConsumer ) : Database.Consumer
newConsumer MongoDB.Driver.Database The to create.
리턴 Database.Consumer

Get() 공개 메소드

Retrieve a consumer from the database.
Thrown if a parameter is not valid. Thrown if an error occurs while executing the requested command.
public Get ( string id ) : Database.Consumer
id string The identifier of the consumer to retrieve.
리턴 Database.Consumer

List() 공개 메소드

List all consumers by name.

If there are no results with the given range, an empty list should be returned.

Thrown if a parameter is outside of a permitted range. Thrown if an error occurs while executing the requested command.
public List ( int offset, int limit ) : IList
offset int The amount to offset the results by. Minimum of 0.
limit int The maximum number of results to return. Maximum of 100.
리턴 IList