RunicTestComponent record

Namespace Runic.Application.Testing in Runic.Application.Testing 0.23.0

public sealed record RunicTestComponent : IEquatable<RunicTestComponent>

Inherits or implements IEquatable.

A guest's component as RunicTestHostedWindow.AttachComponentAsync attached it (region-component/1).

Parameters

Module

The address of the guest's component module.

Url

The WebSocket address the component connects to.

Token

The component token, which the guest admits only from the embedder's origin.

SameSite

Whether the guest serves it from the embedder's own site.

Constructors

RunicTestComponent

public RunicTestComponent(Uri Module, Uri Url, string Token, bool SameSite)

A guest's component as RunicTestHostedWindow.AttachComponentAsync attached it (region-component/1).

Parameters

Module

The address of the guest's component module.

Url

The WebSocket address the component connects to.

Token

The component token, which the guest admits only from the embedder's origin.

SameSite

Whether the guest serves it from the embedder's own site.

Properties

Module

public Uri Module { get; init; }

The address of the guest's component module.

SameSite

public bool SameSite { get; init; }

Whether the guest serves it from the embedder's own site.

Token

public string Token { get; init; }

The component token, which the guest admits only from the embedder's origin.

Url

public Uri Url { get; init; }

The WebSocket address the component connects to.