This repository was archived by the owner on Mar 5, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,12 +38,25 @@ https://www.nuget.org/packages/MossbauerLab.TinyTcpServer.Core/
3838
3939 public void Init()
4040 {
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+
4151 _server = new FlexibleTcpServer(Script, LocalIpAddress, ServerPort);
4252 }
4353`
4454
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+ * /
4760
4861`
4962
You can’t perform that action at this time.
0 commit comments