public IConnection GetConnection() { var nextNode = GetNodeInternal(); if (nextNode == null) { throw new HeliosConnectionException(ExceptionType.NotSupported, "No available nodes."); } if (HasConnectionForNode(nextNode)) { return(GetExistingConnectionForNode(nextNode)); } return(ConnectionBuilder.BuildConnection(nextNode)); }
protected SqlConnection BuildConnection() { return(ConnectionBuilder.BuildConnection(ConnectionProperties)); }
public static IConnection GetConnection(this INode node) { return(DefaultConnectionBuilder.BuildConnection(node)); }