-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tabular connector refactoring #2404
Conversation
…urce, get Dataset Metadata
Public API changes: |
src/libraries/Microsoft.PowerFx.Connectors/Tabular/Services/InternalObjects.cs
Show resolved
Hide resolved
src/libraries/Microsoft.PowerFx.Connectors/Tabular/Services/ConnectorServiceBase.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Public API changes: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RuntimeConfig rc = new RuntimeConfig(symbolValues).AddRuntimeContext(runtimeContext); | ||
RuntimeConfig rc = new RuntimeConfig(symbolValues) | ||
.AddService<ConnectorLogger>(logger) | ||
.AddService<HttpClient>(client); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.AddService<HttpClient>(client); [](http://example.com/codeflow?start=29&length=39)
This will be a problem. If we have 2 tables, they can compete over which httpClient this maps to.
HttpClient is too general of a type to use here. This was what BaseRuntimeConnectorContext was trying to solve.
Alternatively, I think the TableValue can just hold onto the client directly. (This is what Dataverse does)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filed #2408 to followup
no swagger
no v2
add ConnectorDataSource
get Dataset Metadata