public RequestExecution(RequestHandler parent, ISession session, IRequest request)
 {
     _parent  = parent;
     _session = session;
     _request = request;
 }
Exemple #2
0
 /// <inheritdoc />
 public Task <IConnection> GetConnectionToValidHostAsync(ValidHost validHost, IDictionary <IPEndPoint, Exception> triedHosts)
 {
     return(RequestHandler.GetConnectionFromHostAsync(validHost.Host, validHost.Distance, _session, triedHosts));
 }
Exemple #3
0
 /// <summary>
 /// Creates a new instance using the statement to build the request.
 /// Statement can not be null.
 /// </summary>
 public RequestHandler(IInternalSession session, Serializer serializer, IStatement statement, IRequestOptions requestOptions)
     : this(session, serializer, RequestHandler.GetRequest(statement, serializer, requestOptions), statement, requestOptions)
 {
 }
Exemple #4
0
 /// <inheritdoc />
 public IRequest BuildRequest()
 {
     return(RequestHandler.GetRequest(Statement, Serializer, RequestOptions));
 }