Пример #1
0
 /// <summary>
 /// Runs a search using the search/jobs/export endpoint which streams
 /// results back via a <see cref="Stream"/>. 
 /// </summary>
 /// <param name="search">The search query string.</param>
 /// <param name="args">The search arguments.</param>
 /// <returns>The results stream.</returns>
 public Stream Export(string search, JobExportArgs args)
 {
     return Export(search, (Args) args);
 }
Пример #2
0
        public void RemoteServerList()
        {
            const string ParamName = "remote_server_list";
            var array = new string[] { "first", "second" };

            var args1 = new JobArgs
                {
                    RemoteServerList = array,
                };

            Assert.AreEqual("first,second", args1[ParamName]);

            var args2 = new JobExportArgs
            {
                RemoteServerList = array,
            };

            Assert.AreEqual("first,second", args2[ParamName]);
        }
Пример #3
0
 /// <summary>
 /// Runs a search using the search/jobs/export endpoint which streams
 /// results back via a <see cref="Stream"/>.
 /// </summary>
 /// <param name="search">The search query string.</param>
 /// <param name="args">The search arguments.</param>
 /// <returns>The results stream.</returns>
 public Stream Export(string search, JobExportArgs args)
 {
     return(Export(search, (Args)args));
 }