Class SourceBearerTokenAuthorization

Namespace
Cratis.Chronicle.Concepts.Captures
Assembly
Cratis.Chronicle.dll

Represents bearer token authentication for a capture source.

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

Constructors

SourceBearerTokenAuthorization(SourceBearerTokenAuthorization)

protected SourceBearerTokenAuthorization(SourceBearerTokenAuthorization original)

Parameters

original SourceBearerTokenAuthorization

SourceBearerTokenAuthorization(string)

Represents bearer token authentication for a capture source.

public SourceBearerTokenAuthorization(string Token)

Parameters

Token string

The bearer token.

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Token

The bearer token.

public string Token { get; init; }

Property Value

string

Methods

Deconstruct(out string)

public void Deconstruct(out string Token)

Parameters

Token string

Equals(SourceBearerTokenAuthorization?)

public virtual bool Equals(SourceBearerTokenAuthorization? other)

Parameters

other SourceBearerTokenAuthorization

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

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

Parameters

left SourceBearerTokenAuthorization
right SourceBearerTokenAuthorization

Returns

bool

operator !=(SourceBearerTokenAuthorization?, SourceBearerTokenAuthorization?)

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

Parameters

left SourceBearerTokenAuthorization
right SourceBearerTokenAuthorization

Returns

bool