Table of Contents

Class WebhookTarget

Namespace
Cratis.Chronicle.Webhooks
Assembly
Cratis.Chronicle.dll

Represents the target of a webhook.

public record WebhookTarget : IEquatable<WebhookTarget>
Inheritance
WebhookTarget
Implements
Inherited Members

Constructors

WebhookTarget(WebhookTargetUrl, OneOf<BasicAuthorization, BearerTokenAuthorization, OAuthAuthorization, None>, IReadOnlyDictionary<string, string>)

Represents the target of a webhook.

public WebhookTarget(WebhookTargetUrl Url, OneOf<BasicAuthorization, BearerTokenAuthorization, OAuthAuthorization, None> Authorization, IReadOnlyDictionary<string, string> Headers)

Parameters

Url WebhookTargetUrl

The WebhookTargetUrl.

Authorization OneOf<BasicAuthorization, BearerTokenAuthorization, OAuthAuthorization, None>

The authorization method.

Headers IReadOnlyDictionary<string, string>

The headers.

Properties

Authorization

The authorization method.

public OneOf<BasicAuthorization, BearerTokenAuthorization, OAuthAuthorization, None> Authorization { get; init; }

Property Value

OneOf<BasicAuthorization, BearerTokenAuthorization, OAuthAuthorization, None>

Headers

The headers.

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

Property Value

IReadOnlyDictionary<string, string>

Url

public WebhookTargetUrl Url { get; init; }

Property Value

WebhookTargetUrl