Support

Kom i kontakt med vår kundtjänst, lär dig allt via vår SDK eller ladda ner den senaste uppdateringen.

Routing and handlers for incoming request

2011-01-20 19:21:33 Mattias

I've tried to implement a WCF Service and at the same time have a "no-read" for all content in Lemoon. With this scenario i stumbled upon a strange fact.

Request for static files are handled as Lemoon Content-requests? Ive tried to insert a Ignore route to all svc-files but it wont bite.


routes.IgnoreRoute("{*allsvc}", new { allsvc = @".*\.svc(/.*)?" });

 

I've located this piece of code that perhaps is the culprit?

internal static bool IsLemoonRequest(this MindrouteContext context)
{
    return (((context.RequestLocation != RequestLocation.None) && (context.RequestLocation != RequestLocation.StaticFile)) && (context.RequestLocation != RequestLocation.EmbeddedResource));
}

All replies

  • 2011-02-02 08:11:32 Linus Birgerstam

    No, static files are not handled as Lemoon requests. The code you found says that static files should NOT be handled by Lemoon.