Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6391725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:43:35+00:00 2026-05-25T03:43:35+00:00

Some programmers access their IoC containers with static class methods. Is it just a

  • 0

Some programmers access their IoC containers with static class methods. Is it just a preference, or is it a requirement?

If my custom membership provider needs DataContext, how can I inject my DataContext into it without a static class?

My approach is to access my container via a static class inside of custom membership provider. Is it right solution?

If the static way is preferred, do I have to keep my base container in singleton scope and initialize it in Global.asax and always access my container via a static class?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T03:43:35+00:00Added an answer on May 25, 2026 at 3:43 am

    A static Service Locator is just never a good idea. The ASP.NET Provider model suffers from the Constrained Construction anti-pattern, as well as a host of other issues. It’s better to avoid if at all possible (it usually is).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to show programmers that some captchas are too weak, and i'm breaking
For some time I’ve seen employers demanding Sharepoint knowledge from programmers, but I have
i read some wisdom like this : Programmers are encouraged to be careful when
I have multiple programmers contributing examples for javadocs and some examples contain comments formatted
Can you suggest some good Javascript assignments/homework to C programmers , who are not
Sometimes it's difficult to describe some of the things that us programmers may think
Are there any PIC microcontroller programmers here? I'm learning some PIC microcontroller programming using
I have a challenge I need some input on. I am currently recruiting programmers
As the question says, what are some common/major issues that C++ programmers face when
I've just migrated from Access where I would write SQL constantly and quickly using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.