BlobQueryOptions
Optional parameters for QueryAsync.
using System;
namespace Azure.Storage.Blobs.Models
{
public class BlobQueryOptions
{
private readonly object _objectLock = new object();
internal Action<BlobQueryError> _errorHandler;
public BlobQueryTextOptions InputTextConfiguration { get; set; }
public BlobQueryTextOptions OutputTextConfiguration { get; set; }
public BlobRequestConditions Conditions { get; set; }
public IProgress<long> ProgressHandler { get; set; }
public event Action<BlobQueryError> ErrorHandler {
add {
lock (_objectLock) {
_errorHandler = (Action<BlobQueryError>)Delegate.Combine(_errorHandler, value);
}
}
remove {
lock (_objectLock) {
_errorHandler = (Action<BlobQueryError>)Delegate.Remove(_errorHandler, value);
}
}
}
}
}