protected override void Load(ContainerBuilder moduleBuilder) { base.Load(moduleBuilder); moduleBuilder.RegisterModule<Zetbox.App.Tests.Common.CustomCommonTestActionsModule>(); moduleBuilder.RegisterZetboxImplementors(typeof(CustomServerTestActionsModule).Assembly); }
protected override void Load(ContainerBuilder moduleBuilder) { base.Load(moduleBuilder); moduleBuilder.RegisterModule<Zetbox.App.Projekte.Common.CustomCommonActionsModule>(); moduleBuilder.RegisterZetboxImplementors(typeof(CustomServerActionsModule).Assembly); // Register explicit overrides here moduleBuilder.RegisterCmdLineAction("rebuildtags", "Recreates the tag cache", scope => { using (var ctx = scope.Resolve<IZetboxServerContext>()) { var oneTag = ctx.GetQuery<Zetbox.App.GUI.TagCache>().FirstOrDefault(); if (oneTag == null) { oneTag = ctx.Create<Zetbox.App.GUI.TagCache>(); } oneTag.Rebuild(); if (string.IsNullOrWhiteSpace(oneTag.Name)) ctx.Delete(oneTag); ctx.SubmitChanges(); } }); moduleBuilder .RegisterType<Zetbox.App.Projekte.Server.Gui.TagCacheService>() .AsImplementedInterfaces() .SingleInstance(); }
protected override void Load(ContainerBuilder moduleBuilder) { base.Load(moduleBuilder); moduleBuilder.RegisterZetboxImplementors(typeof(CustomCommonActionsModule).Assembly); // Register explicit overrides here }
protected override void Load(ContainerBuilder moduleBuilder) { base.Load(moduleBuilder); moduleBuilder.RegisterModule<Zetbox.App.Projekte.Common.CustomCommonActionsModule>(); moduleBuilder.RegisterZetboxImplementors(typeof(CustomClientActionsModule).Assembly); moduleBuilder.RegisterViewModels(typeof(CustomClientActionsModule).Assembly); }
protected override void Load(ContainerBuilder moduleBuilder) { base.Load(moduleBuilder); moduleBuilder.RegisterZetboxImplementors(typeof(CommonModule).Assembly); // Register additional module dependencies, for example workflow and parties // moduleBuilder.RegisterModule<Zetbox.Workflow.Common.CommonModule>(); // moduleBuilder.RegisterModule<Zetbox.Parties.Common.CommonModule>(); // Register explicit overrides here }
protected override void Load(ContainerBuilder moduleBuilder) { base.Load(moduleBuilder); moduleBuilder.RegisterZetboxImplementors(typeof(CustomClientActionsModule).Assembly); moduleBuilder.RegisterViewModels(typeof(CustomClientActionsModule).Assembly); // Register explicit overrides here moduleBuilder .Register<Zetbox.App.Projekte.Client.Projekte.Reporting.ReportingHost>(c => new Zetbox.App.Projekte.Client.Projekte.Reporting.ReportingHost( "Zetbox.App.Projekte.Client.DerivedReportTest", typeof(CustomClientActionsModule).Assembly, c.Resolve<IFileOpener>(), c.Resolve<ITempFileService>() ) ) .InstancePerDependency(); }
protected override void Load(ContainerBuilder moduleBuilder) { base.Load(moduleBuilder); moduleBuilder.RegisterZetboxImplementors(typeof(AssetsModule).Assembly); }