Table of Contents

Method AddGroupAsync

Namespace
NATS.Client.Services
Assembly
NATS.Client.Services.dll

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 string

Name of the group.

queueGroup string

Queue group name.

cancellationToken CancellationToken

A CancellationToken may be used to cancel th call in the future.

Returns

ValueTask<NatsSvcServer.Group>

A ValueTask representing the asynchronous operation.