private void ConfigureServices(ILog log) { NHibernateSessionManager sessionManager = CreateSessionManager(); var chatMemberRespository = new ChatMemberRespository(sessionManager); var linkLoggerRepository = new LinkLoggerRepository(sessionManager); var directory = ServiceLocator.Retrieve<IMemberDirectory>(); directory.Log = log; directory.AttachRepository(chatMemberRespository); var linkLogger = ServiceLocator.Retrieve<ILinkLogger>(); linkLogger.Log = log; linkLogger.AttachRepository(linkLoggerRepository); }
public void AttachRepository(LinkLoggerRepository repository) { _repository = repository; }