Class WebhookDefinitionBuilder
Represents an implementation of IWebhookDefinitionBuilder.
public class WebhookDefinitionBuilder : IWebhookDefinitionBuilder
- Inheritance
-
WebhookDefinitionBuilder
- Implements
- Inherited Members
Constructors
WebhookDefinitionBuilder(IEventTypes)
Represents an implementation of IWebhookDefinitionBuilder.
public WebhookDefinitionBuilder(IEventTypes eventTypes)
Parameters
eventTypesIEventTypesThe IEventTypes.
Methods
Build(WebhookId, WebhookTargetUrl)
Builds the WebhookDefinition.
public WebhookDefinition Build(WebhookId id, WebhookTargetUrl targetUrl)
Parameters
idWebhookIdThe WebhookId.
targetUrlWebhookTargetUrlThe WebhookTargetUrl.
Returns
- WebhookDefinition
The built WebhookDefinition.
NotActive()
Specifies that the webhook is not active.
public IWebhookDefinitionBuilder NotActive()
Returns
- IWebhookDefinitionBuilder
The IWebhookDefinitionBuilder builder for continuation.
NotReplayable()
Specifies that the webhook is not replayable.
public IWebhookDefinitionBuilder NotReplayable()
Returns
- IWebhookDefinitionBuilder
The IWebhookDefinitionBuilder builder for continuation.
OnEventSequence(EventSequenceId)
Sets the EventSequenceId that the webhook observer should be registered on.
public IWebhookDefinitionBuilder OnEventSequence(EventSequenceId eventSequenceId)
Parameters
eventSequenceIdEventSequenceIdThe EventSequenceId.
Returns
- IWebhookDefinitionBuilder
The IWebhookDefinitionBuilder builder for continuation.
WithBasicAuth(string, string)
Use basic authentication.
public IWebhookDefinitionBuilder WithBasicAuth(string username, string password)
Parameters
Returns
- IWebhookDefinitionBuilder
The IWebhookDefinitionBuilder builder for continuation.
WithBearerToken(string)
Use bearer token authentication.
public IWebhookDefinitionBuilder WithBearerToken(string token)
Parameters
tokenstringThe bearer token.
Returns
- IWebhookDefinitionBuilder
The IWebhookDefinitionBuilder builder for continuation.
WithEventType<TEventType>()
Adds an event type to the webhook observer.
public IWebhookDefinitionBuilder WithEventType<TEventType>()
Returns
- IWebhookDefinitionBuilder
The IWebhookDefinitionBuilder builder for continuation.
Type Parameters
TEventTypeThe Type of the event type.
WithHeader(string, string)
Adds a header to the webhook requests.
public IWebhookDefinitionBuilder WithHeader(string key, string value)
Parameters
Returns
- IWebhookDefinitionBuilder
The IWebhookDefinitionBuilder builder for continuation.