private async Task EnsureStream()
 {
     try
     {
         await _client.DescribeStreamSummaryAsync(new DescribeStreamSummaryRequest()
         {
             StreamName = _streamName
         });
     }
     catch (ResourceNotFoundException)
     {
         await CreateStream();
     }
 }