Class OnTenantResolvedResult
- Namespace
- GroupeIsa.Neos.Application
- Assembly
- GroupeIsa.Neos.Application.Abstractions.dll
Represents the on tenant resolved server method result.
public class OnTenantResolvedResult
- Inheritance
-
OnTenantResolvedResult
- Inherited Members
Constructors
OnTenantResolvedResult(bool, Dictionary<string, object>?, string?, string?, string[]?)
Initializes a new instance of the OnTenantResolvedResult class.
public OnTenantResolvedResult(bool authorized, Dictionary<string, object>? context = null, string? theme = null, string? applicationCulture = null, string[]? inputCultures = null)
Parameters
authorized
boolThe value indicating whether the user is authorized.
context
Dictionary<string, object>The context.
theme
stringThe theme.
applicationCulture
stringThe application culture with format "en-US".
inputCultures
string[]The input cultures with format "en-US".
OnTenantResolvedResult(Dictionary<string, object>?, string?, string?, string[]?)
Initializes a new instance of the OnTenantResolvedResult class.
public OnTenantResolvedResult(Dictionary<string, object>? context = null, string? theme = null, string? applicationCulture = null, string[]? inputCultures = null)
Parameters
context
Dictionary<string, object>The context.
theme
stringThe theme.
applicationCulture
stringThe application culture with format "en-US".
inputCultures
string[]The input cultures with format "en-US".
Properties
ApplicationCulture
Gets the application culture.
public string? ApplicationCulture { get; }
Property Value
Authorized
Gets or sets a value indicating whether the user is authorized.
public bool Authorized { get; protected set; }
Property Value
Context
Gets the context.
public Dictionary<string, object>? Context { get; }
Property Value
InputCultures
Gets the input culture used to display and input data.
public string[]? InputCultures { get; }
Property Value
- string[]
Theme
Gets the theme.
public string? Theme { get; }
Property Value
Methods
RemoveContextValue(string)
Removes context value.
public OnTenantResolvedResult RemoveContextValue(string key)
Parameters
key
stringThe key.
Returns
- OnTenantResolvedResult
This.
WithApplicationCulture(string?)
Sets the application culture.
public OnTenantResolvedResult WithApplicationCulture(string? applicationCulture)
Parameters
applicationCulture
stringThe application culture.
Returns
- OnTenantResolvedResult
This.
WithAuthorized(bool)
Sets the authorized.
public OnTenantResolvedResult WithAuthorized(bool authorized)
Parameters
authorized
boolAuthorized.
Returns
- OnTenantResolvedResult
This.
WithContextValue(string, object)
Adds or updates context value.
public OnTenantResolvedResult WithContextValue(string key, object value)
Parameters
Returns
- OnTenantResolvedResult
This.
WithInputCultures(IEnumerable<string>?)
Sets the input cultures.
public OnTenantResolvedResult WithInputCultures(IEnumerable<string>? inputCultures)
Parameters
inputCultures
IEnumerable<string>The input cultures.
Returns
- OnTenantResolvedResult
This.
WithTheme(string?)
Sets the theme.
public OnTenantResolvedResult WithTheme(string? theme)
Parameters
theme
stringThe theme.
Returns
- OnTenantResolvedResult
This.