public User(IUserDAL user, IPostDAL post, ICommentDAL comment, ILikeDAL like, IUserDALNeo4j userDALNeo4J, IStreamDALCassandra stream, IStreamDataCassandra streamData) { _user = user; _post = post; _comment = comment; _like = like; _userNeo4j = userDALNeo4J; _streamData = streamData; _stream = stream; }
public StreamDataDALCassandra(string KeySpace, string[] nodes, IStreamDALCassandra stream) { _nodes = nodes; _KeySpace = KeySpace; _stream = stream; ConsistencyLevel consistency = ConsistencyLevel.One; _cluster = Cluster.Builder() .AddContactPoints(nodes) .WithQueryOptions(new QueryOptions().SetConsistencyLevel(consistency)) .Build(); }