Method AddGroupAsync
AddGroupAsync(string, string?, CancellationToken)
Adds a new service group with optional queue group.
public ValueTask<NatsSvcServer.Group> AddGroupAsync(string name, string? queueGroup = null, CancellationToken cancellationToken = default)
Parameters
name
stringName of the group.
queueGroup
stringOptional queue group name.
cancellationToken
CancellationTokenA CancellationToken may be used to cancel th call in the future.
Returns
- ValueTask<NatsSvcServer.Group>
A ValueTask representing the asynchronous operation.