Class OpenBiConnectionExtensions
Extensions for connections.
Inheritance
OpenBiConnectionExtensions
Namespace: BiExcellence.OpenBi.Api.Commands.ConnectionTemplates
Assembly: BiExcellence.OpenBi.Api.DataProvider.dll
Syntax
public static class OpenBiConnectionExtensions
Methods
ValidateConnectionAsync(IOpenBiSession, IConnectionTemplate, string?, CancellationToken)
Validates a connection template and returns a connection.
Declaration
public static Task<IConnection> ValidateConnectionAsync(this IOpenBiSession session, IConnectionTemplate connectionTemplate, string? dataProviderName, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| IOpenBiSession | session | The session. |
| IConnectionTemplate | connectionTemplate | The connection template. |
| string | dataProviderName | The dataprovider name. |
| CancellationToken | cancellationToken | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task<IConnection> |
ValidateConnectionAsync(IOpenBiSession, IConnectionTemplate, CancellationToken)
Validates a connection template and returns a connection.
Declaration
public static Task<IConnection> ValidateConnectionAsync(this IOpenBiSession session, IConnectionTemplate connectionTemplate, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| IOpenBiSession | session | The session. |
| IConnectionTemplate | connectionTemplate | The connection template. |
| CancellationToken | cancellationToken | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task<IConnection> |