Using ` Microsoft.Extensions.DependencyInjection` in a library - C#