protected override async Task UnsubscribeAsync(string correlationId) { // Check if already were unsubscribed if (!_subscribed) { return; } // Unsubscribe from the topic var topic = GetTopic(); await _connection.UnsubscribeAsync(topic, this); _subscribed = false; }