コード例 #1
0
        private CaliburnFramework(IServiceLocator serviceLocator, Action <IEnumerable <IComponentRegistration> > register)
        {
            this.serviceLocator = serviceLocator;
            this.register       = register;

            IoC.Initialize(serviceLocator);

            Instance   = this;
            ModuleHook = this;
        }
コード例 #2
0
 /// <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));
 }
コード例 #3
0
 /// <summary>
 /// Configures the core.
 /// </summary>
 /// <param name="hook">The hook.</param>
 /// <returns></returns>
 public static CoreConfiguration Core(this IModuleHook hook)
 {
     return(CaliburnModule <CoreConfiguration> .Instance);
 }
コード例 #4
0
 /// <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));
 }