/*============================================================================*/ /* Public Functions */ /*============================================================================*/ public void Extend(IContext context) { _context = context; _injector = context.injector; _logger = context.GetLogger(this); if (_injector.HasDirectMapping (typeof(IViewStateWatcher))) { _contextViewStateWatcher = _injector.GetMapping (typeof(IViewStateWatcher)) as IViewStateWatcher; Init (); } else { _context.AfterInitializing (BeforeInitializing); } _injector.Map(typeof(IModuleConnector)).ToSingleton(typeof(ModuleConnector)); }