Click or drag to resize
Session Class
Implementation of ISession.
Inheritance Hierarchy
SystemObject
  CassandraSession

Namespace: Cassandra
Assembly: Cassandra (in Cassandra.dll) Version: 3.7.0
Syntax
C#
public class Session : ISession, IDisposable

The Session type exposes the following members.

Methods
  NameDescription
Public methodBeginExecute(IStatement, AsyncCallback, Object)
Begins asynchronous execute operation
Public methodBeginExecute(String, ConsistencyLevel, AsyncCallback, Object)
Begins asynchronous execute operation
Public methodBeginPrepare
Begins asynchronous prepare operation
Public methodChangeKeyspace
Switches to the specified keyspace.
Public methodCreateKeyspace
Creates new keyspace in current cluster.
Public methodCreateKeyspaceIfNotExists
Creates new keyspace in current cluster. If keyspace with specified name already exists, then this method does nothing.
Public methodDeleteKeyspace
Deletes specified keyspace from current cluster. If keyspace with specified name does not exist, then exception will be thrown.
Public methodDeleteKeyspaceIfExists
Deletes specified keyspace from current cluster. If keyspace with specified name does not exist, then this method does nothing.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEndExecute
Ends asynchronous execute operation
Public methodEndPrepare
Ends asynchronous prepare operation
Public methodExecute(String)
Executes the provided query.
Public methodExecute(IStatement)
Executes the provided query.
Public methodExecute(String, ConsistencyLevel)
Executes the provided query.
Public methodExecute(String, Int32)
Executes the provided query.
Public methodExecuteAsync
Executes a query asynchronously
Public methodPrepare(String)
Public methodPrepare(String, IDictionaryString, Byte)
Public methodPrepareAsync(String)
Prepares the provided query string asynchronously.
Public methodPrepareAsync(String, IDictionaryString, Byte)
Prepares the provided query string asynchronously, and sending the custom payload request.
Public methodWaitForSchemaAgreement(IPEndPoint)
Public methodWaitForSchemaAgreement(RowSet)
Top
Extension Methods
  NameDescription
Public Extension MethodCreateBatchOverloaded. (Defined by SessionExtensions.)
Public Extension MethodCreateBatch(BatchType)Overloaded. (Defined by SessionExtensions.)
Public Extension MethodGetState
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.

(Defined by Extensions.)
Public Extension MethodGetTableTEntity

Extension method used for backward-compatibility, use TableTEntity(ISession) constructor instead.

Creates a new instance of the Linq IQueryProvider that represents a table in Cassandra using the mapping configuration provided.

Fluent configuration or attributes can be used to define mapping information.

(Defined by SessionExtensions.)
Top
Properties
  NameDescription
Public propertyBinaryProtocolVersion
Public propertyCluster
Gets the cluster information and state
Public propertyConfiguration
Gets the cluster configuration
Public propertyIsDisposed
Determines if the session is already disposed
Public propertyKeyspace
Gets or sets the keyspace
Public propertyPolicies
Public propertyUserDefinedTypes
Gets the user defined type mappings
Top
See Also