Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 56b2ce0

Browse files
Updating ApplicationConfiguration webTimeout from settings
1 parent 951ffdb commit 56b2ce0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/GitHub.Api/Application/ApplicationManagerBase.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ protected void Initialize()
4242
Platform = new Platform(Environment);
4343

4444
LogHelper.TracingEnabled = UserSettings.Get(Constants.TraceLoggingKey, false);
45+
46+
int webTimeout;
47+
if (int.TryParse(UserSettings.Get(Constants.WebTimeoutKey), out webTimeout))
48+
{
49+
ApplicationConfiguration.WebTimeout = webTimeout;
50+
}
51+
4552
ProcessManager = new ProcessManager(Environment, Platform.GitEnvironment, CancellationToken);
4653
Platform.Initialize(ProcessManager, TaskManager);
4754
GitClient = new GitClient(Environment, ProcessManager, TaskManager.Token);

0 commit comments

Comments
 (0)