Disable DefaultHome policy in diags

26 views
Skip to first unread message

hcoverlambda

unread,
Jul 22, 2014, 10:38:07 PM7/22/14
to fubumv...@googlegroups.com
Just updated to 1.3.0.1710 and diagnostics is now redirecting the site root of all our sites to /_fubu. Unfortunately we have some non fubu stuff handling the roots so this is overriding those. I was looking at diags but it doesen't look like there is an easy way to disable that:


Playing around with a policy to remove it but not having much luck. Any ideas?

TIA!

m

Jeremy D. Miller

unread,
Jul 23, 2014, 8:40:27 AM7/23/14
to fubumv...@googlegroups.com
Can you just remove the offending BehaviorChain from your application in an IConfigurationAction?

--
You received this message because you are subscribed to the Google Groups "FubuMVC Development Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fubumvc-deve...@googlegroups.com.
To post to this group, send email to fubumv...@googlegroups.com.
Visit this group at http://groups.google.com/group/fubumvc-devel.
For more options, visit https://groups.google.com/d/optout.

hcoverlambda

unread,
Jul 23, 2014, 9:50:16 AM7/23/14
to fubumv...@googlegroups.com
Yeah, I tried that but I can't get my policy to run after the diagnostics policy so when it goes to remove it, its not there yet. 

Jeremy D. Miller

unread,
Jul 23, 2014, 9:55:17 AM7/23/14
to fubumv...@googlegroups.com
For 1.3, use ConfigurationType.Instrumentation.

Mike O'Brien

unread,
Jul 23, 2014, 10:56:15 AM7/23/14
to fubumv...@googlegroups.com
Yeah, tried that:

    [ConfigurationType(ConfigurationType.Instrumentation)]
    public class RemoveDefaultHome : IConfigurationAction
    {
        public void Configure(BehaviorGraph graph)
        {
            graph.RemoveChain(graph.Behaviors.First(x => x.GetRoutePattern() == null));
        }
    }

But can't seem to find it. These are the chains that are available when the policy runs:

_fubu/chain/missing:  -> HtmlTags.HtmlTag
_fubu/chain/{Id}: FubuMVC.Diagnostics.Chains.ChainRequest -> HtmlTags.HtmlTag
_fubu/conventions:  -> FubuMVC.Diagnostics.Conventions.ConventionsViewModel
_fubu: FubuMVC.Diagnostics.Dashboard.DashboardRequestModel -> FubuMVC.Diagnostics.Dashboard.DashboardModel
_fubu/endpoints: FubuMVC.Diagnostics.Endpoints.RoutesRequest -> FubuMVC.Diagnostics.Endpoints.EndpointExplorerModel
_fubu/binding/all:  -> FubuMVC.Diagnostics.ModelBinding.ModelBindingExplorerViewModel
_fubu/package/logs: FubuMVC.Diagnostics.Packaging.PackageDiagnosticsRequestModel -> FubuMVC.Diagnostics.Packaging.PackageDiagnosticsModel
_fubu/requestdatapartial: FubuCore.Binding.Values.ValueReport -> HtmlTags.HtmlTag
_fubu/requests:  -> FubuMVC.Diagnostics.Requests.RequestsViewModel
_fubu/request/details/{Id}: FubuMVC.Diagnostics.Runtime.RequestLog -> FubuMVC.Diagnostics.Requests.HttpRequestVisualization
_fubu/requests/missing:  -> HtmlTags.HtmlTag
_fubu/{Name}: FubuMVC.Diagnostics.Model.GroupRequest -> HtmlTags.HtmlTag
: FubuMVC.Diagnostics.Shared.TypeInput -> HtmlTags.HtmlTag
: FubuMVC.Diagnostics.Runtime.BehaviorStart -> HtmlTags.HtmlTag
: FubuMVC.Diagnostics.Runtime.BehaviorFinish -> HtmlTags.HtmlTag
: FubuMVC.Diagnostics.Runtime.ModelBindingLog -> HtmlTags.HtmlTag
: FubuCore.Logging.StringMessage -> HtmlTags.HtmlTag
_content/{Part0}/{Part1}/{Part2}/{Part3}/{Part4}/{Part5}/{Part6}/{Part7}/{Part8}/{Part9}: FubuMVC.Core.Assets.Files.AssetPath -> 
: FubuMVC.Diagnostics.Chrome.DashboardChrome -> FubuMVC.Diagnostics.Chrome.DashboardChrome
: FubuMVC.Diagnostics.Visualization.BehaviorNodeViewModel -> FubuMVC.Diagnostics.Visualization.BehaviorNodeViewModel

I think it might just be that it running before diags does its thing:

Inline image 1

Is there any way to get it to run after diags?

Thanks helping me out Jeremy!
Reply all
Reply to author
Forward
0 new messages