Class ContextModeScope
A helper object that can be used when setting Context
Inheritance
Implements
Namespace: EPiServer.Web
Assembly: EPiServer.Cms.AspNetCore.dll
Version: 12.0.3Syntax
public class ContextModeScope : Object, IDisposable
Remarks
This class implements System.
Constructors
ContextModeScope(HttpContext, ContextMode)
Constructor that creates a new instance of ContextrequestContext
during
the scope of this instance.
Declaration
public ContextModeScope(HttpContext requestContext, ContextMode contextMode)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
requestContext | The Microsoft. |
Context |
contextMode | The mode to set. |
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Dispose(Boolean)
Resets the Context
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System. |
disposing |
|