コード例 #1
0
ファイル: CrawlerProto.cs プロジェクト: jaensen/graph-crawler
        public CrawlerProto(string url, string fileLocation, NodeCache nodesCache, EdgeCache edgesCache, ResourceCache resourceCache)
        {
            FileLocation = fileLocation;
            Url = url;

            NodesCache = nodesCache;
            EdgesCache = edgesCache;
            ResourceCache = resourceCache;
        }
コード例 #2
0
        public ControlService()
        {
            _logger = new ConsoleLogger ();
            _uniqueIdProvider = new IntUniqueIdProvider ();
            _dataDirectory = Properties.Settings.Default.DataDirectory;

            _nodes = new NodeCache ();
            _edges = new EdgeCache ();
            _resources = new ResourceCache ();

            EdgesFilename = Properties.Settings.Default.EdgesFilename;
            NodesFilename = Properties.Settings.Default.NodesFilename;
            ResourcesTableFilename = Properties.Settings.Default.ResourcesTableFilename;
            ResourcesFolder = Properties.Settings.Default.ResourcesFolder;
            ClientCodeFolder = Properties.Settings.Default.ClientCodeFolder;

            Load ();
        }
コード例 #3
0
        public CrawlerProto(string url, string fileLocation, NodeCache nodesCache, EdgeCache edgesCache, ResourceCache resourceCache)
        {
            FileLocation = fileLocation;
            Url          = url;

            NodesCache    = nodesCache;
            EdgesCache    = edgesCache;
            ResourceCache = resourceCache;
        }