< Summary

Class:Azure.Storage.Files.DataLake.Models.DataLakeQueryOptions
Assembly:Azure.Storage.Files.DataLake
File(s):C:\Git\azure-sdk-for-net\sdk\storage\Azure.Storage.Files.DataLake\src\Models\DataLakeQueryOptions.cs
Covered lines:7
Uncovered lines:6
Coverable lines:13
Total lines:63
Line coverage:53.8% (7 of 13)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_InputTextConfiguration()-0%100%
get_OutputTextConfiguration()-0%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.Files.DataLake\src\Models\DataLakeQueryOptions.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System;
 5using System.Collections.Generic;
 6using System.Text;
 7
 8namespace Azure.Storage.Files.DataLake.Models
 9{
 10    /// <summary>
 11    /// Optional parameters for <see cref="DataLakeFileClient.QueryAsync(string, DataLakeQueryOptions, System.Threading.
 12    /// </summary>
 13    public class DataLakeQueryOptions
 14    {
 15        /// <summary>
 16        /// Optional input text configuration.
 17        /// </summary>
 018        public IDataLakeQueryTextOptions InputTextConfiguration { get; set; }
 19
 20        /// <summary>
 21        /// Optional output text configuration.
 22        /// </summary>
 023        public IDataLakeQueryTextOptions OutputTextConfiguration { get; set; }
 24
 25        /// <summary>
 26        /// Lock for ErrorHandler add and remove.
 27        /// </summary>
 5228        private readonly object _objectLock = new object();
 29
 30        /// <summary>
 31        /// Optional error handler.
 32        /// </summary>
 33        public event Action<DataLakeQueryError> ErrorHandler
 34        {
 35            add
 36            {
 437                lock (_objectLock)
 38                {
 439                    _errorHandler += value;
 440                }
 441            }
 42            remove
 43            {
 044                lock (_objectLock)
 45                {
 046                    _errorHandler -= value;
 047                }
 048            }
 49        }
 50
 51        internal Action<DataLakeQueryError> _errorHandler;
 52
 53        /// <summary>
 54        /// Optional <see cref="DataLakeRequestConditions"/> to add conditions on the query.
 55        /// </summary>
 9656        public DataLakeRequestConditions Conditions { get; set; }
 57
 58        /// <summary>
 59        /// Optional progress handler.
 60        /// </summary>
 5661        public IProgress<long> ProgressHandler { get; set; }
 62    }
 63}