本文整理汇总了C#中FubuMVC.Core.FubuRegistry.IncludeDiagnostics方法的典型用法代码示例。如果您正苦于以下问题:C# FubuRegistry.IncludeDiagnostics方法的具体用法?C# FubuRegistry.IncludeDiagnostics怎么用?C# FubuRegistry.IncludeDiagnostics使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FubuMVC.Core.FubuRegistry
的用法示例。
在下文中一共展示了FubuRegistry.IncludeDiagnostics方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: configure
protected override void configure(FubuRegistry registry)
{
registry.UseSpark();
registry.Actions.IncludeType<ProfileController>();
registry.Views.TryToAttachWithDefaultConventions();
registry.Views.Profile<Mobile>("m.");
registry.IncludeDiagnostics(true);
}
示例2: configure
protected override void configure(FubuRegistry registry)
{
registry.Actions.IncludeType<HelloRazorController>();
registry.IncludeDiagnostics(true);
//registry.UseSpark();
registry.UseRazor();
registry.Views
.TryToAttachWithDefaultConventions();
}
示例3: configure
protected override void configure(FubuRegistry registry)
{
registry.Actions.IncludeType<ClosestController>();
registry.Actions.IncludeType<UsesDefaultController>();
registry.IncludeDiagnostics(true);
registry.Import<RazorEngineRegistry>();
registry.Views
.TryToAttachWithDefaultConventions();
}
示例4: BeforeEach
public void BeforeEach()
{
_parent = new FubuRegistry();
_parent.IncludeDiagnostics(true);
_import = new FubuRegistry();
_import.IncludeDiagnostics(true);
_import.Actions
.IncludeType<Handler1>()
.IncludeType<Handler2>();
_import.Configure(x =>
{
_importObserver = x.Observer;
_importActions = x.Actions()
.Where(a => a.HandlerType.Namespace == GetType().Namespace);
});
_parent.Import(_import, "import");
_parentObserver = _parent.BuildGraph().Observer;
}
示例5: configure
protected override void configure(FubuRegistry registry)
{
registry.Import<SparkEngine>();
registry.IncludeDiagnostics(true);
registry.Actions.IncludeType<PartialController>();
registry.Views.RegisterActionLessViews(v => v.ViewModel == typeof (PartialInput));
registry.Views.RegisterActionLessViews(v => v.ViewModel == typeof (MoreInput));
registry.Views.TryToAttachWithDefaultConventions();
}
示例6: BuildApplication
public FubuApplication BuildApplication()
{
return FubuApplication.For(() =>
{
var registry = new FubuRegistry();
registry.IncludeDiagnostics(true);
_configuration(registry);
return registry;
}).StructureMap(new Container());
}