Skip to content

Can't Register Own IUrlModifier #11

@thefringeninja

Description

@thefringeninja

I would like to be able to register a IUrlModifier so I can throw all this behind a CDN. Unfortunately this is not possible because due to WebHost:

  base.ConfigureContainer();

  Container.Register<IUrlModifier>((c, p) => new UrlModifier(getContext));
  Container.Register<IUrlGenerator>((c, n) => new UrlGenerator(c.Resolve<IUrlModifier>(), UrlModifier.CassettePrefix));

I can get around this by ignoring CassetteNancyStartup and reimplementing my own but that's no fun!

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