public RequestExecution(RequestHandler parent, ISession session, IRequest request) { _parent = parent; _session = session; _request = request; }
/// <inheritdoc /> public Task <IConnection> GetConnectionToValidHostAsync(ValidHost validHost, IDictionary <IPEndPoint, Exception> triedHosts) { return(RequestHandler.GetConnectionFromHostAsync(validHost.Host, validHost.Distance, _session, triedHosts)); }
/// <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) { }
/// <inheritdoc /> public IRequest BuildRequest() { return(RequestHandler.GetRequest(Statement, Serializer, RequestOptions)); }