Base solution for your next web application

Activities of "apexdodge"

Question

Anyone have a best practice on dealing with breadcrumbs? I got the ABP NavigationProvider stuff all figured out and it's working great. But I'm still dissatisfied with how I'm dealing with breadcrumbs and was hoping for a better way. Open to suggestions, thanks.

Hi there, I upgraded my package and I'm having difficulty with my seed method after running Update-Database

"Can not set TenantId to a different value from the current filter parameter value while MayHaveTenant filter is enabled!"

My Seed Method is to populate the database with some basic data while I build my application.

Take note that I'm not using UnitOfWork manager here in seed method. Do I have to now? Perhaps I'm not using the best practice for Seed Method with ABP?

<a class="postlink" href="http://i.imgur.com/Z5KZ8Dx.png">http://i.imgur.com/Z5KZ8Dx.png</a>

Thanks

You're the best, thanks so much

I see you have added Feature Management and Edition Manager. This is unbelievably awesome and thank you so much for it.

Do you have any example code for edition manager?

I was able to get all tenant and user squared away nicely from the example code and they work in unison like this:

<a class="postlink" href="http://i.imgur.com/KHzLMxN.png">http://i.imgur.com/KHzLMxN.png</a>

So I was wondering where edition manager fits into all this?

Also, is it one edition per tenant or is it one edition per user? or both?

Thanks

If I were you, I would just keep things simple and do Visual Studio Web Deploys to Azure Websites and use Azure Sql. Treat it like any normal web app.

I think what you are trying to achieve is different than what abp.ui.setBusy() offers. I would google for "Angularjs Page Transitions" and see if anything comes up of use.

Question

Hi there --

I see we can install the nuget package for Redis: <a class="postlink" href="https://www.nuget.org/packages/Abp.RedisCache/">https://www.nuget.org/packages/Abp.RedisCache/</a>

After we install it, is there any special configuration to tell CacheManager to use Redis instead of the default, or does that happen automatically?

Thanks

In my opinion it's a bad practice to pull cookies from service layer. I think grab them from the web layer and pass them as parameters to the service layer.

Question

The problem with Hangfire is with Castle Windsor (or any IoC for that matter). When you run a background task from something like the Services layer, the background task does not have HttpContext and so an exception is thrown.

See:

<a class="postlink" href="http://docs.hangfire.io/en/latest/background-methods/using-ioc-containers.html">http://docs.hangfire.io/en/latest/backg ... iners.html</a>

I tried messing around with it, but not having any luck.

Ideally, I achieve something like this:

private readonly ISearchAppService _searchAppService;

        public CronController(
            ISearchAppService searchAppService)
        {
            _searchAppService = searchAppService;
        }

        public JsonResult InitiateRecurringIndex()
        {
            RecurringJob.AddOrUpdate("nightly-index", () => _searchAppService.DestroyAndCreateArticlesIndex(), Cron.Daily);
            return Json(new { }, JsonRequestBehavior.AllowGet);
        }

Has anyone here figured out how to get Hangfire, Castle Windsor, and ABP to work nicely with each other?

Thanks

Answer

Would love to see your sample code.

I only got Hangfire working by creating a Static Class and manually invoking IocResolver. It's not pretty and not the way I wanted to accomplish it in my original post, but it works. I can share that solution here if anyone is interested as well.

On a side note, even with my above solution, Hangfire isn't working with Lazy Loading in EntityFramework. I had to write my own Repository and create a method that pulls data in an eager fashion.

I did not anticipate so much headache considering how 'easy' the hangfire.io website makes it look in getting started haha.

Showing 11 to 20 of 29 entries