i want to process certain operation at 'httprequestbegin' pipeline in live web page (CM or CD) i.e.
- notequals to PageEditor,
- notequals to ExperienceEditor,
- notequals to ContentEditor,
- notequals to Preview
After some analysis & references from this link Most reliable way to detect if running in live site?
My code snippet looks like
if (Sitecore.Context.PageMode.IsNormal
&& !Sitecore.Context.Site.Name.ToLower.Equals("shell"))
{
//Do task here
}
Question: since we have default websites like shell,login,services,scheduer,system etc, do i need to include all the sites in the above condition to get out of default websites provided by sitecore. I have noticed 'service' website is triggering a request which would bypass the above condition.
Any inputs on this please.