You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case of Repository we created for working with customer (Work with Web APIs), we added service Scoped implementation of it to our container. Since we create it to use cache dictionary and it should persist over different requests, Why we could not injected it Singleton?
Thanks in advance services.AddScoped<ICustomerRepository, CustomerRepository>();
The text was updated successfully, but these errors were encountered:
In case of Repository we created for working with customer (Work with Web APIs), we added service Scoped implementation of it to our container. Since we create it to use cache dictionary and it should persist over different requests, Why we could not injected it Singleton?
Thanks in advance
services.AddScoped<ICustomerRepository, CustomerRepository>();
The text was updated successfully, but these errors were encountered: