This project is read-only.

How to override IMembershipService implementation

Topics: Customizing Orchard
Nov 21, 2011 at 10:58 PM

In my custom module, I've implemented a new it as:




 public class CustomMembershipService : IMembershipService


 private readonly IOrchardServices _orchardServices;

private readonly IMessageManager _messageManager;

private readonly IEnumerable<IUserEventHandler> _userEventHandlers;

private readonly IEncryptionService _encryptionService;

public CustomMembershipService (

IOrchardServices orchardServices,

IMessageManager messageManager,

IEnumerable<IUserEventHandler> userEventHandlers,

IClock clock,

IEncryptionService encryptionService

) //: base (orchardServices, messageManager, userEventHandlers, clock, encryptionService)


_orchardServices = orchardServices;

_messageManager = messageManager;

_userEventHandlers = userEventHandlers;

_encryptionService = encryptionService;

Logger = NullLogger.Instance;

T = NullLocalizer.Instance;


but it is not taking - any help would be greatly apreciated


Thank you

Nov 21, 2011 at 11:31 PM

It should work - how did you reference the Orchard.Users project? Check you did it as a project reference, not a dll reference.

Nov 22, 2011 at 1:17 PM

Thank you, you pointed me in the right direction, my project file was not it the correct location.