How do I call Initialize on a custom MembershipProvider?

前端 未结 8 745
死守一世寂寞
死守一世寂寞 2020-12-08 08:17

I have read through all the related questions, but I still unable to get the right solution for some reason, something is not right on my side, but not sure what\'s causing

8条回答
  •  情话喂你
    2020-12-08 09:00

    this forces the initialize to be called

    private readonly Provider _provider;
    
    public AccountMembershipService(Provider provider)
    {
       _provider = provider ?? (Provider) Membership.Provider;
    }
    

提交回复
热议问题