 | TemporalClientRegisterNamespaceAsync Method |
Registers a Temporal namespace using the specified parameters.
Namespace:
Neon.Temporal
Assembly:
Neon.Temporal (in Neon.Temporal.dll) Version: 2.14.0-alpha
Syntaxpublic Task RegisterNamespaceAsync(
string name,
string description = null,
string ownerEmail = null,
int retentionDays = 7,
bool ignoreDuplicates = false
)
Public Function RegisterNamespaceAsync (
name As String,
Optional description As String = Nothing,
Optional ownerEmail As String = Nothing,
Optional retentionDays As Integer = 7,
Optional ignoreDuplicates As Boolean = false
) As Task
public:
Task^ RegisterNamespaceAsync(
String^ name,
String^ description = nullptr,
String^ ownerEmail = nullptr,
int retentionDays = 7,
bool ignoreDuplicates = false
)
member RegisterNamespaceAsync :
name : string *
?description : string *
?ownerEmail : string *
?retentionDays : int *
?ignoreDuplicates : bool
(* Defaults:
let _description = defaultArg description null
let _ownerEmail = defaultArg ownerEmail null
let _retentionDays = defaultArg retentionDays 7
let _ignoreDuplicates = defaultArg ignoreDuplicates false
*)
-> Task
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:
TaskThe tracking
Task.
Exceptions
See Also