Client useful method in instance repository added
This commit is contained in:
1 parent
4638692305
commit
8e37eda0ae
10 files changed
+40
-89
No files matched your search
@@ -46,8 +46,8 @@ class Program
|
||||
var context = builder.GetModule<RemoteInstanceRepository>();
|
||||
|
||||
var factory =
|
||||
context.GetSingleObject(typeof(IPrinterFactory),
|
||||
builder.GetModule<IEndPointContext>()) as IPrinterFactory;
|
||||
context.GetSingletonObject<IPrinterFactory>(
|
||||
builder.GetModule<IEndPointContext>());
|
||||
|
||||
using (var disposingPrinter = factory.Create("Test"))
|
||||
{
|
||||
@@ -115,7 +115,7 @@ class Program
|
||||
DemoCheck.Dispose = true;
|
||||
|
||||
|
||||
var loadSingleton = context.GetSingleObject(typeof(ILoadTest), builder.GetModule<IEndPointContext>()) as ILoadTest;
|
||||
var loadSingleton = context.GetSingletonObject<ILoadTest>(builder.GetModule<IEndPointContext>());
|
||||
|
||||
|
||||
var cts = new CancellationTokenSource();
|
||||
|
||||
Reference in new issue
Block a user