コード例 #1
0
 public IServiceScope CreateScope()
 {
     try
     {
         return(_currentResolver.CreateChildScope(_rootScopeFactory));
     }
     catch (ContainerException ex) when(ex.Error == Error.ContainerIsDisposed)
     {
         throw new HostDisposedException(_currentResolver.GetType().FullName, ex);
     }
 }
コード例 #2
0
 public IServiceScope CreateScope()
 {
     return(_currentResolver.CreateChildScope(_rootScopeFactory));
 }