работает при разделенной абстракции и реализации
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using Example.Backend;
|
||||
using Example.Shared;
|
||||
using mROA.Implementation;
|
||||
|
||||
namespace Example.Backend;
|
||||
|
||||
[SharedObjectSingleton]
|
||||
public class PrinterFactory : IPrinterFactory
|
||||
{
|
||||
public TransmittedSharedObject<IPrinter> Create(string printerName)
|
||||
{
|
||||
return new Printer(){Name = printerName};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user