ABsoluteMaybe.SampleWebsite.MVC2.Areas.ABsoluteMaybeDashboard.ABsoluteMaybeConfiguration.Configure C# (CSharp) Method

Configure() public static method

public static Configure ( ) : void
return void
        public static void Configure()
        {
            var pathToXmlFile = HttpContext.Current.Server.MapPath(StoragePath);

            ABsoluteMaybe.ABsoluteMaybeFactory = ABsoluteMaybeBuilder
                .StoreExperimentsUsing(() => new XmlExperimentCommands(pathToXmlFile))
                .AddShortCircuiter(() => new QueryStringShortCircuiter())
                .Build();
        }

Usage Example

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "ABsoluteMaybeDashboard_default",
                "ABsoluteMaybeDashboard/{controller}/{action}/{id}",
                new { action = "Index", id = UrlParameter.Optional }
                );

            ABsoluteMaybeConfiguration.Configure();
        }
ABsoluteMaybeConfiguration