public AdvancedDiagnosticsRegistry() { setupDiagnosticServices(); Applies .ToAssemblyContainingType <AdvancedDiagnosticsRegistry>() .ToAssemblyContainingType <BehaviorStart>() .ToAllPackageAssemblies(); ApplyHandlerConventions(markers => new DiagnosticsHandlerUrlPolicy(markers), typeof(DiagnosticsFeatures)); Actions .FindWith <PartialActionSource>(); Routes .UrlPolicy <DiagnosticsAttributeUrlPolicy>(); Views .TryToAttachWithDefaultConventions() .TryToAttachViewsInPackages() .RegisterActionLessViews(token => token.ViewModelType.IsDiagnosticsReport()) .RegisterActionLessViews(token => typeof(IPartialModel).IsAssignableFrom(token.ViewModelType)); this.UseSpark(); Output .ToJson .WhenCallMatches(call => call.OutputType().Name.ToLower().Contains("json")); Models.IgnoreProperties(prop => prop.PropertyType == typeof(IEnumerable <JsonGridFilter>)); }
public DiagnosticsRegistry() { Applies .ToAssemblyContainingType <DiagnosticsRegistry>(); Actions .IncludeTypes(x => x.HasAttribute <FubuDiagnosticsAttribute>()) .IncludeType <GraphQuery>() .IncludeType <BasicAssetDiagnostics>() .IncludeType <ScriptWriter>(); Routes .UrlPolicy <DiagnosticUrlPolicy>(); Services(x => { x.SetServiceIfNone <IBindingLogger, RecordingBindingLogger>(); x.SetServiceIfNone <IDebugDetector, DebugDetector>(); x.SetServiceIfNone <IDebugCallHandler, DebugCallHandler>(); x.ReplaceService <IObjectResolver, RecordingObjectResolver>(); x.ReplaceService <IDebugReport, DebugReport>(); x.ReplaceService <IRequestObserver, RequestObserver>(); x.ReplaceService <IRequestData, RecordingRequestData>(); x.ReplaceService <IFubuRequest, RecordingFubuRequest>(); x.ReplaceService <IDebugDetector, DebugDetector>(); x.ReplaceService <IAuthorizationPolicyExecutor, RecordingAuthorizationPolicyExecutor>(); x.ReplaceService <IOutputWriter, RecordingOutputWriter>(); }); }
public DiagnosticsRegistry() { Applies.ToAssemblyContainingType <DiagnosticsRegistry>(); Actions.IncludeTypes(x => x.HasAttribute <FubuDiagnosticsAttribute>()).IncludeType <GraphQuery>().IncludeType <ScriptWriter>(); Routes.UrlPolicy <DiagnosticUrlPolicy>(); }