public IServiceScope CreateScope() { try { return(_currentResolver.CreateChildScope(_rootScopeFactory)); } catch (ContainerException ex) when(ex.Error == Error.ContainerIsDisposed) { throw new HostDisposedException(_currentResolver.GetType().FullName, ex); } }
public IServiceScope CreateScope() { return(_currentResolver.CreateChildScope(_rootScopeFactory)); }