private void Dispose(bool aIsDisposing) { if (!Disposed) { if (aIsDisposing) { WebApplicationFactory?.Dispose(); ServiceScopeFactory?.Dispose(); } Disposed = true; } }
private void Dispose(bool aIsDisposing) { if (!Disposed) { if (aIsDisposing) { Console.WriteLine("==== Disposing ===="); WebApplicationFactory?.Dispose(); ServiceScopeFactory?.Dispose(); } Disposed = true; } }