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
authorizedboolThe value indicating whether the user is authorized.
contextDictionary<string, object>The context.
themestringThe theme.
applicationCulturestringThe application culture with format "en-US".
inputCulturesstring[]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
contextDictionary<string, object>The context.
themestringThe theme.
applicationCulturestringThe application culture with format "en-US".
inputCulturesstring[]The input cultures with format "en-US".
Properties
ApplicationCulture
Gets or sets the application culture.
public string? ApplicationCulture { get; protected set; }
Property Value
Authorized
Gets or sets a value indicating whether the user is authorized.
public bool Authorized { get; protected set; }
Property Value
ClientOnlyContext
Gets or sets the client-only context.
public Dictionary<string, object>? ClientOnlyContext { get; protected set; }
Property Value
Context
Gets or sets the context.
public Dictionary<string, object>? Context { get; protected set; }
Property Value
InputCultures
Gets or sets the input culture used to display and input data.
public string[]? InputCultures { get; protected set; }
Property Value
- string[]
Theme
Gets or sets the theme.
public string? Theme { get; protected set; }
Property Value
VisualIdentity
Gets or sets the name of the visual identity of the tenant to apply.
public string? VisualIdentity { get; protected set; }
Property Value
Remarks
In a multitenant cluster, it holds the visual identity chosen by the rules of Tenant Management before the first interceptor runs, or null when the tenant keeps the standard look.
The value left by the last interceptor is applied. A name that Tenant Management does not know is logged and the visual identity of the rules is kept.
An interceptor that returns a new result without calling WithVisualIdentity(string?) keeps the visual identity of the previous result.
Methods
RemoveClientOnlyContextValue(string)
Removes a client-only application context value.
public OnTenantResolvedResult RemoveClientOnlyContextValue(string key)
Parameters
keystringThe key.
Returns
- OnTenantResolvedResult
This.
RemoveContextValue(string)
Removes an application context value.
public OnTenantResolvedResult RemoveContextValue(string key)
Parameters
keystringThe key.
Returns
- OnTenantResolvedResult
This.
WithApplicationCulture(string?)
Sets the application culture.
public OnTenantResolvedResult WithApplicationCulture(string? applicationCulture)
Parameters
applicationCulturestringThe application culture.
Returns
- OnTenantResolvedResult
This.
WithAuthorized(bool)
Sets the authorized.
public OnTenantResolvedResult WithAuthorized(bool authorized)
Parameters
authorizedboolAuthorized.
Returns
- OnTenantResolvedResult
This.
WithClientOnlyContextValue(string, object)
Adds or updates a client-only application context value.
public OnTenantResolvedResult WithClientOnlyContextValue(string key, object value)
Parameters
Returns
- OnTenantResolvedResult
This.
WithContextValue(string, object)
Adds or updates an application 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
inputCulturesIEnumerable<string>The input cultures.
Returns
- OnTenantResolvedResult
This.
WithTheme(string?)
Sets the theme.
public OnTenantResolvedResult WithTheme(string? theme)
Parameters
themestringThe theme.
Returns
- OnTenantResolvedResult
This.
WithVisualIdentity(string?)
Sets the visual identity of the tenant to apply, which replaces the one chosen by the rules of Tenant Management.
public OnTenantResolvedResult WithVisualIdentity(string? visualIdentity)
Parameters
visualIdentitystringThe exact name of a visual identity of Tenant Management, compared with its case, or
nullfor the standard look.
Returns
- OnTenantResolvedResult
This.