How to configure services in my cli application: - C#