Table of Contents

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 bool

The value indicating whether the user is authorized.

context Dictionary<string, object>

The context.

theme string

The theme.

applicationCulture string

The 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 string

The theme.

applicationCulture string

The application culture with format "en-US".

inputCultures string[]

The input cultures with format "en-US".

Properties

ApplicationCulture

Gets or sets the application culture.

public string? ApplicationCulture { get; protected set; }

Property Value

string

Authorized

Gets or sets a value indicating whether the user is authorized.

public bool Authorized { get; protected set; }

Property Value

bool

ClientOnlyContext

Gets or sets the client-only context.

public Dictionary<string, object>? ClientOnlyContext { get; protected set; }

Property Value

Dictionary<string, object>

Context

Gets or sets the context.

public Dictionary<string, object>? Context { get; protected set; }

Property Value

Dictionary<string, object>

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

string

Methods

RemoveClientOnlyContextValue(string)

Removes a client-only application context value.

public OnTenantResolvedResult RemoveClientOnlyContextValue(string key)

Parameters

key string

The key.

Returns

OnTenantResolvedResult

This.

RemoveContextValue(string)

Removes an application context value.

public OnTenantResolvedResult RemoveContextValue(string key)

Parameters

key string

The key.

Returns

OnTenantResolvedResult

This.

WithApplicationCulture(string?)

Sets the application culture.

public OnTenantResolvedResult WithApplicationCulture(string? applicationCulture)

Parameters

applicationCulture string

The application culture.

Returns

OnTenantResolvedResult

This.

WithAuthorized(bool)

Sets the authorized.

public OnTenantResolvedResult WithAuthorized(bool authorized)

Parameters

authorized bool

Authorized.

Returns

OnTenantResolvedResult

This.

WithClientOnlyContextValue(string, object)

Adds or updates a client-only application context value.

public OnTenantResolvedResult WithClientOnlyContextValue(string key, object value)

Parameters

key string

The key.

value object

The value.

Returns

OnTenantResolvedResult

This.

WithContextValue(string, object)

Adds or updates an application context value.

public OnTenantResolvedResult WithContextValue(string key, object value)

Parameters

key string

The key.

value object

The value.

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 string

The theme.

Returns

OnTenantResolvedResult

This.