void IModule.Configure(IProfile Profile) { _profile = Profile as JudgerProfile; if (_profile == null) { ExceptionManager.Throw(new CreateAndConfigureModuleException("Configure DefaultJudger failed: Profile is null.", null)); } try { _judge_path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, _profile.JudgeDirectory); if (!_judge_path.EndsWith("\\") && !_judge_path.EndsWith("/")) { _judge_path += "\\"; } try { Directory.Delete(_judge_path, true); } catch { } Directory.CreateDirectory(_judge_path); AffinityManager = new ProcessorAffinityManager(); } catch (Exception ex) { ExceptionManager.Throw(new CreateAndConfigureModuleException("Configure DefaultJudger failed.", ex)); } }
void IModule.Configure(IProfile Profile) { _profile = Profile as JudgerProfile; if (_profile == null) ExceptionManager.Throw(new CreateAndConfigureModuleException("Configure DefaultJudger failed: Profile is null.", null)); try { _judge_path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, _profile.JudgeDirectory); if (!_judge_path.EndsWith("\\") && !_judge_path.EndsWith("/")) _judge_path += "\\"; try { Directory.Delete(_judge_path, true); } catch { } Directory.CreateDirectory(_judge_path); AffinityManager = new ProcessorAffinityManager(); } catch (Exception ex) { ExceptionManager.Throw(new CreateAndConfigureModuleException("Configure DefaultJudger failed.", ex)); } }