Class Client
Class encapsulating a session pooling functionality.
Inheritance
System.Object
Client
Implements
System.IDisposable
Namespace: MySqlX.XDevAPI
Assembly: MySql.Data.dll
Version: 9.1.0
Syntax
public class Client : IDisposable
Methods
Close()
Closes all sessions the Client object created and destroys the managed pool.
Declaration
public void Close()
Dispose()
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
GetSession()
Get a session from pool or create a new one.
Declaration
public Session GetSession()
Returns
Type | Description |
---|---|
Session |
Implements
System.IDisposable