示例#1
0
		//
		// 创建对象
		//
		public FetcherMgrImpl(RestfulMgr restfulMgr, int retryTime, int retrySleepSeconds, bool enableLocalDownloadDirInClassPath, string localDownloadDir, string localDownloadDirTemp, IList<string> hostList)
		{

			this.restfulMgr = restfulMgr;

			this.retrySleepSeconds = retrySleepSeconds;
			this.retryTime = retryTime;
			this.enableLocalDownloadDirInClassPath = enableLocalDownloadDirInClassPath;
			this.localDownloadDir = localDownloadDir;
			this.localDownloadDirTemp = localDownloadDirTemp;
			OsUtil.makeDirs(this.localDownloadDir);

			this.hostList = hostList;
		}
示例#2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @BeforeClass public static void myInit()
		public static void myInit()
		{

			restfulMgr = new RestfulMgrImpl(new RetryStrategyRoundBin());
		}