15 lines
334 B
C#
15 lines
334 B
C#
using Example.Backend;
|
|
using Example.Shared;
|
|
using mROA.Implementation;
|
|
using mROA.Implementation.Attributes;
|
|
|
|
namespace Example.Backend;
|
|
|
|
[SharedObjectSingleton]
|
|
public class PrinterFactory : IPrinterFactory
|
|
{
|
|
public SharedObject<IPrinter> Create(string printerName)
|
|
{
|
|
return new Printer {Name = printerName};
|
|
}
|
|
} |