Is there a way to dispose objects after creating them using the implementationFactory? Like so:
services.AddTransient(x => { var objectA = new Objec