Files
DHTSpider/SimpleClient/Program.cs
T
2017-07-15 18:02:51 +08:00

33 lines
765 B
C#

using Spider;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SimpleClient
{
class Program
{
static void Main(string[] args)
{
var spider = SpiderConfiguration.Create(new SpiderSetting()
{
LocalPort = 6881,
IsSaveTorrent = true,
TorrentSavePath = "",
MaxSpiderThreadCount = 1,
MaxDownLoadThreadCount = 10
})
.UseDefaultCache()
.UseDefaultQueue()
//.UseRedisQueue()
//.UseElasticSearchStore()
.UseMongoDBStore()
.Start();
Console.ReadKey();
}
}
}