Exemplo n.º 1
0
        public void Scoped()
        {
            //using (var scope = _scopeFactory.CreateScope())
            //{
            var scope = _scopeFactory.CreateScope();

            _auditInfoService = scope.ServiceProvider.GetRequiredService <AuditInfoService>();

            //}
            // Other code
        }
 public AuditInfoController(AuditInfoService service)
 {
     _service = service;
 }