Skip to content

Commit

Permalink
Merge pull request #48 from wemogy/fix/dispose
Browse files Browse the repository at this point in the history
Fixed JobActivator to dispose all disposable services of scope
  • Loading branch information
SebastianKuesters authored May 30, 2023
2 parents 31a3328 + ff9de7d commit 09d3a82
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,11 @@ public override object Resolve(Type type)
var inst = ActivatorUtilities.CreateInstance(_serviceScope.ServiceProvider, type);
return inst;
}

public override void DisposeScope()
{
_serviceScope.Dispose();
base.DisposeScope();
}
}
}

0 comments on commit 09d3a82

Please sign in to comment.