We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It seems cleaner to place our dependencies in a separate file so as not to overload the Statup.cs file.
Like this :
public void ConfigureServices(IServiceCollection services) { // ... DependenciesConfig.Configure(services, Configuration); }
DependenciesConfig.cs :
public static class DependenciesConfig { public static void Configure(IServiceCollection services, IConfiguration configuration) { services.AddTransient<ILoginService, LoginService>(); services.AddScoped<AuthenticationStateProvider, CustomAuthenticationStateProvider>(); services.AddHttpClient<IConnexionService, ConnexionService>(); services.AddHttpClient<IUserService, UserService>(); //... } }
The text was updated successfully, but these errors were encountered:
That might be a good idea (which I don't do). Do you know why?
Sorry, something went wrong.
No branches or pull requests
It seems cleaner to place our dependencies in a separate file so as not to overload the Statup.cs file.
Like this :
DependenciesConfig.cs :
The text was updated successfully, but these errors were encountered: