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