public async Task <Queu> GetDefinition(CancellationToken cancellationToken = default)
 {
     using (Microsoft.Rest.HttpOperationResponse <object> response = await this.passiveMqApi.GetQueuByNameWithHttpMessagesAsync(this.queuName, null, cancellationToken).ConfigureAwait(false))
     {
         Models.QueuDto dto = response.AsResult <Models.QueuDto>();
         return(Queu.FromDto(dto));
     }
 }
        private async Task <Guid> EndshureQueuId(CancellationToken cancellationToken = default)
        {
            if (!this.queuId.HasValue)
            {
                using (Microsoft.Rest.HttpOperationResponse <object> response = await this.passiveMqApi.GetQueuByNameWithHttpMessagesAsync(this.queuName, null, cancellationToken).ConfigureAwait(false))
                {
                    Models.QueuDto dto = response.AsResult <Models.QueuDto>();
                    this.queuId = dto.Id;
                }
            }

            return(this.queuId.Value);
        }
        private async Task <Guid?> GetQueuId(CancellationToken cancellationToken = default)
        {
            using (Microsoft.Rest.HttpOperationResponse <object> response = await this.passiveMqApi.GetQueuByNameWithHttpMessagesAsync(this.queuName, null, cancellationToken).ConfigureAwait(false))
            {
                if (response.Response.StatusCode == System.Net.HttpStatusCode.NotFound)
                {
                    return(null);
                }

                Models.QueuDto dto = response.AsResult <Models.QueuDto>();
                return(dto.Id);
            }
        }