Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
46 lines (39 loc) · 1.11 KB

File metadata and controls

46 lines (39 loc) · 1.11 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using System.Threading;
using EventStore.Common.Utils;
using EventStore.Core;
namespace EventStore.TestClient
{
public class Program: ProgramBase<ClientOptions>
{
private Client _client;
public static int Main(string[] args)
{
var p = new Program();
return p.Run(args);
}
protected override string GetLogsDirectory(ClientOptions options)
{
return options.Log.IsNotEmptyString() ? options.Log : Helper.GetDefaultLogsDir();
}
protected override string GetComponentName(ClientOptions options)
{
return "client";
}
protected override void Create(ClientOptions options)
{
_client = new Client(options);
}
protected override void Start()
{
var exitCode = _client.Run();
if (!_client.InteractiveMode)
{
Thread.Sleep(500);
Application.Exit(exitCode, "Client non-interactive mode has exited.");
}
}
public override void Stop()
{
}
}
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.