public CassandraConnection(IOptions <CassandraConnectionSetting> setting) { _setting = setting.Value; _clusterLazy = new Lazy <Cluster>(() => { return(Connect()); }, LazyThreadSafetyMode.ExecutionAndPublication); _sessionLazy = new Lazy <ISession>(() => { return(CreateSessionLazy()); }, LazyThreadSafetyMode.ExecutionAndPublication); }
public CassandraEntityPipeline(string connectString) { ConnectionSetting = new CassandraConnectionSetting(connectString); }