private static bool OnBuildAsCosmosCallback(ContextConnection.Builder builder, out ContextConnection conn) { conn = new ContextConnectionCosmos(builder); return(true); }
private static bool OnBuildFromConnectionStringCallback(ContextConnection.Builder builder, out ContextConnection conn) { var aux = new ContextConnectionString(builder); bool isValid = aux.IsValid(); conn = isValid ? aux : default; return(isValid); }
private static bool OnBuildAsSqliteCallback(ContextConnection.Builder builder, out ContextConnection conn) { conn = new ContextConnectionSqlite(builder); return(true); }