перевод на передачу с обозначением схемы
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Example.Shared\Example.Shared.csproj" />
|
||||
<ProjectReference Include="..\Example.Shared\Example.Shared.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user