private CaliburnFramework(IServiceLocator serviceLocator, Action <IEnumerable <IComponentRegistration> > register) { this.serviceLocator = serviceLocator; this.register = register; IoC.Initialize(serviceLocator); Instance = this; ModuleHook = this; }
/// <summary> /// Adds the shell framework module's configuration to the system. /// </summary> /// <param name="hook">The hook.</param> public static ShellFrameworkConfiguration ShellFramework(this IModuleHook hook) { return(hook.Module(CaliburnModule <ShellFrameworkConfiguration> .Instance)); }
/// <summary> /// Configures the core. /// </summary> /// <param name="hook">The hook.</param> /// <returns></returns> public static CoreConfiguration Core(this IModuleHook hook) { return(CaliburnModule <CoreConfiguration> .Instance); }
/// <summary> /// Adds the presentation framework module's configuration to the system. /// </summary> /// <param name="hook">The hook.</param> public static PresentationFrameworkConfiguration PresentationFramework(this IModuleHook hook) { return(hook.Module(CaliburnModule <PresentationFrameworkConfiguration> .Instance)); }