Click or drag to resize

TemporalClientRegisterNamespaceAsync Method

Registers a Temporal namespace using the specified parameters.

Namespace:  Neon.Temporal
Assembly:  Neon.Temporal (in Neon.Temporal.dll) Version: 2.10.0-alpha
Syntax
public Task RegisterNamespaceAsync(
	string name,
	string description = null,
	string ownerEmail = null,
	int retentionDays = 7,
	bool ignoreDuplicates = false
)

Parameters

name
Type: SystemString
The namespace name.
description (Optional)
Type: SystemString
Optionally specifies a description.
ownerEmail (Optional)
Type: SystemString
Optionally specifies the owner's email address.
retentionDays (Optional)
Type: SystemInt32
Optionally specifies the number of days to retain the history for workflows completed in this namespace. This defaults to 7 days and may be as long as 30 days.
ignoreDuplicates (Optional)
Type: SystemBoolean
Optionally ignore duplicate namespace registrations. This defaults to false.

Return Value

Type: Task
The tracking Task.
Exceptions
ExceptionCondition
NamespaceAlreadyExistsExceptionThrown if the namespace already exists.
BadRequestExceptionThrown when the request is invalid.
InternalServiceExceptionThrown for internal Temporal cluster problems.
ServiceBusyExceptionThrown when Temporal is too busy.
See Also