Struct BowireWorkspaceScope

Namespace
Kuestenlogik.Bowire.Endpoints
Assembly
Kuestenlogik.Bowire.dll

A validated workspace scope, or the reason it was refused.

public readonly struct BowireWorkspaceScope : IEquatable<BowireWorkspaceScope>
Implements
Inherited Members

Constructors

BowireWorkspaceScope(string?, string?, string?)

A validated workspace scope, or the reason it was refused.

public BowireWorkspaceScope(string? WorkspaceId, string? StorageRoot, string? Error)

Parameters

WorkspaceId string

Null when the caller named none.

StorageRoot string

Null when the caller named none.

Error string

Null when the scope is usable.

Properties

Error

Null when the scope is usable.

public string? Error { get; init; }

Property Value

string

IsInvalid

True when the request named something this server will not act on.

public bool IsInvalid { get; }

Property Value

bool

StorageRoot

Null when the caller named none.

public string? StorageRoot { get; init; }

Property Value

string

WorkspaceId

Null when the caller named none.

public string? WorkspaceId { get; init; }

Property Value

string

Methods

Deconstruct(out string?, out string?, out string?)

public void Deconstruct(out string? WorkspaceId, out string? StorageRoot, out string? Error)

Parameters

WorkspaceId string
StorageRoot string
Error string

Equals(BowireWorkspaceScope)

public bool Equals(BowireWorkspaceScope other)

Parameters

other BowireWorkspaceScope

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(BowireWorkspaceScope, BowireWorkspaceScope)

public static bool operator ==(BowireWorkspaceScope left, BowireWorkspaceScope right)

Parameters

left BowireWorkspaceScope
right BowireWorkspaceScope

Returns

bool

operator !=(BowireWorkspaceScope, BowireWorkspaceScope)

public static bool operator !=(BowireWorkspaceScope left, BowireWorkspaceScope right)

Parameters

left BowireWorkspaceScope
right BowireWorkspaceScope

Returns

bool