Class BowireHubAgent

Namespace
Kuestenlogik.Bowire.AgentHub
Assembly
Kuestenlogik.Bowire.dll

An agent as the hub knows it.

public sealed record BowireHubAgent : IEquatable<BowireHubAgent>
Inheritance
BowireHubAgent
Implements
Inherited Members

Constructors

BowireHubAgent(string, string, string, string, string?, string?, IReadOnlyList<string>, IReadOnlyList<BowireCatalogueEntry>, DateTimeOffset, DateTimeOffset, bool)

An agent as the hub knows it.

public BowireHubAgent(string AgentId, string ServiceName, string InstanceId, string CallbackUrl, string? Version, string? Owner, IReadOnlyList<string> Tags, IReadOnlyList<BowireCatalogueEntry> Entries, DateTimeOffset RegisteredAt, DateTimeOffset LastSeen, bool Live)

Parameters

AgentId string
ServiceName string
InstanceId string
CallbackUrl string
Version string
Owner string
Tags IReadOnlyList<string>
Entries IReadOnlyList<BowireCatalogueEntry>
RegisteredAt DateTimeOffset
LastSeen DateTimeOffset
Live bool

Properties

AgentId

[JsonPropertyName("agentId")]
public string AgentId { get; init; }

Property Value

string

CallbackUrl

[JsonPropertyName("callbackUrl")]
public string CallbackUrl { get; init; }

Property Value

string

Entries

[JsonPropertyName("entries")]
public IReadOnlyList<BowireCatalogueEntry> Entries { get; init; }

Property Value

IReadOnlyList<BowireCatalogueEntry>

InstanceId

[JsonPropertyName("instanceId")]
public string InstanceId { get; init; }

Property Value

string

LastSeen

[JsonPropertyName("lastSeen")]
public DateTimeOffset LastSeen { get; init; }

Property Value

DateTimeOffset

Live

[JsonPropertyName("live")]
public bool Live { get; init; }

Property Value

bool

Owner

[JsonPropertyName("owner")]
public string? Owner { get; init; }

Property Value

string

RegisteredAt

[JsonPropertyName("registeredAt")]
public DateTimeOffset RegisteredAt { get; init; }

Property Value

DateTimeOffset

ServiceName

[JsonPropertyName("serviceName")]
public string ServiceName { get; init; }

Property Value

string

Tags

[JsonPropertyName("tags")]
public IReadOnlyList<string> Tags { get; init; }

Property Value

IReadOnlyList<string>

Version

[JsonPropertyName("version")]
public string? Version { get; init; }

Property Value

string

Methods

Deconstruct(out string, out string, out string, out string, out string?, out string?, out IReadOnlyList<string>, out IReadOnlyList<BowireCatalogueEntry>, out DateTimeOffset, out DateTimeOffset, out bool)

public void Deconstruct(out string AgentId, out string ServiceName, out string InstanceId, out string CallbackUrl, out string? Version, out string? Owner, out IReadOnlyList<string> Tags, out IReadOnlyList<BowireCatalogueEntry> Entries, out DateTimeOffset RegisteredAt, out DateTimeOffset LastSeen, out bool Live)

Parameters

AgentId string
ServiceName string
InstanceId string
CallbackUrl string
Version string
Owner string
Tags IReadOnlyList<string>
Entries IReadOnlyList<BowireCatalogueEntry>
RegisteredAt DateTimeOffset
LastSeen DateTimeOffset
Live bool

Equals(BowireHubAgent?)

public bool Equals(BowireHubAgent? other)

Parameters

other BowireHubAgent

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 ==(BowireHubAgent?, BowireHubAgent?)

public static bool operator ==(BowireHubAgent? left, BowireHubAgent? right)

Parameters

left BowireHubAgent
right BowireHubAgent

Returns

bool

operator !=(BowireHubAgent?, BowireHubAgent?)

public static bool operator !=(BowireHubAgent? left, BowireHubAgent? right)

Parameters

left BowireHubAgent
right BowireHubAgent

Returns

bool