Пример #1
0
 public string GetParentNameScoped()
 {
     using (var engine = ResolverContext.CreateNew())
     {
         var parentService = engine.Resolve <ParentService>();
         return(parentService.Name);
     }
 }