问题
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