forked from beetlex-io/ec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathECServer.cs
38 lines (34 loc) · 906 Bytes
/
ECServer.cs
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace EC
{
public class ECServer
{
public static IApplication Open()
{
IApplication app= new Implement.Application();
app.Open();
return app;
}
public static IApplication Open(int port)
{
return Open(null, port);
}
public static IApplication Open(string host, int port)
{
IApplication application = new Implement.Application();
application.Host = host;
application.Port = port;
application.Open();
return application;
}
public static IApplication Open(string section)
{
IApplication app= new Implement.Application(section);
app.Open();
return app;
}
}
}