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
- Extension Methods
Constructors
WebhookTarget(WebhookTarget)
protected WebhookTarget(WebhookTarget original)
Parameters
originalWebhookTarget
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
UrlWebhookTargetUrlThe WebhookTargetUrl.
AuthorizationOneOf<BasicAuthorization, BearerTokenAuthorization, OAuthAuthorization, None>The authorization method.
HeadersIReadOnlyDictionary<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>
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Headers
The headers.
public IReadOnlyDictionary<string, string> Headers { get; init; }
Property Value
Url
The WebhookTargetUrl.
public WebhookTargetUrl Url { get; init; }
Property Value
Methods
Deconstruct(out WebhookTargetUrl, out OneOf<BasicAuthorization, BearerTokenAuthorization, OAuthAuthorization, None>, out IReadOnlyDictionary<string, string>)
public void Deconstruct(out WebhookTargetUrl Url, out OneOf<BasicAuthorization, BearerTokenAuthorization, OAuthAuthorization, None> Authorization, out IReadOnlyDictionary<string, string> Headers)
Parameters
UrlWebhookTargetUrlAuthorizationOneOf<BasicAuthorization, BearerTokenAuthorization, OAuthAuthorization, None>HeadersIReadOnlyDictionary<string, string>
Equals(WebhookTarget?)
public virtual bool Equals(WebhookTarget? other)
Parameters
otherWebhookTarget
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(WebhookTarget?, WebhookTarget?)
public static bool operator ==(WebhookTarget? left, WebhookTarget? right)
Parameters
leftWebhookTargetrightWebhookTarget
Returns
operator !=(WebhookTarget?, WebhookTarget?)
public static bool operator !=(WebhookTarget? left, WebhookTarget? right)
Parameters
leftWebhookTargetrightWebhookTarget