Skip to content

Bootstrapping LightingCache, throws System.ArgumentOutOfRangeException, Nancy 0.20 #3

Description

@ontehfritz

Details:
OSX mountain Loin, Xamarin Studio, Mono 3.2.1, Nancy.LightingCache nuget package, asp.net host. Targeting .net 4.

Code taken from the readme file.

using System;
using Nancy;
using Nancy.LightningCache.Extensions;
using Nancy.Routing;

namespace lighting_cache
{
    public class Bootstrapper: DefaultNancyBootstrapper
    {
        protected override void ApplicationStartup(Nancy.TinyIoc.TinyIoCContainer container, 
                                                   Nancy.Bootstrapper.IPipelines pipelines)
        {
            base.ApplicationStartup(container, pipelines);
            /*enable lightningcache, vary by url params id,query,take and skip*/
            this.EnableLightningCache(container.Resolve<IRouteResolver>(), 
                                      ApplicationPipelines, new[] { "id", "query", "take", "skip" });
        }
    }
}

lighting

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions