Inheritance: TimeseriesCommandOptions
        /// <summary>
        /// Initializes a new instance of the <see cref="ByKeyCommand{TResponse}"/> class.
        /// </summary>
        /// <param name="options">Options for this operation. See <see cref="ByKeyOptions"/></param>
        public ByKeyCommand(ByKeyOptions options)
            : base(options)
        {
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

            if (options.Key == null)
            {
                throw new ArgumentNullException("options.Key", "options.Key can not be null");
            }

            if (EnumerableUtil.IsNullOrEmpty(options.Key.Cells))
            {
                throw new ArgumentNullException("options.Key.Cells", "options.Key.Cells can not be null or empty");
            }
        }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Delete"/> class.
 /// </summary>
 /// <param name="options">Options for this operation. See <see cref="ByKeyOptions"/></param>
 public Delete(ByKeyOptions options)
     : base(options)
 {
 }
 protected override void PopulateOptions(ByKeyOptions options)
 {
     options.Key     = key;
     options.Timeout = timeout;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Get"/> class.
 /// </summary>
 /// <param name="options">Options for this operation. See <see cref="ByKeyOptions"/></param>
 public Get(ByKeyOptions options)
     : base(options)
 {
 }