Class PageViewIsolation
- Namespace
- Dynamicweb.Frontend
- Assembly
- Dynamicweb.dll
PageViewIsolation isolates PageView.Current to the Page with the ID given in the Constructor. The PageView is isolated for as long as this object has not been disposed.
public sealed class PageViewIsolation : IDisposable
- Inheritance
-
PageViewIsolation
- Implements
- Inherited Members
Constructors
PageViewIsolation(int)
Initializes a new instance of the PageViewIsolation class. This isolated PageView.Current to the page with the given ID. REMEMBER TO DISPOSE OR ISOLATION WILL NOT BE RELEASED!
public PageViewIsolation(int pageId)
Parameters
pageIdintThe ID of the Page to isolate PageView.Current to.
PageViewIsolation(int, bool)
Initializes a new instance of the PageViewIsolation class. This isolated PageView.Current to the page with the given ID. REMEMBER TO DISPOSE OR ISOLATION WILL NOT BE RELEASED!
public PageViewIsolation(int pageId, bool @lock)
Parameters
pageIdintThe ID of the Page to isolate PageView.Current to.
lockboolRetrieved PageView object is locked from changing the global eCommerce variables.
PageViewIsolation(int, bool, bool)
Initializes a new instance of the PageViewIsolation class. This isolated PageView.Current to the page with the given ID. REMEMBER TO DISPOSE OR ISOLATION WILL NOT BE RELEASED!
public PageViewIsolation(int pageId, bool @lock, bool isEmailContext)
Parameters
pageIdintThe ID of the Page to isolate PageView.Current to.
lockboolRetrieved PageView object is locked from changing the global eCommerce variables.
isEmailContextboolRetrieved PageView object is pointed to email rendering.
Remarks
Do not use outside of http context. If running in a scheduled task or another thread outside a http context, use PageViewIsolation(int, bool, bool, Uri?)
PageViewIsolation(int, bool, bool, Uri?)
Initializes a new instance of the PageViewIsolation class. This isolated PageView.Current to the page with the given ID. REMEMBER TO DISPOSE OR ISOLATION WILL NOT BE RELEASED!
public PageViewIsolation(int pageId, bool @lock, bool isEmailContext, Uri? absoluteUrl)
Parameters
pageIdintThe ID of the Page to isolate PageView.Current to.
lockboolRetrieved PageView object is locked from changing the global eCommerce variables.
isEmailContextboolRetrieved PageView object is pointed to email rendering.
absoluteUrlUriFull URL to use as http context if an instance is created in a scenario where no http context exists - e.g. http://domain.com
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()