Class OpenBiLanguageTextExtensions
Extension methods for language texts and language text values.
Inheritance
Namespace: BiExcellence.OpenBi.Api.Commands.LanguageTexts
Assembly: BiExcellence.OpenBi.Api.LanguageText.dll
Syntax
public static class OpenBiLanguageTextExtensions
Methods
CreateLanguageTextAsync(IOpenBiSession, ILanguageText, CancellationToken)
Creates or updates a language text.
Declaration
public static Task CreateLanguageTextAsync(this IOpenBiSession session, ILanguageText languageText, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | The session. |
ILanguageText | languageText | The language text. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task |
CreateLanguageTextValueAsync(IOpenBiSession, ILanguageTextValue, CancellationToken)
Creates or updates a language text value.
Declaration
public static Task CreateLanguageTextValueAsync(this IOpenBiSession session, ILanguageTextValue languageTextValue, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | The session. |
ILanguageTextValue | languageTextValue | The language text value. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task |
DeleteLanguageTextAsync(IOpenBiSession, ILanguageText, CancellationToken)
Deletes a language text.
Declaration
public static Task DeleteLanguageTextAsync(this IOpenBiSession session, ILanguageText languageText, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | The session. |
ILanguageText | languageText | The language text. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task |
DeleteLanguageTextAsync(IOpenBiSession, string, CancellationToken)
Deletes a language text by id.
Declaration
public static Task DeleteLanguageTextAsync(this IOpenBiSession session, string languageTextId, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | The session. |
string | languageTextId | The language text id. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task |
DeleteLanguageTextsAsync(IOpenBiSession, IEnumerable<ILanguageText>, CancellationToken)
Deletes language texts.
Declaration
public static Task DeleteLanguageTextsAsync(this IOpenBiSession session, IEnumerable<ILanguageText> languageTexts, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | The session. |
IEnumerable<ILanguageText> | languageTexts | The language texts. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task |
DeleteLanguageTextsAsync(IOpenBiSession, IEnumerable<string>, CancellationToken)
Deletes language texts by id.
Declaration
public static Task DeleteLanguageTextsAsync(this IOpenBiSession session, IEnumerable<string> ids, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | The session. |
IEnumerable<string> | ids | The language text ids. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task |
DeleteLanguageTextValueAsync(IOpenBiSession, ILanguageTextValue, CancellationToken)
Deletes a language text value.
Declaration
public static Task DeleteLanguageTextValueAsync(this IOpenBiSession session, ILanguageTextValue languageTextValue, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | The session. |
ILanguageTextValue | languageTextValue | The language text value. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task |
DeleteLanguageTextValueAsync(IOpenBiSession, string, string?, CancellationToken)
Deletes a language text value by id and language.
Declaration
public static Task DeleteLanguageTextValueAsync(this IOpenBiSession session, string id, string? language = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | The session. |
string | id | The language text value id. |
string | language | The language text value language. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task |
GetLanguageTextsAsync(IOpenBiSession, CancellationToken)
Returns all language texts.
Declaration
public static Task<IList<ILanguageText>> GetLanguageTextsAsync(this IOpenBiSession session, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | The session. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task<IList<ILanguageText>> |
GetLanguageTextValuesAsync(IOpenBiSession, ILanguageText, CancellationToken)
Returns language text values for a languge text.
Declaration
public static Task<IList<ILanguageTextValue>> GetLanguageTextValuesAsync(this IOpenBiSession session, ILanguageText languageText, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | The session. |
ILanguageText | languageText | The language text. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task<IList<ILanguageTextValue>> |
GetLanguageTextValuesByIdAsync(IOpenBiSession, string, CancellationToken)
Returns language text values for a languge text.
Declaration
public static Task<IList<ILanguageTextValue>> GetLanguageTextValuesByIdAsync(this IOpenBiSession session, string id, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | The session. |
string | id | The language text id. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task<IList<ILanguageTextValue>> |