alternative to profileprovider in asp.net mvc -
i'm developing asp.net mvc site use custom profileprovider retrieve info (like last page visited, max number of record view in grid, notification via mail etc) related single user stored in custom database. don't technique because profileprovider not easely injectable, there alternative way obtains same functionality exposed profile provider? think possible use asp.net module i'm not expert.
i think tartafe means providers (also custom profileprovider) instantiated , controlled external code (system.web.configuration.providershelper).
the dependency injection pattern says objects custom provider relies on, should passed in controller (or container). cfr. dependency injection loose coupling). typically controller initialize repository, datacontext, or other object , pass in through constructor or property. not possible custom provider since 'controller' sealed in system.web.configuration.
i think question becomes: there way influence how providershelper instantiates , controls our custom providers?
Comments
Post a Comment