|
|
@ -70,8 +70,8 @@ namespace Trash
|
|
|
|
.As<IActiveServiceCommandProvider>()
|
|
|
|
.As<IActiveServiceCommandProvider>()
|
|
|
|
.SingleInstance();
|
|
|
|
.SingleInstance();
|
|
|
|
|
|
|
|
|
|
|
|
builder.Register(c => new Lazy<IServiceCommand>(
|
|
|
|
builder.Register(c => c.Resolve<IActiveServiceCommandProvider>().ActiveCommand)
|
|
|
|
() => c.Resolve<IActiveServiceCommandProvider>().ActiveCommand));
|
|
|
|
.As<IServiceCommand>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static IContainer Setup()
|
|
|
|
public static IContainer Setup()
|
|
|
|