如何制作"CacheListenerAdapter"?在ASP.NET中工作? [英] How can I make the "CacheListenerAdapter" work in ASP.NET?

查看:58
本文介绍了如何制作"CacheListenerAdapter"?在ASP.NET中工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经设置了apache geode,并且正在使用Pivotal.Gemfire.dll通过扩展CacheListenerAdapter来设置缓存侦听器.

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
    }

但是,这确实适用于桌面应用程序(Console.app/WinForms),而不适用于Web应用程序(MVC/WebForms)

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

如果有人可以帮助我或将我指向正确的文档页面,我将不胜感激,距离我试图使它生效已经过去了3天.

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.

推荐答案

如果您使用的GemFire本机客户端版本低于10.0.0,则可能会在ASP.NET中遇到AppDomain的问题.尽管在9.x中缓解了许多AppDomain问题,但在该版本中还是无法解决一些问题.更新到最新的10.x应该可以解决您的问题.

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.

这篇关于如何制作"CacheListenerAdapter"?在ASP.NET中工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆