< Summary

Class:Azure.Storage.Blobs.Models.BlobQueryOptions
Assembly:Azure.Storage.Blobs
File(s):C:\Git\azure-sdk-for-net\sdk\storage\Azure.Storage.Blobs\src\Models\BlobQueryOptions.cs
Covered lines:9
Uncovered lines:4
Coverable lines:13
Total lines:67
Line coverage:69.2% (9 of 13)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_InputTextConfiguration()-100%100%
get_OutputTextConfiguration()-100%100%
.ctor()-100%100%
add_ErrorHandler(...)-100%100%
remove_ErrorHandler(...)-0%100%
get_Conditions()-100%100%
get_ProgressHandler()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\storage\Azure.Storage.Blobs\src\Models\BlobQueryOptions.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System;
 5using Azure.Storage.Blobs.Specialized;
 6using System.Collections.Generic;
 7using System.Text;
 8
 9namespace Azure.Storage.Blobs.Models
 10{
 11    /// <summary>
 12    /// Optional parameters for <see cref="BlockBlobClient.QueryAsync(string, BlobQueryOptions, System.Threading.Cancell
 13    /// </summary>
 14    public class BlobQueryOptions
 15    {
 16        /// <summary>
 17        /// Optional input text configuration.
 18        /// </summary>
 10419        public IBlobQueryTextOptions InputTextConfiguration { get; set; }
 20
 21        /// <summary>
 22        /// Optional output text configuration.
 23        /// </summary>
 10424        public IBlobQueryTextOptions OutputTextConfiguration { get; set; }
 25
 26        /// <summary>
 27        /// Lock for ErrorHandler add and remove.
 28        /// </summary>
 11229        private readonly object _objectLock = new object();
 30
 31        /// <summary>
 32        /// Optional callback for error handling.
 33        /// </summary>
 34        public event Action<BlobQueryError> ErrorHandler
 35        {
 36            add
 37            {
 838                lock (_objectLock)
 39                {
 840                    _errorHandler += value;
 841                }
 842            }
 43            remove
 44            {
 045                lock (_objectLock)
 46                {
 047                    _errorHandler -= value;
 048                }
 049            }
 50        }
 51
 52        /// <summary>
 53        /// Internal error handler.
 54        /// </summary>
 55        internal Action<BlobQueryError> _errorHandler;
 56
 57        /// <summary>
 58        /// Optional <see cref="BlobRequestConditions"/> to add conditions on the query.
 59        /// </summary>
 77660        public BlobRequestConditions Conditions { get; set; }
 61
 62        /// <summary>
 63        /// Optional progress handler.
 64        /// </summary>
 12465        public IProgress<long> ProgressHandler { get; set; }
 66    }
 67}