Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bo Kingo Damgaard 157 posts 456 karma points
    Oct 21, 2013 @ 15:23
    Bo Kingo Damgaard
    0

    Can't override calculaters in v2 from App_Code

    Hi

    I can't seem to get my code executed, if I put it in the App_Code folder. If I put it in a dll it works fine.

    It's just the example from the docs http://documentation.teacommerce.net/net-api/price-calculators/product-calculator/

    Does it have something to do with AutoFac?

    /Bo

  • Anders Burla 2560 posts 8256 karma points
    Oct 21, 2013 @ 15:43
    Anders Burla
    0

    At the moment Tea Commerce only look at .dll files in the bin folder. So that is why. If you have a good reference on the web to how to implement it for App_Code as well - then I would be more than happy to add it to Tea Commerce.

    Kind regards
    Anders

  • Bo Kingo Damgaard 157 posts 456 karma points
    Oct 21, 2013 @ 18:25
    Bo Kingo Damgaard
    0

    Hi Anders

    Mayby you could take a look at the Umbraco core, because they are able to do it. I have no problem registering a ApplicationEventHandler in App_Code

    /Bo

  • Bo Kingo Damgaard 157 posts 456 karma points
    Oct 21, 2013 @ 22:54
    Bo Kingo Damgaard
    0

    How about this. This will find App_Code compiled assemblies

    foreach (Assembly assembly in AppDomain.CurrentDomain.GetAssemblies())
    {
    ......
    }



    /Bo

  • Anders Burla 2560 posts 8256 karma points
    Oct 22, 2013 @ 11:58
    Anders Burla
    0

    Hi Bo

    It will be implemented in Tea Commerce 2.2.1. Just tested it and it works. Thanks for the help!

    Kind regards
    Anders

Please Sign in or register to post replies

Write your reply to:

Draft