Skip to content

Commit 42a67d3

Browse files
committed
Merge branch 'master' into GuiTuning
2 parents 4b7306c + 26e2a99 commit 42a67d3

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)