Class Extensions
Provides C# extension methods for interfaces and classes within the root namespace.
Used to introduce new methods on interfaces without making it a breaking change for the users.
Assembly: Cassandra.dll
Syntax
public static class Extensions
Methods
AsCqlVector<T>(T[])
Declaration
public static CqlVector<T> AsCqlVector<T>(this T[] array)
Parameters
Type |
Name |
Description |
T[] |
array |
|
Returns
Type Parameters
GetState(ISession)
Gets a snapshot containing information on the connections pools held by this Client at the current time.
The information provided in the returned object only represents the state at the moment this method was
called and it's not maintained in sync with the driver metadata.
Declaration
public static ISessionState GetState(this ISession instance)
Parameters
Returns
ToCqlVector<T>(IEnumerable<T>)
Creates a new vector after copying the provided enumerable. Equivalent to:
new CqlVector<int>(enumerable.ToArray());
// or
CqlVector<int>.New(enumerable.ToArray());
Declaration
public static CqlVector<T> ToCqlVector<T>(IEnumerable<T> enumerable)
Parameters
Returns
Type Parameters