1- using CommandWorld . wit . exports . wasi . cli . v0_2_0 ;
1+ using CommandWorld . wit . Exports . wasi . cli . v0_2_0 ;
22using MyFuncsWorld ;
33using System . Text ;
44
5- namespace ProxyWorld . wit . exports . wasi . http . v0_2_0
5+ namespace ProxyWorld . wit . Exports . wasi . http . v0_2_0
66{
7- using ProxyWorld . wit . imports . wasi . http . v0_2_0 ;
8- public class IncomingHandlerImpl : IIncomingHandler
7+ using ProxyWorld . wit . Imports . wasi . http . v0_2_0 ;
8+ public class IncomingHandlerExportsImpl : IIncomingHandlerExports
99 {
10- public static void Handle ( ITypes . IncomingRequest request , ITypes . ResponseOutparam responseOut )
10+ public static void Handle ( ITypesImports . IncomingRequest request , ITypesImports . ResponseOutparam responseOut )
1111 {
1212 var content = Encoding . ASCII . GetBytes ( "Hello, from C#!" ) ;
1313 var headers = new List < ( string , byte [ ] ) > {
1414 ( "content-type" , Encoding . ASCII . GetBytes ( "text/plain" ) ) ,
1515 ( "content-length" , Encoding . ASCII . GetBytes ( content . Count ( ) . ToString ( ) ) )
1616 } ;
17- var response = new ITypes . OutgoingResponse ( ITypes . Fields . FromList ( headers ) ) ;
17+ var response = new ITypesImports . OutgoingResponse ( ITypesImports . Fields . FromList ( headers ) ) ;
1818 var body = response . Body ( ) ;
19- ITypes . ResponseOutparam . Set ( responseOut , Result < ITypes . OutgoingResponse , ITypes . ErrorCode > . Ok ( response ) ) ;
19+ ITypesImports . ResponseOutparam . Set ( responseOut , Result < ITypesImports . OutgoingResponse , ITypesImports . ErrorCode > . Ok ( response ) ) ;
2020 using ( var stream = body . Write ( ) )
2121 {
2222 stream . BlockingWriteAndFlush ( content ) ;
2323 }
24- ITypes . OutgoingBody . Finish ( body , null ) ;
24+ ITypesImports . OutgoingBody . Finish ( body , null ) ;
2525 }
2626 }
2727}
28- namespace CommandWorld . wit . exports . wasi . cli . v0_2_0
28+ namespace CommandWorld . wit . Exports . wasi . cli . v0_2_0
2929{
30- public class RunImpl : IRun
30+ public class RunExportsImpl : IRunExports
3131 {
3232 public static void Run ( )
3333 {
@@ -38,11 +38,11 @@ public static void Run()
3838
3939namespace MyFuncsWorld
4040{
41- public class MyFuncsWorldImpl : IMyFuncsWorld
41+ public class MyFuncsWorldExportsImpl : IMyFuncsWorldExports
4242 {
4343 public static int GetNumber ( )
4444 {
4545 return 123 ;
4646 }
4747 }
48- }
48+ }
0 commit comments