public static object ResolveDummyPopulation(IContainer container) { using (var scope = container.OpenScope()) { scope.Resolve <D1>(); scope.Resolve <D2>(); scope.Resolve <D3>(); scope.Resolve <D4>(); scope.Resolve <D5>(); scope.Resolve <D6>(); scope.Resolve <D7>(); scope.Resolve <D8>(); scope.Resolve <D9>(); scope.Resolve <D10>(); scope.Resolve <D11>(); scope.Resolve <D12>(); scope.Resolve <D13>(); scope.Resolve <D14>(); scope.Resolve <D15>(); scope.Resolve <D16>(); scope.Resolve <D17>(); scope.Resolve <D18>(); scope.Resolve <D19>(); return(scope.Resolve <D20>()); } }
public static object Measure(IContainer container) { using (var scope = container.OpenScope()) return(scope.Resolve <R>()); }
public IResolveScope CreateScope(string scopeName = "") { var newScope = _scope.OpenScope(scopeName); return(new DryIocScope(newScope)); }