Class HttpConnectionRequest

Namespace
Cratis.Arc.Connections
Assembly
Cratis.Arc.Core.dll

Represents the body HttpConnectionResolver posts to its endpoint.

public record HttpConnectionRequest : IEquatable<HttpConnectionRequest>
Inheritance
HttpConnectionRequest
Implements
Inherited Members
Extension Methods

Constructors

HttpConnectionRequest(HttpConnectionRequest)

protected HttpConnectionRequest(HttpConnectionRequest original)

Parameters

original HttpConnectionRequest

HttpConnectionRequest(string, ConnectionPurpose, IReadOnlyDictionary<string, string>)

Represents the body HttpConnectionResolver posts to its endpoint.

public HttpConnectionRequest(string Storage, ConnectionPurpose Purpose, IReadOnlyDictionary<string, string> Scope)

Parameters

Storage string

The kind of storage to connect to.

Purpose ConnectionPurpose

The ConnectionPurpose of the connection.

Scope IReadOnlyDictionary<string, string>

The values identifying what is being connected.

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Purpose

The ConnectionPurpose of the connection.

public ConnectionPurpose Purpose { get; init; }

Property Value

ConnectionPurpose

Scope

The values identifying what is being connected.

public IReadOnlyDictionary<string, string> Scope { get; init; }

Property Value

IReadOnlyDictionary<string, string>

Storage

The kind of storage to connect to.

public string Storage { get; init; }

Property Value

string

Methods

Deconstruct(out string, out ConnectionPurpose, out IReadOnlyDictionary<string, string>)

public void Deconstruct(out string Storage, out ConnectionPurpose Purpose, out IReadOnlyDictionary<string, string> Scope)

Parameters

Storage string
Purpose ConnectionPurpose
Scope IReadOnlyDictionary<string, string>

Equals(HttpConnectionRequest?)

public virtual bool Equals(HttpConnectionRequest? other)

Parameters

other HttpConnectionRequest

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(HttpConnectionRequest?, HttpConnectionRequest?)

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

Parameters

left HttpConnectionRequest
right HttpConnectionRequest

Returns

bool

operator !=(HttpConnectionRequest?, HttpConnectionRequest?)

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

Parameters

left HttpConnectionRequest
right HttpConnectionRequest

Returns

bool