本文整理汇总了C#中Autofac.ContainerBuilder.RegisterZetboxImplementors方法的典型用法代码示例。如果您正苦于以下问题:C# ContainerBuilder.RegisterZetboxImplementors方法的具体用法?C# ContainerBuilder.RegisterZetboxImplementors怎么用?C# ContainerBuilder.RegisterZetboxImplementors使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Autofac.ContainerBuilder
的用法示例。
在下文中一共展示了ContainerBuilder.RegisterZetboxImplementors方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Load
protected override void Load(ContainerBuilder moduleBuilder)
{
base.Load(moduleBuilder);
moduleBuilder.RegisterModule<Zetbox.App.Tests.Common.CustomCommonTestActionsModule>();
moduleBuilder.RegisterZetboxImplementors(typeof(CustomServerTestActionsModule).Assembly);
}
示例2: Load
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();
}
示例3: Load
protected override void Load(ContainerBuilder moduleBuilder)
{
base.Load(moduleBuilder);
moduleBuilder.RegisterZetboxImplementors(typeof(CustomCommonActionsModule).Assembly);
// Register explicit overrides here
}
示例4: Load
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);
}
示例5: Load
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
}
示例6: Load
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();
}
示例7: Load
protected override void Load(ContainerBuilder moduleBuilder)
{
base.Load(moduleBuilder);
moduleBuilder.RegisterZetboxImplementors(typeof(AssetsModule).Assembly);
}