File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -38,12 +38,25 @@ https://www.nuget.org/packages/MossbauerLab.TinyTcpServer.Core/
38
38
39
39
public void Init()
40
40
{
41
+ CompilerOptions options = new CompilerOptions();
42
+ CSharpCodeProvider provider = new CSharpCodeProvider(new Dictionary<String, String>()
43
+ {
44
+ {"CompilerVersion", "v4.0"}
45
+ });
46
+ options.Parameters = new CompilerParameters(new string[] {"System.Web"});
47
+ options.Parameters.GenerateExecutable = false;
48
+ options.Parameters.GenerateInMemory = true;
49
+ options.ScriptEntryType = "TestEchoScript.EchoScript";
50
+
41
51
_server = new FlexibleTcpServer(Script, LocalIpAddress, ServerPort);
42
52
}
43
53
`
44
54
45
- That is all ! all logics is inside you script
46
- There are requirement to presence of initial class and entry method
55
+ /* That is all ! all logics is inside you script
56
+ There are requirement to presence of initial class and entry method. Full examples could be found in
57
+ - MossbauerLab.TinyTcpServer.Core.FunctionalTests/Server/TestFlexibleTcpServer.cs
58
+ - In Console and GUI projects with Utils class for getting CompilerOptions and TcpServerConfig from very simple files (Key=Value)
59
+ * /
47
60
48
61
`
49
62
You can’t perform that action at this time.
0 commit comments