public void Configure(IComponentsApplicationBuilder app) { app.AddComponent <App>("app"); app.RegisterWidgetVariants(); // Instanciate WidgetManagementService app.Services.GetRequiredService <IWidgetManagementService>(); }