BuilderWithSessionName Method |
var cluster = Cluster.Builder().WithSessionName("main-session").Build(); var session = cluster.Connect(); // session.SessionName == "main-session" var session1 = cluster.Connect(); // session1.SessionName == "main-session1" var session2 = cluster.Connect(); // session2.SessionName == "main-session2"
var cluster = Cluster.Builder().Build(); var session = cluster.Connect(); // session.SessionName == "s0" var session1 = cluster.Connect(); // session1.SessionName == "s1" var session2 = cluster.Connect(); // session2.SessionName == "s2"
Namespace: Dse
public Builder WithSessionName( string sessionName )