A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
search
AI OnAI Off
Hello,
I have two questions that seems not able to find the answer from Google.
1. How could we get current site that handling remote event on raised?
2. Why remote event raised from one application, but other application (default one) will always receive the message?
I have multiple sites solution setup locally (3 sites with 3 different application pool), add a simple page that raise remote event and have an event handler to handle that.
The configuration is:
- site1, use wildcard mapping in site setting
- site2 and site3 don't have wildcard.
From site2, the event is raised, but on the raised handler
It always log twice, once for the site that raised the event (which is site2), and one for site1 which has wildcard mapping. site3 didn't receive the event.
Also, SiteDefinition.Current.Name always return site1 because we are lacking of HttpContext on event handler.
Thanks in advance!
/DL