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 the application culture.

public string? ApplicationCulture { get; }

Property Value

string

Authorized

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

public bool Authorized { get; protected set; }

Property Value

bool

Context

Gets the context.

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

Property Value

Dictionary<string, object>

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

string

Methods

RemoveContextValue(string)

Removes 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.

WithContextValue(string, object)

Adds or updates 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.