Class BowireAgentRegistration

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

What an agent sends the hub, at start and on every heartbeat (#128).

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

Constructors

BowireAgentRegistration(string, string, string, string?, string?, IReadOnlyList<string>?, IReadOnlyList<BowireCatalogueEntry>?, double?)

What an agent sends the hub, at start and on every heartbeat (#128).

public BowireAgentRegistration(string ServiceName, string InstanceId, string CallbackUrl, string? Version = null, string? Owner = null, IReadOnlyList<string>? Tags = null, IReadOnlyList<BowireCatalogueEntry>? Entries = null, double? HeartbeatSeconds = null)

Parameters

ServiceName string
InstanceId string
CallbackUrl string
Version string
Owner string
Tags IReadOnlyList<string>
Entries IReadOnlyList<BowireCatalogueEntry>
HeartbeatSeconds double?

Properties

CallbackUrl

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

Property Value

string

Entries

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

Property Value

IReadOnlyList<BowireCatalogueEntry>

HeartbeatSeconds

[JsonPropertyName("heartbeatSeconds")]
public double? HeartbeatSeconds { get; init; }

Property Value

double?

InstanceId

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

Property Value

string

Owner

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

Property Value

string

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 IReadOnlyList<string>?, out IReadOnlyList<BowireCatalogueEntry>?, out double?)

public void Deconstruct(out string ServiceName, out string InstanceId, out string CallbackUrl, out string? Version, out string? Owner, out IReadOnlyList<string>? Tags, out IReadOnlyList<BowireCatalogueEntry>? Entries, out double? HeartbeatSeconds)

Parameters

ServiceName string
InstanceId string
CallbackUrl string
Version string
Owner string
Tags IReadOnlyList<string>
Entries IReadOnlyList<BowireCatalogueEntry>
HeartbeatSeconds double?

Equals(BowireAgentRegistration?)

public bool Equals(BowireAgentRegistration? other)

Parameters

other BowireAgentRegistration

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

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

Parameters

left BowireAgentRegistration
right BowireAgentRegistration

Returns

bool

operator !=(BowireAgentRegistration?, BowireAgentRegistration?)

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

Parameters

left BowireAgentRegistration
right BowireAgentRegistration

Returns

bool