Table of Contents

Method GetGeneration

Namespace
MongoDB.Driver.Core.ConnectionPools
Assembly
MongoDB.Driver.Core.dll

GetGeneration(ObjectId?)

Gets the current generation for the connection pool (or service).

int GetGeneration(ObjectId? serviceId)

Parameters

serviceId ObjectId?

The optional service Id.

Returns

int

The connection pool generation.