How can I make the “CacheListenerAdapter” work in ASP.NET?

心不动则不痛 提交于 2019-12-11 17:24:42

问题


I have set up apache geode and I am using Pivotal.Gemfire.dll to set up the cache listener by extending CacheListenerAdapter.

Problem is, the below never fires when listening to the region with the correct key:

    public override void AfterCreate(EntryEvent<TKey, TVal> ev)
    {
        //code
    }

This does, however, work in a desktop application (Console.app/WinForms) but not in web application (MVC/WebForms)

If someone could help me or point me to the correct documentation page, I would really appreciate, it's been 3 days since I'm trying to get this to work.


回答1:


If you are using a version of GemFire Native Client less than 10.0.0 then you are likely running into an issue with AppDomain in ASP.NET. While many AppDomain issues are mitigated in 9.x some are just not possible to address in that version. Updating to the latest 10.x should address your issue.



来源:https://stackoverflow.com/questions/56150632/how-can-i-make-the-cachelisteneradapter-work-in-asp-net

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!