перевод на передачу с обозначением схемы

This commit is contained in:
2025-02-12 12:34:54 +03:00
parent 318484025d
commit 5032fa28e8
18 changed files with 143 additions and 62 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Example.Shared\Example.Shared.csproj" />
<ProjectReference Include="..\Example.Shared\Example.Shared.csproj" />
</ItemGroup>
</Project>
+1 -1
View File
@@ -16,7 +16,6 @@ mixer.Modules.Add(new FrontendContextRepository());
mixer.Modules.Add(new JsonFrontendSerialisationModule());
mixer.Modules.Add(new StreamBasedFrontendInteractionModule());
mixer.Modules.Add(new NetworkFrontendBridge(new IPEndPoint(IPAddress.Loopback, 4567)));
mixer.Build();
mixer.GetModule<NetworkFrontendBridge>().Connect();
@@ -25,6 +24,7 @@ var context = mixer.GetModule<FrontendContextRepository>();
var factory = context.GetSingleObject(typeof(IPrinterFactory)) as IPrinterFactory;
var printer = factory.Create("Test");
var name = printer.Value.GetName();
Console.WriteLine("Printer name : {0}", name);